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

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

Issue 1695393002: Don't add to siblingRules for features left of ::slotted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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.cpp » ('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 c1ecb103201a3e1802c91eaf785fa97bec63d122..8a9e0904812b40859f2b31c6a75b8c029e5967fc 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.h
+++ b/third_party/WebKit/Source/core/css/CSSSelector.h
@@ -253,7 +253,7 @@ public:
bool isAdjacentSelector() const { return m_relation == DirectAdjacent || m_relation == IndirectAdjacent; }
bool isShadowSelector() const { return m_relation == ShadowPseudo || m_relation == ShadowDeep; }
- bool isSiblingSelector() const;
+ 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,12 +365,10 @@ inline CSSSelector::AttributeMatchType CSSSelector::attributeMatchType() const
return m_data.m_rareData->m_bits.m_attributeMatchType;
}
-inline bool CSSSelector::isSiblingSelector() const
+inline bool CSSSelector::isSiblingPseudo() const
{
PseudoType type = pseudoType();
- return m_relation == DirectAdjacent
- || m_relation == IndirectAdjacent
- || type == PseudoEmpty
+ return type == PseudoEmpty
|| type == PseudoFirstChild
|| type == PseudoFirstOfType
|| type == PseudoLastChild
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698