diff options
author | Josh Matthews <josh@joshmatthews.net> | 2013-07-27 14:28:05 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2013-07-30 16:28:02 -0400 |
commit | 5546f2105bea0a3155a1090f3a9a8dfb65c7b47d (patch) | |
tree | f69dc2cc92dfdbd5db54c0f7c579b3f65ec43ff2 /src/components/script/dom/node.rs | |
parent | ad8fa8b3d75b58102f75848b90ab4721a7cfcfce (diff) | |
download | servo-5546f2105bea0a3155a1090f3a9a8dfb65c7b47d.tar.gz servo-5546f2105bea0a3155a1090f3a9a8dfb65c7b47d.zip |
Generate HTMLDocument bindings. Introduce invariant into generated bindings that associated DOM classes are named the same as their interfaces, so Event and Event_ need to be swapped.
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r-- | src/components/script/dom/node.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs index ab2023151ed..794aa3e5251 100644 --- a/src/components/script/dom/node.rs +++ b/src/components/script/dom/node.rs @@ -8,7 +8,7 @@ use dom::bindings::node; use dom::bindings::utils::WrapperCache; use dom::bindings; use dom::characterdata::CharacterData; -use dom::document::Document; +use dom::document::AbstractDocument; use dom::element::{Element, ElementTypeId, HTMLImageElement, HTMLImageElementTypeId, HTMLIframeElementTypeId, HTMLIframeElement}; use dom::element::{HTMLStyleElementTypeId}; @@ -80,7 +80,7 @@ pub struct Node<View> { prev_sibling: Option<AbstractNode<View>>, /// The document that this node belongs to. - owner_doc: Option<@mut Document>, + owner_doc: Option<AbstractDocument>, /// Layout information. Only the layout task may touch this data. priv layout_data: Option<@mut ()> @@ -433,7 +433,7 @@ impl Node<ScriptView> { node } - pub fn add_to_doc(&mut self, doc: @mut Document) { + pub fn add_to_doc(&mut self, doc: AbstractDocument) { self.owner_doc = Some(doc); let mut node = self.first_child; while node.is_some() { |