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

Unified Diff: third_party/WebKit/Source/core/css/RuleSet.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/RuleSet.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleSet.cpp b/third_party/WebKit/Source/core/css/RuleSet.cpp
index 4741fae560d76f69bc82da435000b9f93fa3a7e7..79158f7991aecb107ded21e72240f2474bdbfc1d 100644
--- a/third_party/WebKit/Source/core/css/RuleSet.cpp
+++ b/third_party/WebKit/Source/core/css/RuleSet.cpp
@@ -220,6 +220,9 @@ bool RuleSet::findBestRuleSetAndAdd(const CSSSelector& component,
case CSSSelector::PseudoFocus:
m_focusPseudoClassRules.append(ruleData);
return true;
+ case CSSSelector::PseudoPlaceholder:
+ m_placeholderPseudoRules.append(ruleData);
+ return true;
default:
break;
}
@@ -371,6 +374,7 @@ void RuleSet::compactRules() {
m_linkPseudoClassRules.shrinkToFit();
m_cuePseudoRules.shrinkToFit();
m_focusPseudoClassRules.shrinkToFit();
+ m_placeholderPseudoRules.shrinkToFit();
m_universalRules.shrinkToFit();
m_shadowHostRules.shrinkToFit();
m_pageRules.shrinkToFit();
@@ -404,6 +408,7 @@ DEFINE_TRACE(RuleSet) {
visitor->trace(m_linkPseudoClassRules);
visitor->trace(m_cuePseudoRules);
visitor->trace(m_focusPseudoClassRules);
+ visitor->trace(m_placeholderPseudoRules);
visitor->trace(m_universalRules);
visitor->trace(m_shadowHostRules);
visitor->trace(m_features);

Powered by Google App Engine
This is Rietveld 408576698