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

@ -3,14 +3,13 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::DOMImplementationBinding;
use dom::bindings::codegen::InheritTypes::{NodeCast, DocumentCast};
use dom::bindings::codegen::InheritTypes::NodeCast;
use dom::bindings::js::JS;
use dom::bindings::utils::{Reflector, Reflectable, reflect_dom_object};
use dom::bindings::utils::{Fallible, InvalidCharacter, NamespaceError};
use dom::bindings::utils::{QName, Name, InvalidXMLName, xml_name_type};
use dom::document::{Document, HTML, HTMLDocumentTypeId};
use dom::documenttype::DocumentType;
use dom::htmldocument::HTMLDocument;
use dom::htmlbodyelement::HTMLBodyElement;
use dom::htmlheadelement::HTMLHeadElement;
use dom::htmlhtmlelement::HTMLHtmlElement;
@ -67,7 +66,7 @@ impl DOMImplementation {
// http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
pub fn CreateHTMLDocument(&self, title: Option<DOMString>) -> JS<Document> {
// Step 1-2.
let doc: JS<Document> = DocumentCast::from(&HTMLDocument::new(&self.owner, None));
let doc = Document::new(&self.owner, None, HTML, None);
assert!(doc.get().doctype == HTML);
let mut doc_node: JS<Node> = NodeCast::from(&doc);