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()) |