mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Replace Root::deref() calls by Root::r() calls where possible.
This changes those calls that were already sound.
This commit is contained in:
parent
c9f26dfd59
commit
1dad710063
61 changed files with 479 additions and 471 deletions
|
@ -45,7 +45,7 @@ impl DocumentFragment {
|
|||
let document = global.as_window().Document();
|
||||
let document = document.root();
|
||||
|
||||
Ok(DocumentFragment::new(*document))
|
||||
Ok(DocumentFragment::new(document.r()))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ impl<'a> DocumentFragmentMethods for JSRef<'a, DocumentFragment> {
|
|||
// http://dom.spec.whatwg.org/#dom-parentnode-children
|
||||
fn Children(self) -> Temporary<HTMLCollection> {
|
||||
let window = window_from_node(self).root();
|
||||
HTMLCollection::children(*window, NodeCast::from_ref(self))
|
||||
HTMLCollection::children(window.r(), NodeCast::from_ref(self))
|
||||
}
|
||||
|
||||
// http://dom.spec.whatwg.org/#dom-parentnode-queryselector
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue