mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Reorganise ServoParser
Free-standing fonctions parse_html and friends are now static methods on ServoParser, and the HTML and XML tokenizers have been moved to private submodules.
This commit is contained in:
parent
57c4db7c67
commit
15e8e92540
8 changed files with 291 additions and 280 deletions
|
@ -47,7 +47,7 @@ use dom::htmltextareaelement::{HTMLTextAreaElement, LayoutHTMLTextAreaElementHel
|
|||
use dom::nodelist::NodeList;
|
||||
use dom::processinginstruction::ProcessingInstruction;
|
||||
use dom::range::WeakRangeVec;
|
||||
use dom::servoparser::html::parse_html_fragment;
|
||||
use dom::servoparser::ServoParser;
|
||||
use dom::svgsvgelement::{SVGSVGElement, LayoutSVGSVGElementHelpers};
|
||||
use dom::text::Text;
|
||||
use dom::virtualmethods::{VirtualMethods, vtable_for};
|
||||
|
@ -833,7 +833,7 @@ impl Node {
|
|||
let context_document = document_from_node(self);
|
||||
let fragment = DocumentFragment::new(&context_document);
|
||||
if context_document.is_html_document() {
|
||||
parse_html_fragment(self.upcast(), markup, fragment.upcast());
|
||||
ServoParser::parse_html_fragment(self.upcast(), markup, fragment.upcast());
|
||||
} else {
|
||||
// FIXME: XML case
|
||||
unimplemented!();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue