diff --git a/components/script/layout_dom/element.rs b/components/script/layout_dom/element.rs index 7e9c1653dd1..32bce3a95d1 100644 --- a/components/script/layout_dom/element.rs +++ b/components/script/layout_dom/element.rs @@ -243,11 +243,6 @@ impl<'dom, LayoutDataType: LayoutDataTrait> style::dom::TElement self.element.get_state_for_layout() } - #[inline] - fn has_attr(&self, namespace: &style::Namespace, attr: &style::LocalName) -> bool { - self.get_attr(&**namespace, &**attr).is_some() - } - #[inline] fn id(&self) -> Option<&Atom> { unsafe { (*self.element.id_attribute()).as_ref() } diff --git a/components/style/dom.rs b/components/style/dom.rs index f9e6c251485..7fc29280e69 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -19,7 +19,7 @@ use crate::shared_lock::{Locked, SharedRwLock}; use crate::stylist::CascadeData; use crate::values::computed::Display; use crate::values::AtomIdent; -use crate::WeakAtom; +use crate::{LocalName, WeakAtom}; use atomic_refcell::{AtomicRef, AtomicRefMut}; use selectors::matching::{QuirksMode, VisitedHandlingMode}; use selectors::sink::Push;