aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2013-10-07 15:17:47 +0200
committerMs2ger <ms2ger@gmail.com>2013-10-07 15:17:47 +0200
commite43505d6413c66e2ffa1d5a08210e77d2516057c (patch)
tree500e71fbd16f8be1430bed6c019e5cdc0c4d5cfd
parent179582d939e4ee1797ed5669bf048bcaa6c3c442 (diff)
downloadservo-e43505d6413c66e2ffa1d5a08210e77d2516057c.tar.gz
servo-e43505d6413c66e2ffa1d5a08210e77d2516057c.zip
Remove Document::set_root.
All callers have an AbstractDocument, and this makes my life easier later.
-rw-r--r--src/components/script/dom/document.rs6
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;