mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -61,12 +61,12 @@ impl<'a> HTMLFieldSetElementMethods for JSRef<'a, HTMLFieldSetElement> {
|
|||
let node: JSRef<Node> = NodeCast::from_ref(self);
|
||||
let filter = box ElementsFilter;
|
||||
let window = window_from_node(node).root();
|
||||
HTMLCollection::create(*window, node, filter)
|
||||
HTMLCollection::create(window.r(), node, filter)
|
||||
}
|
||||
|
||||
fn Validity(self) -> Temporary<ValidityState> {
|
||||
let window = window_from_node(self).root();
|
||||
ValidityState::new(*window)
|
||||
ValidityState::new(window.r())
|
||||
}
|
||||
|
||||
// http://www.whatwg.org/html/#dom-fieldset-disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue