diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-11 09:27:11 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-11 09:27:11 +0530 |
commit | 5aa62b3621f4793c559f6c7eb77e06259b0a00ea (patch) | |
tree | 4315ce21778806e06c203831e1adf07987828844 /components/script/dom/htmlelement.rs | |
parent | e10ab5ae532037de37295680ce38eca27e2f5b95 (diff) | |
parent | 11a3ce12575930920eb836632c405f39019c57a0 (diff) | |
download | servo-5aa62b3621f4793c559f6c7eb77e06259b0a00ea.tar.gz servo-5aa62b3621f4793c559f6c7eb77e06259b0a00ea.zip |
Auto merge of #10514 - frewsxcv:element-cleanup, r=KiChjang
Various 'element.rs' cleanup.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10514)
<!-- Reviewable:end -->
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>) |