mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove intrinsic Root::r()
This commit is contained in:
parent
51bcf516c8
commit
0b3ab875f4
55 changed files with 275 additions and 310 deletions
|
@ -68,7 +68,7 @@ impl HTMLButtonElementMethods for HTMLButtonElement {
|
|||
// https://html.spec.whatwg.org/multipage/#dom-cva-validity
|
||||
fn Validity(&self) -> Root<ValidityState> {
|
||||
let window = window_from_node(self);
|
||||
ValidityState::new(window.r(), self.upcast())
|
||||
ValidityState::new(&window, self.upcast())
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-fe-disabled
|
||||
|
@ -293,7 +293,7 @@ impl Activatable for HTMLButtonElement {
|
|||
node.query_selector_iter(DOMString::from("button[type=submit]")).unwrap()
|
||||
.filter_map(Root::downcast::<HTMLButtonElement>)
|
||||
.find(|r| r.form_owner() == owner)
|
||||
.map(|s| synthetic_click_activation(s.r().as_element(),
|
||||
.map(|s| synthetic_click_activation(s.as_element(),
|
||||
ctrl_key,
|
||||
shift_key,
|
||||
alt_key,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue