diff options
author | Corey Farwell <coreyf@rwell.org> | 2016-04-10 22:06:29 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2016-04-10 22:49:35 -0400 |
commit | 11a3ce12575930920eb836632c405f39019c57a0 (patch) | |
tree | 4315ce21778806e06c203831e1adf07987828844 /components/script/dom/htmlelement.rs | |
parent | 3b376bb3199e6f8f84f3ff199d19cc0f3f0546c0 (diff) | |
download | servo-11a3ce12575930920eb836632c405f39019c57a0.tar.gz servo-11a3ce12575930920eb836632c405f39019c57a0.zip |
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
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r-- | components/script/dom/htmlelement.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs index aa2ee98ad1f..b3c95f89127 100644 --- a/components/script/dom/htmlelement.rs +++ b/components/script/dom/htmlelement.rs @@ -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>) |