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

Unified Diff: third_party/WebKit/Source/core/css/CSSSelector.h

Issue 1703893002: Don't add rule feature data for rules which may never match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uncommon-attr-20160216
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RuleFeature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSSelector.h
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.h b/third_party/WebKit/Source/core/css/CSSSelector.h
index 8a9e0904812b40859f2b31c6a75b8c029e5967fc..7517f5b6b159c82a6f46ee1eee8cb3864a2a0190 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.h
+++ b/third_party/WebKit/Source/core/css/CSSSelector.h
@@ -253,7 +253,6 @@ public:
bool isAdjacentSelector() const { return m_relation == DirectAdjacent || m_relation == IndirectAdjacent; }
bool isShadowSelector() const { return m_relation == ShadowPseudo || m_relation == ShadowDeep; }
- bool isSiblingPseudo() const;
bool isAttributeSelector() const { return m_match >= FirstAttributeSelectorMatch; }
bool isHostPseudoClass() const { return m_pseudoType == PseudoHost || m_pseudoType == PseudoHostContext; }
bool isInsertionPointCrossing() const { return m_pseudoType == PseudoHostContext || m_pseudoType == PseudoContent || m_pseudoType == PseudoSlotted; }
@@ -365,22 +364,6 @@ inline CSSSelector::AttributeMatchType CSSSelector::attributeMatchType() const
return m_data.m_rareData->m_bits.m_attributeMatchType;
}
-inline bool CSSSelector::isSiblingPseudo() const
-{
- PseudoType type = pseudoType();
- return type == PseudoEmpty
- || type == PseudoFirstChild
- || type == PseudoFirstOfType
- || type == PseudoLastChild
- || type == PseudoLastOfType
- || type == PseudoOnlyChild
- || type == PseudoOnlyOfType
- || type == PseudoNthChild
- || type == PseudoNthOfType
- || type == PseudoNthLastChild
- || type == PseudoNthLastOfType;
-}
-
inline bool CSSSelector::isASCIILower(const AtomicString& value)
{
for (size_t i = 0; i < value.length(); ++i) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RuleFeature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698