Chromium Code Reviews| Index: Source/core/css/RuleFeature.h |
| diff --git a/Source/core/css/RuleFeature.h b/Source/core/css/RuleFeature.h |
| index b51863c428975a72a41f1295c091d558f12976a3..51501998f03a32de3463880eb58eaf5dc91d277b 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* ruleSetAnalyzer() const; |
| + RuleSetAnalyzer* ensureRuleSetAnalyzer(); |
|
esprehn
2014/01/16 20:11:48
This should return a reference
chrishtr
2014/01/16 20:46:22
Done.
|
| + |
| + // 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> m_ruleSetAnalyzer; |
| + |
| void collectFeaturesFromSelectorList(const CSSSelectorList*); |
| bool m_usesFirstLineRules; |