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

Unified Diff: Source/core/css/RuleFeature.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: Removed extra line. 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/css/RuleFeature.h
diff --git a/Source/core/css/RuleFeature.h b/Source/core/css/RuleFeature.h
index b51863c428975a72a41f1295c091d558f12976a3..211ee143f16f6cc26cb51f539054c025c47708d1 100644
--- a/Source/core/css/RuleFeature.h
+++ b/Source/core/css/RuleFeature.h
@@ -22,6 +22,7 @@
#ifndef RuleFeature_h
#define RuleFeature_h
+#include "core/css/analyzer/RuleSetAnalyzer.h"
#include "wtf/Forward.h"
#include "wtf/HashSet.h"
#include "wtf/text/AtomicStringHash.h"
@@ -80,12 +81,18 @@ public:
return idsInRules.contains(idValue);
}
+ const RuleSetAnalyzer* getRuleSetAnalyzer() const;
esprehn 2014/01/14 21:32:56 ruleSetAnalyzer(), no get prefix.
+ RuleSetAnalyzer* ensureRuleSetAnalyzer();
+
+ // FIXME: move this stuff into the rule set analyzer.
HashSet<AtomicString> idsInRules;
HashSet<AtomicString> classesInRules;
HashSet<AtomicString> attrsInRules;
Vector<RuleFeature> siblingRules;
Vector<RuleFeature> uncommonAttributeRules;
private:
+ RefPtr<RuleSetAnalyzer> ruleSetAnalyzer;
+
void collectFeaturesFromSelectorList(const CSSSelectorList*);
bool m_usesFirstLineRules;

Powered by Google App Engine
This is Rietveld 408576698