Remove HTMLDocument.

This commit is contained in:
Ms2ger 2014-02-22 14:11:31 +01:00
parent 7190feb5e3
commit e2617a6396
12 changed files with 10 additions and 81 deletions

View file

@ -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)