mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove get_*
on getters as per RFC 0344.
https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis https://github.com/servo/servo/issues/6224
This commit is contained in:
parent
3b376bb319
commit
11a3ce1257
9 changed files with 29 additions and 29 deletions
|
@ -200,7 +200,7 @@ impl HTMLElementMethods for HTMLElement {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-click
|
||||
fn Click(&self) {
|
||||
if !self.upcast::<Element>().get_disabled_state() {
|
||||
if !self.upcast::<Element>().disabled_state() {
|
||||
synthetic_click_activation(self.upcast::<Element>(),
|
||||
false,
|
||||
false,
|
||||
|
@ -223,7 +223,7 @@ impl HTMLElementMethods for HTMLElement {
|
|||
// https://html.spec.whatwg.org/multipage/#dom-blur
|
||||
fn Blur(&self) {
|
||||
// TODO: Run the unfocusing steps.
|
||||
if !self.upcast::<Element>().get_focus_state() {
|
||||
if !self.upcast::<Element>().focus_state() {
|
||||
return;
|
||||
}
|
||||
// https://html.spec.whatwg.org/multipage/#unfocusing-steps
|
||||
|
@ -449,7 +449,7 @@ impl HTMLElement {
|
|||
};
|
||||
|
||||
// Traverse entire tree for <label> elements with `for` attribute matching `id`
|
||||
let root_element = element.get_root_element();
|
||||
let root_element = element.root_element();
|
||||
let root_node = root_element.upcast::<Node>();
|
||||
let children = root_node.traverse_preorder()
|
||||
.filter_map(Root::downcast::<Element>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue