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

Unified Diff: Source/core/dom/shadow/SelectRuleFeatureSet.h

Issue 129633003: Add a first pass of a class descendant invalidator, and a containing RuleSetAnalyzer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Implement tree walk for descendant class invalidation. Created 6 years, 11 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
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/dom/shadow/SelectRuleFeatureSet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/shadow/SelectRuleFeatureSet.h
diff --git a/Source/core/dom/shadow/SelectRuleFeatureSet.h b/Source/core/dom/shadow/SelectRuleFeatureSet.h
index 429d2777699c1c3b5d92eeebadd456f3dc911a89..b948a645782ad9c18aec2549f16ec768a86290c9 100644
--- a/Source/core/dom/shadow/SelectRuleFeatureSet.h
+++ b/Source/core/dom/shadow/SelectRuleFeatureSet.h
@@ -48,6 +48,8 @@ public:
bool hasSelectorForClass(const AtomicString&) const;
bool hasSelectorForAttribute(const AtomicString&) const;
+ RuleSetAnalyzer* getRuleSetAnalyzer() const;
+
bool hasSelectorForChecked() const { return hasSelectorFor(AffectedSelectorChecked); }
bool hasSelectorForEnabled() const { return hasSelectorFor(AffectedSelectorEnabled); }
bool hasSelectorForDisabled() const { return hasSelectorFor(AffectedSelectorDisabled); }
@@ -65,6 +67,12 @@ private:
int m_featureFlags;
};
+// FIXME: make the shadow DOM smarter about analyzing select rules.
+inline RuleSetAnalyzer* SelectRuleFeatureSet::getRuleSetAnalyzer() const
+{
+ return 0;
+}
+
inline bool SelectRuleFeatureSet::hasSelectorForId(const AtomicString& idValue) const
{
ASSERT(!idValue.isEmpty());
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/dom/shadow/SelectRuleFeatureSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698