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

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: Fixed name 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
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..ed11757958a02ae3b6ffb408f4fd07421a9fb180 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;
+ const RuleSetAnalyzer* ruleSetAnalyzer() 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 const RuleSetAnalyzer* SelectRuleFeatureSet::ruleSetAnalyzer() const
+{
+ return 0;
+}
+
inline bool SelectRuleFeatureSet::hasSelectorForId(const AtomicString& idValue) const
{
ASSERT(!idValue.isEmpty());
« Source/core/css/analyzer/RuleSetAnalyzer.cpp ('K') | « Source/core/css/resolver/StyleResolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698