Skip to content
Permalink
Browse files

script: Fix Servo build.

  • Loading branch information...
emilio committed May 25, 2019
1 parent 70635e7 commit 66056bd4d554e3e65bc63cb5d6ccfb632d29c8b3
Showing with 15 additions and 3 deletions.
  1. +8 −0 components/layout_thread/dom_wrapper.rs
  2. +7 −3 components/script/dom/element.rs
@@ -888,6 +888,10 @@ impl<'le> ::selectors::Element for ServoLayoutElement<'le> {
self.element.namespace()
}

fn is_pseudo_element(&self) -> bool {
false
}

fn match_pseudo_element(
&self,
_pseudo: &PseudoElement,
@@ -1394,6 +1398,10 @@ impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> {
::selectors::OpaqueElement::new(unsafe { &*(self.as_node().opaque().0 as *const ()) })
}

fn is_pseudo_element(&self) -> bool {
false
}

fn parent_element(&self) -> Option<Self> {
warn!("ServoThreadSafeLayoutElement::parent_element called");
None
@@ -685,9 +685,9 @@ impl LayoutElementHelpers for LayoutDom<Element> {
if let Some(url) = background {
hints.push(from_declaration(
shared_lock,
PropertyDeclaration::BackgroundImage(background_image::SpecifiedValue(vec![
Either::Second(specified::Image::for_cascade(url.into())),
])),
PropertyDeclaration::BackgroundImage(background_image::SpecifiedValue(
vec![Either::Second(specified::Image::for_cascade(url.into()))].into(),
)),
));
}

@@ -2945,6 +2945,10 @@ impl<'a> SelectorsElement for DomRoot<Element> {
}
}

fn is_pseudo_element(&self) -> bool {
false
}

fn match_pseudo_element(
&self,
_pseudo: &PseudoElement,

0 comments on commit 66056bd

Please sign in to comment.
You can’t perform that action at this time.