diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-02-24 20:40:04 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-02-24 22:45:38 +0100 |
commit | 7ab4b21bc38e06a6e131482ddf98b40beb496d27 (patch) | |
tree | 7370a1d714ce37a803612aa2b409696c9bd195ea /components/style/invalidation/element/element_wrapper.rs | |
parent | da99f159f43cef17bf94cbc00da2ce21fe2df5ba (diff) | |
download | servo-7ab4b21bc38e06a6e131482ddf98b40beb496d27.tar.gz servo-7ab4b21bc38e06a6e131482ddf98b40beb496d27.zip |
selectors: Remove the get_ prefix from get_local_name and get_namespace.
Diffstat (limited to 'components/style/invalidation/element/element_wrapper.rs')
-rw-r--r-- | components/style/invalidation/element/element_wrapper.rs | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/components/style/invalidation/element/element_wrapper.rs b/components/style/invalidation/element/element_wrapper.rs index 2fb0a4f8412..3354d60f6f2 100644 --- a/components/style/invalidation/element/element_wrapper.rs +++ b/components/style/invalidation/element/element_wrapper.rs @@ -291,27 +291,32 @@ impl<'a, E> Element for ElementWrapper<'a, E> .map(|e| ElementWrapper::new(e, self.snapshot_map)) } + #[inline] fn is_html_element_in_html_document(&self) -> bool { self.element.is_html_element_in_html_document() } + #[inline] fn is_html_slot_element(&self) -> bool { self.element.is_html_slot_element() } - fn get_local_name(&self) -> &<Self::Impl as ::selectors::SelectorImpl>::BorrowedLocalName { - self.element.get_local_name() + #[inline] + fn local_name(&self) -> &<Self::Impl as ::selectors::SelectorImpl>::BorrowedLocalName { + self.element.local_name() } - fn get_namespace(&self) -> &<Self::Impl as ::selectors::SelectorImpl>::BorrowedNamespaceUrl { - self.element.get_namespace() + #[inline] + fn namespace(&self) -> &<Self::Impl as ::selectors::SelectorImpl>::BorrowedNamespaceUrl { + self.element.namespace() } - fn attr_matches(&self, - ns: &NamespaceConstraint<&Namespace>, - local_name: &LocalName, - operation: &AttrSelectorOperation<&AttrValue>) - -> bool { + fn attr_matches( + &self, + ns: &NamespaceConstraint<&Namespace>, + local_name: &LocalName, + operation: &AttrSelectorOperation<&AttrValue>, + ) -> bool { match self.snapshot() { Some(snapshot) if snapshot.has_attrs() => { snapshot.attr_matches(ns, local_name, operation) |