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

Unified Diff: third_party/WebKit/Source/core/css/ElementRuleCollector.cpp

Issue 2509593002: Implement ::placeholder CSS selector. (Closed)
Patch Set: Test fix, etc. Created 4 years, 1 month 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: third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
diff --git a/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp b/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
index c77c0da1d62db403fadcb59e1dff9bc28c9c21cd..aa8c8e418c2cce763e0062119bce7d2afdc7f63a 100644
--- a/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
+++ b/third_party/WebKit/Source/core/css/ElementRuleCollector.cpp
@@ -196,6 +196,11 @@ void ElementRuleCollector::collectMatchingRules(
collectMatchingRulesForList(
matchRequest.ruleSet->shadowPseudoElementRules(pseudoId), cascadeOrder,
matchRequest);
+ if (pseudoId == "-webkit-input-placeholder") {
+ collectMatchingRulesForList(
+ matchRequest.ruleSet->placeholderPseudoRules(), cascadeOrder,
+ matchRequest);
+ }
}
if (element.isVTTElement())

Powered by Google App Engine
This is Rietveld 408576698