mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Fix servo build.
This commit is contained in:
parent
85da1dda29
commit
226c9807df
4 changed files with 60 additions and 0 deletions
|
@ -514,6 +514,10 @@ impl<'le> TElement for ServoLayoutElement<'le> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn exports_any_part(&self) -> bool {
|
||||||
|
false
|
||||||
|
}
|
||||||
|
|
||||||
fn style_attribute(&self) -> Option<ArcBorrow<StyleLocked<PropertyDeclarationBlock>>> {
|
fn style_attribute(&self) -> Option<ArcBorrow<StyleLocked<PropertyDeclarationBlock>>> {
|
||||||
unsafe {
|
unsafe {
|
||||||
(*self.element.style_attribute())
|
(*self.element.style_attribute())
|
||||||
|
@ -999,6 +1003,14 @@ impl<'le> ::selectors::Element for ServoLayoutElement<'le> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn exported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
|
fn imported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool {
|
fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool {
|
||||||
unsafe { self.element.has_class_for_layout(name, case_sensitivity) }
|
unsafe { self.element.has_class_for_layout(name, case_sensitivity) }
|
||||||
|
@ -1533,6 +1545,16 @@ impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn exported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
debug!("ServoThreadSafeLayoutElement::exported_part called");
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
|
fn imported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
debug!("ServoThreadSafeLayoutElement::imported_part called");
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
fn has_class(&self, _name: &Atom, _case_sensitivity: CaseSensitivity) -> bool {
|
fn has_class(&self, _name: &Atom, _case_sensitivity: CaseSensitivity) -> bool {
|
||||||
debug!("ServoThreadSafeLayoutElement::has_class called");
|
debug!("ServoThreadSafeLayoutElement::has_class called");
|
||||||
false
|
false
|
||||||
|
|
|
@ -521,6 +521,10 @@ impl<'le> TElement for ServoLayoutElement<'le> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn exports_any_part(&self) -> bool {
|
||||||
|
false
|
||||||
|
}
|
||||||
|
|
||||||
fn style_attribute(&self) -> Option<ArcBorrow<StyleLocked<PropertyDeclarationBlock>>> {
|
fn style_attribute(&self) -> Option<ArcBorrow<StyleLocked<PropertyDeclarationBlock>>> {
|
||||||
unsafe {
|
unsafe {
|
||||||
(*self.element.style_attribute())
|
(*self.element.style_attribute())
|
||||||
|
@ -1006,6 +1010,14 @@ impl<'le> ::selectors::Element for ServoLayoutElement<'le> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn exported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
|
fn imported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool {
|
fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool {
|
||||||
unsafe { self.element.has_class_for_layout(name, case_sensitivity) }
|
unsafe { self.element.has_class_for_layout(name, case_sensitivity) }
|
||||||
|
@ -1540,6 +1552,16 @@ impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn exported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
debug!("ServoThreadSafeLayoutElement::exported_part called");
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
|
fn imported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
debug!("ServoThreadSafeLayoutElement::imported_part called");
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
fn has_class(&self, _name: &Atom, _case_sensitivity: CaseSensitivity) -> bool {
|
fn has_class(&self, _name: &Atom, _case_sensitivity: CaseSensitivity) -> bool {
|
||||||
debug!("ServoThreadSafeLayoutElement::has_class called");
|
debug!("ServoThreadSafeLayoutElement::has_class called");
|
||||||
false
|
false
|
||||||
|
|
|
@ -3073,6 +3073,14 @@ impl<'a> SelectorsElement for DomRoot<Element> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn exported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
|
fn imported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool {
|
fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool {
|
||||||
Element::has_class(&**self, name, case_sensitivity)
|
Element::has_class(&**self, name, case_sensitivity)
|
||||||
}
|
}
|
||||||
|
|
|
@ -700,6 +700,14 @@ impl ElementSnapshot for ServoElementSnapshot {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn exported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
|
fn imported_part(&self, _: &Atom) -> Option<Atom> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool {
|
fn has_class(&self, name: &Atom, case_sensitivity: CaseSensitivity) -> bool {
|
||||||
self.get_attr(&ns!(), &local_name!("class"))
|
self.get_attr(&ns!(), &local_name!("class"))
|
||||||
.map_or(false, |v| {
|
.map_or(false, |v| {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue