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

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

Issue 15657003: Make a '::distributed' pseudo element the first-ever client who can accept a relative selector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/CSSSelector.h
diff --git a/Source/core/css/CSSSelector.h b/Source/core/css/CSSSelector.h
index 2ec1ec9a5ad99f4bc5d8b1de0fc82ec39a75bef6..3609e15748bf844b40880d9c983389679abd0044 100644
--- a/Source/core/css/CSSSelector.h
+++ b/Source/core/css/CSSSelector.h
@@ -80,7 +80,8 @@ namespace WebCore {
IndirectAdjacent,
SubSelector,
ShadowPseudo,
- ShadowDistributed
+ ShadowVirtualDescendant,
+ ShadowVirtualChild
dglazkov 2013/05/22 17:43:43 Introducing "virtual" here is bugging me. What doe
};
enum PseudoType {
@@ -340,7 +341,7 @@ inline bool CSSSelector::isDistributedPseudoElement() const
inline bool CSSSelector::isShadowDistributed() const
{
- return m_relation == CSSSelector::ShadowDistributed;
+ return m_relation == CSSSelector::ShadowVirtualDescendant || m_relation == CSSSelector::ShadowVirtualChild;
}
inline void CSSSelector::setValue(const AtomicString& value)

Powered by Google App Engine
This is Rietveld 408576698