mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Remove Document::set_root.
All callers have an AbstractDocument, and this makes my life easier later.
This commit is contained in:
parent
179582d939
commit
e43505d641
1 changed files with 1 additions and 5 deletions
|
@ -79,7 +79,7 @@ impl AbstractDocument {
|
||||||
|
|
||||||
pub fn set_root(&self, root: AbstractNode<ScriptView>) {
|
pub fn set_root(&self, root: AbstractNode<ScriptView>) {
|
||||||
self.with_mut_base(|document| {
|
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> {
|
pub fn Constructor(owner: @mut Window) -> Fallible<AbstractDocument> {
|
||||||
let cx = owner.page.js_info.get_ref().js_compartment.cx.ptr;
|
let cx = owner.page.js_info.get_ref().js_compartment.cx.ptr;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue