Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: Source/core/css/SelectorChecker.h

Issue 1129673002: Remove support for pseudo classes in <content select>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix more tests. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/css/SelectorChecker.h
diff --git a/Source/core/css/SelectorChecker.h b/Source/core/css/SelectorChecker.h
index d287107f301e91ef826c4797f008d0ccf6887260..2fae9515fbee811191f9612648aa020088742ffd 100644
--- a/Source/core/css/SelectorChecker.h
+++ b/Source/core/css/SelectorChecker.h
@@ -98,31 +98,20 @@ public:
unsigned specificity;
};
- template<typename SiblingTraversalStrategy>
- Match match(const SelectorCheckingContext&, const SiblingTraversalStrategy&, MatchResult* = 0) const;
-
- template<typename SiblingTraversalStrategy>
- bool checkOne(const SelectorCheckingContext&, const SiblingTraversalStrategy&, unsigned* specificity = 0) const;
+ Match match(const SelectorCheckingContext&, MatchResult* = 0) const;
+ bool checkOne(const SelectorCheckingContext&, unsigned* specificity = 0) const;
static bool matchesFocusPseudoClass(const Element&);
private:
- template<typename SiblingTraversalStrategy>
- Match matchForSubSelector(const SelectorCheckingContext&, const SiblingTraversalStrategy&, MatchResult*) const;
- template<typename SiblingTraversalStrategy>
- Match matchForRelation(const SelectorCheckingContext&, const SiblingTraversalStrategy&, MatchResult*) const;
- template<typename SiblingTraversalStrategy>
- Match matchForShadowDistributed(const Element*, const SiblingTraversalStrategy&, SelectorCheckingContext& nextContext, MatchResult* = 0) const;
- template<typename SiblingTraversalStrategy>
- Match matchForPseudoShadow(const ContainerNode*, const SelectorCheckingContext&, const SiblingTraversalStrategy&, MatchResult*) const;
- template<typename SiblingTraversalStrategy>
- bool checkPseudoClass(const SelectorCheckingContext&, const SiblingTraversalStrategy&, unsigned* specificity) const;
- template<typename SiblingTraversalStrategy>
- bool checkPseudoElement(const SelectorCheckingContext&, const SiblingTraversalStrategy&) const;
-
+ Match matchForSubSelector(const SelectorCheckingContext&, MatchResult*) const;
+ Match matchForRelation(const SelectorCheckingContext&, MatchResult*) const;
+ Match matchForShadowDistributed(const Element*, SelectorCheckingContext& nextContext, MatchResult* = 0) const;
+ Match matchForPseudoShadow(const ContainerNode*, const SelectorCheckingContext&, MatchResult*) const;
+ bool checkPseudoClass(const SelectorCheckingContext&, unsigned* specificity) const;
+ bool checkPseudoElement(const SelectorCheckingContext&) const;
bool checkScrollbarPseudoClass(const SelectorCheckingContext&, Document*, const CSSSelector&) const;
- template<typename SiblingTraversalStrategy>
- bool checkPseudoHost(const SelectorCheckingContext&, const SiblingTraversalStrategy&, unsigned*) const;
+ bool checkPseudoHost(const SelectorCheckingContext&, unsigned*) const;
Mode m_mode;
};

Powered by Google App Engine
This is Rietveld 408576698