mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove HTMLDocument.
This commit is contained in:
parent
7190feb5e3
commit
e2617a6396
12 changed files with 10 additions and 81 deletions
|
@ -4,13 +4,11 @@
|
|||
|
||||
use dom::bindings::codegen::DOMParserBinding;
|
||||
use dom::bindings::codegen::DOMParserBinding::SupportedTypeValues::{Text_html, Text_xml};
|
||||
use dom::bindings::codegen::InheritTypes::DocumentCast;
|
||||
use dom::bindings::js::JS;
|
||||
use dom::bindings::utils::{Reflector, Reflectable, reflect_dom_object};
|
||||
use dom::bindings::utils::Fallible;
|
||||
use dom::bindings::utils::FailureUnknown;
|
||||
use dom::document::Document;
|
||||
use dom::htmldocument::HTMLDocument;
|
||||
use dom::document::{Document, HTML};
|
||||
use dom::window::Window;
|
||||
use servo_util::str::DOMString;
|
||||
|
||||
|
@ -43,7 +41,7 @@ impl DOMParser {
|
|||
-> Fallible<JS<Document>> {
|
||||
match ty {
|
||||
Text_html => {
|
||||
Ok(DocumentCast::from(&HTMLDocument::new(&self.owner, None)))
|
||||
Ok(Document::new(&self.owner, None, HTML, None))
|
||||
}
|
||||
Text_xml => {
|
||||
Document::Constructor(&self.owner)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue