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

Unified Diff: third_party/WebKit/Source/core/css/RuleSet.h

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.h
diff --git a/third_party/WebKit/Source/core/css/RuleSet.h b/third_party/WebKit/Source/core/css/RuleSet.h
index 34b52808b1698f6f82d42426998244d9d425fa0c..60be52cfdabe5f6f03952ec2ec4d3b3c83c7cdce 100644
--- a/third_party/WebKit/Source/core/css/RuleSet.h
+++ b/third_party/WebKit/Source/core/css/RuleSet.h
@@ -188,6 +188,10 @@ class CORE_EXPORT RuleSet : public GarbageCollectedFinalized<RuleSet> {
ASSERT(!m_pendingRules);
return &m_focusPseudoClassRules;
}
+ const HeapVector<RuleData>* placeholderPseudoRules() const {
+ DCHECK(!m_pendingRules);
+ return &m_placeholderPseudoRules;
+ }
const HeapVector<RuleData>* universalRules() const {
ASSERT(!m_pendingRules);
return &m_universalRules;
@@ -300,6 +304,7 @@ class CORE_EXPORT RuleSet : public GarbageCollectedFinalized<RuleSet> {
HeapVector<RuleData> m_linkPseudoClassRules;
HeapVector<RuleData> m_cuePseudoRules;
HeapVector<RuleData> m_focusPseudoClassRules;
+ HeapVector<RuleData> m_placeholderPseudoRules;
HeapVector<RuleData> m_universalRules;
HeapVector<RuleData> m_shadowHostRules;
RuleFeatureSet m_features;

Powered by Google App Engine
This is Rietveld 408576698