mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Further changes required by Servo
This commit is contained in:
parent
e59c71d8ef
commit
8c5a028955
2 changed files with 1 additions and 6 deletions
|
@ -243,11 +243,6 @@ impl<'dom, LayoutDataType: LayoutDataTrait> style::dom::TElement
|
||||||
self.element.get_state_for_layout()
|
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]
|
#[inline]
|
||||||
fn id(&self) -> Option<&Atom> {
|
fn id(&self) -> Option<&Atom> {
|
||||||
unsafe { (*self.element.id_attribute()).as_ref() }
|
unsafe { (*self.element.id_attribute()).as_ref() }
|
||||||
|
|
|
@ -19,7 +19,7 @@ use crate::shared_lock::{Locked, SharedRwLock};
|
||||||
use crate::stylist::CascadeData;
|
use crate::stylist::CascadeData;
|
||||||
use crate::values::computed::Display;
|
use crate::values::computed::Display;
|
||||||
use crate::values::AtomIdent;
|
use crate::values::AtomIdent;
|
||||||
use crate::WeakAtom;
|
use crate::{LocalName, WeakAtom};
|
||||||
use atomic_refcell::{AtomicRef, AtomicRefMut};
|
use atomic_refcell::{AtomicRef, AtomicRefMut};
|
||||||
use selectors::matching::{QuirksMode, VisitedHandlingMode};
|
use selectors::matching::{QuirksMode, VisitedHandlingMode};
|
||||||
use selectors::sink::Push;
|
use selectors::sink::Push;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue