From e43505d6413c66e2ffa1d5a08210e77d2516057c Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 7 Oct 2013 15:17:47 +0200 Subject: [PATCH] Remove Document::set_root. All callers have an AbstractDocument, and this makes my life easier later. --- src/components/script/dom/document.rs | 6 +----- 1 file changed, 1 insertion(+), 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) { 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) { - self.root = Some(root); - } - pub fn Constructor(owner: @mut Window) -> Fallible { let cx = owner.page.js_info.get_ref().js_compartment.cx.ptr;