diff options
Diffstat (limited to 'components/shared/script_layout/wrapper_traits.rs')
-rw-r--r-- | components/shared/script_layout/wrapper_traits.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/shared/script_layout/wrapper_traits.rs b/components/shared/script_layout/wrapper_traits.rs index 54cafc26bea..3274bdb641e 100644 --- a/components/shared/script_layout/wrapper_traits.rs +++ b/components/shared/script_layout/wrapper_traits.rs @@ -345,6 +345,10 @@ pub trait ThreadSafeLayoutElement<'dom>: /// lazily_compute_pseudo_element_style, which operates on TElement. unsafe fn unsafe_get(self) -> Self::ConcreteElement; + /// Get the local name of this element. See + /// <https://dom.spec.whatwg.org/#concept-element-local-name>. + fn get_local_name(&self) -> &LocalName; + fn get_attr(&self, namespace: &Namespace, name: &LocalName) -> Option<&str>; fn get_attr_enum(&self, namespace: &Namespace, name: &LocalName) -> Option<&AttrValue>; |