From 522f8489d6fca474e6aad1d341ee84a99c130738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 15 May 2017 23:52:09 +0200 Subject: Bug 1364850: Move PseudoElement to be just another combinator in selectors. r=bholley MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MozReview-Commit-ID: 8OoOIodkKJ5 Signed-off-by: Emilio Cobos Álvarez --- components/script/layout_wrapper.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'components/script/layout_wrapper.rs') diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 7802d446114..4cf1789beef 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -652,6 +652,14 @@ impl<'le> ::selectors::Element for ServoLayoutElement<'le> { self.element.namespace() } + fn match_pseudo_element(&self, + _pseudo: &PseudoElement, + _context: &mut MatchingContext) + -> bool + { + false + } + fn match_non_ts_pseudo_class(&self, pseudo_class: &NonTSPseudoClass, _: &mut MatchingContext, @@ -1150,6 +1158,14 @@ impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> { self.element.get_namespace() } + fn match_pseudo_element(&self, + _pseudo: &PseudoElement, + _context: &mut MatchingContext) + -> bool + { + false + } + fn match_non_ts_pseudo_class(&self, _: &NonTSPseudoClass, _: &mut MatchingContext, -- cgit v1.2.3