diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/script/dom/document.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs index 98260344bca..853e7e4a080 100644 --- a/src/components/script/dom/document.rs +++ b/src/components/script/dom/document.rs @@ -79,7 +79,7 @@ impl AbstractDocument { pub fn set_root(&self, root: AbstractNode<ScriptView>) { self.with_mut_base(|document| { - document.set_root(root); + document.root = Some(root); }); } } @@ -110,10 +110,6 @@ impl Document { } } - pub fn set_root(&mut self, root: AbstractNode<ScriptView>) { - self.root = Some(root); - } - pub fn Constructor(owner: @mut Window) -> Fallible<AbstractDocument> { let cx = owner.page.js_info.get_ref().js_compartment.cx.ptr; |