diff options
author | Josh Matthews <josh@joshmatthews.net> | 2013-10-17 16:42:51 +0100 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2013-10-31 13:34:44 -0400 |
commit | 99a36cbeb6077976861d94b7af16e9e57994a14d (patch) | |
tree | 3f8074b615977c26527798b732bc12c47b15f1ba /src/components/script/dom/htmldocument.rs | |
parent | cc76a2188e38034f853aecd5365857adcda8e401 (diff) | |
download | servo-99a36cbeb6077976861d94b7af16e9e57994a14d.tar.gz servo-99a36cbeb6077976861d94b7af16e9e57994a14d.zip |
Make Document a Node.
Diffstat (limited to 'src/components/script/dom/htmldocument.rs')
-rw-r--r-- | src/components/script/dom/htmldocument.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/script/dom/htmldocument.rs b/src/components/script/dom/htmldocument.rs index cadba01ce97..1e9c4e11706 100644 --- a/src/components/script/dom/htmldocument.rs +++ b/src/components/script/dom/htmldocument.rs @@ -35,6 +35,10 @@ impl ReflectableDocument for HTMLDocument { fn init_reflector(@mut self, cx: *JSContext) { self.wrap_object_shared(cx, ptr::null()); //XXXjdm a proper scope would be nice } + + fn init_node(@mut self, doc: AbstractDocument) { + self.parent.node.set_owner_doc(doc); + } } impl HTMLDocument { |