Remove Document::set_root.

All callers have an AbstractDocument, and this makes my life easier later.
This commit is contained in:
Ms2ger 2013-10-07 15:17:47 +02:00
parent 179582d939
commit e43505d641

View file

@ -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;