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

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

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.cpp
diff --git a/Source/core/css/CSSSelector.cpp b/Source/core/css/CSSSelector.cpp
index e6645dfcb0af5094d9263909bdad3d7685d8762c..75d10cdb733595029849bbf8011ec47e9790490e 100644
--- a/Source/core/css/CSSSelector.cpp
+++ b/Source/core/css/CSSSelector.cpp
@@ -695,8 +695,10 @@ String CSSSelector::selectorText(const String& rightSide) const
ASSERT_NOT_REACHED();
case CSSSelector::ShadowPseudo:
return tagHistory->selectorText(str.toString() + rightSide);
- case CSSSelector::ShadowDistributed:
+ case CSSSelector::ShadowVirtualDescendant:
return tagHistory->selectorText("::-webkit-distributed(" + str.toString() + rightSide + ")");
+ case CSSSelector::ShadowVirtualChild:
+ return tagHistory->selectorText("::-webkit-distributed(> " + str.toString() + rightSide + ")");
}
}
return str.toString() + rightSide;

Powered by Google App Engine
This is Rietveld 408576698