diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-11-14 10:21:07 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-11-14 10:21:07 +0100 |
commit | 15e8e925409795d3709a026ec06ff589b35bd1e0 (patch) | |
tree | 405312e94fdd790c12afc4b763671bcad6828cac /components/script/dom/node.rs | |
parent | 57c4db7c670f34fffbee0c179077e8afdadf09f8 (diff) | |
download | servo-15e8e925409795d3709a026ec06ff589b35bd1e0.tar.gz servo-15e8e925409795d3709a026ec06ff589b35bd1e0.zip |
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.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 5fcfd74f1f6..0f510719640 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -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!(); |