aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/document.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-07-31 18:51:12 -0400
committerJosh Matthews <josh@joshmatthews.net>2013-08-05 11:29:12 -0400
commit9a545b13c385a73c63e5eda59ba8bda6842955c0 (patch)
treec651f7f3f8ba653da29001cf767ae71580887810 /src/components/script/dom/document.rs
parentfd4efad70c09653f38737252dc7741952d873eb5 (diff)
downloadservo-9a545b13c385a73c63e5eda59ba8bda6842955c0.tar.gz
servo-9a545b13c385a73c63e5eda59ba8bda6842955c0.zip
Generate bindings for HTMLHeadElement.
Diffstat (limited to 'src/components/script/dom/document.rs')
-rw-r--r--src/components/script/dom/document.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs
index 836bdeb2e36..7c41a58134f 100644
--- a/src/components/script/dom/document.rs
+++ b/src/components/script/dom/document.rs
@@ -5,10 +5,11 @@
use dom::bindings::codegen::DocumentBinding;
use dom::bindings::utils::{DOMString, WrapperCache, ErrorResult, null_string, str};
use dom::bindings::utils::{BindingObject, CacheableWrapper, rust_box, DerivedWrapper};
-use dom::element::{HTMLHtmlElement, HTMLHtmlElementTypeId, Element};
+use dom::element::{HTMLHtmlElement, HTMLHtmlElementTypeId};
use dom::event::Event;
use dom::htmlcollection::HTMLCollection;
use dom::htmldocument::HTMLDocument;
+use dom::htmlelement::HTMLElement;
use dom::node::{AbstractNode, ScriptView, Node};
use dom::window::Window;
use dom::windowproxy::WindowProxy;
@@ -102,7 +103,7 @@ impl Document {
pub fn Constructor(owner: @mut Window, _rv: &mut ErrorResult) -> AbstractDocument {
let root = @HTMLHtmlElement {
- parent: Element::new(HTMLHtmlElementTypeId, ~"html")
+ parent: HTMLElement::new(HTMLHtmlElementTypeId, ~"html")
};
let cx = unsafe {(*owner.page).js_info.get_ref().js_compartment.cx.ptr};