diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-02-21 13:19:01 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-04-26 11:31:17 +0200 |
commit | 3ccd622c9b94930ce43ca1bfb5d101783b367d58 (patch) | |
tree | c20b6f4604a563950434e81d397954051f0b157d /components/script/dom/htmllabelelement.rs | |
parent | 2674a3e71748eb0ef6db371fc2f1401a951b94c4 (diff) | |
download | servo-3ccd622c9b94930ce43ca1bfb5d101783b367d58.tar.gz servo-3ccd622c9b94930ce43ca1bfb5d101783b367d58.zip |
Introduce ShadowIncluding enum for tree traversals
Diffstat (limited to 'components/script/dom/htmllabelelement.rs')
-rw-r--r-- | components/script/dom/htmllabelelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmllabelelement.rs b/components/script/dom/htmllabelelement.rs index 6ed17609a03..11ee09bce94 100644 --- a/components/script/dom/htmllabelelement.rs +++ b/components/script/dom/htmllabelelement.rs @@ -15,7 +15,7 @@ use crate::dom::event::Event; use crate::dom::eventtarget::EventTarget; use crate::dom::htmlelement::HTMLElement; use crate::dom::htmlformelement::{FormControl, FormControlElementHelpers, HTMLFormElement}; -use crate::dom::node::{document_from_node, Node}; +use crate::dom::node::{document_from_node, Node, ShadowIncluding}; use crate::dom::virtualmethods::VirtualMethods; use dom_struct::dom_struct; use html5ever::{LocalName, Prefix}; @@ -162,7 +162,7 @@ impl VirtualMethods for HTMLLabelElement { impl HTMLLabelElement { pub fn first_labelable_descendant(&self) -> Option<DomRoot<HTMLElement>> { self.upcast::<Node>() - .traverse_preorder(/* shadow including */ false) + .traverse_preorder(ShadowIncluding::No) .filter_map(DomRoot::downcast::<HTMLElement>) .filter(|elem| elem.is_labelable_element()) .next() |