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

Unified Diff: Source/core/css/RuleFeature.h

Issue 149513011: Pass around CSSSelector by reference instead of pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/css/ElementRuleCollector.cpp ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/RuleFeature.h
diff --git a/Source/core/css/RuleFeature.h b/Source/core/css/RuleFeature.h
index e90bab40ff1ed459d444d0a65beff1ddd7b934c5..a609342c466053a52ee7e630a4913309fefb2862 100644
--- a/Source/core/css/RuleFeature.h
+++ b/Source/core/css/RuleFeature.h
@@ -53,7 +53,7 @@ public:
void add(const RuleFeatureSet&);
void clear();
- void collectFeaturesFromSelector(const CSSSelector*);
+ void collectFeaturesFromSelector(const CSSSelector&);
void collectFeaturesFromRuleData(const RuleData&);
bool usesSiblingRules() const { return !siblingRules.isEmpty(); }
@@ -110,10 +110,10 @@ private:
HashSet<AtomicString> attrsInRules;
};
- void collectFeaturesFromSelector(const CSSSelector*, FeatureMetadata&);
+ void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&);
void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata&);
DescendantInvalidationSet& ensureClassInvalidationSet(const AtomicString& className);
- bool updateClassInvalidationSets(const CSSSelector*);
+ bool updateClassInvalidationSets(const CSSSelector&);
InvalidationSetMap m_classInvalidationSets;
FeatureMetadata m_metadata;
« no previous file with comments | « Source/core/css/ElementRuleCollector.cpp ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698