Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-11-22 22:35:47 +01:00 committed by Martin Robinson
parent e59c71d8ef
commit 8c5a028955
2 changed files with 1 additions and 6 deletions

View file

@ -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() }

View file

@ -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;