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

Unified Diff: sky/engine/core/css/RuleFeature.h

Issue 796583002: Use the HashSet of attribute names in SharedStyleFinder. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Use C++11 loops. Created 6 years 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 | « sky/engine/core/css/ElementRuleCollector.cpp ('k') | sky/engine/core/css/RuleFeature.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/RuleFeature.h
diff --git a/sky/engine/core/css/RuleFeature.h b/sky/engine/core/css/RuleFeature.h
index f2bd071d2fc3ffdbce52cd9b17073a0713d6a346..065b77cbc6382e8669e18d6da314153724175597 100644
--- a/sky/engine/core/css/RuleFeature.h
+++ b/sky/engine/core/css/RuleFeature.h
@@ -34,18 +34,6 @@ class Element;
class QualifiedName;
class RuleData;
class SpaceSplitString;
-class StyleRule;
-
-struct RuleFeature {
- RuleFeature(StyleRule* rule, unsigned selectorIndex)
- : rule(rule)
- , selectorIndex(selectorIndex)
- {
- }
-
- StyleRule* rule;
- unsigned selectorIndex;
-};
class RuleFeatureSet {
public:
@@ -56,7 +44,6 @@ public:
void clear();
void collectFeaturesFromSelector(const CSSSelector&);
- void collectFeaturesFromRuleData(const RuleData&);
inline bool hasSelectorForAttribute(const AtomicString& attributeName) const
{
@@ -83,8 +70,6 @@ public:
void scheduleStyleInvalidationForAttributeChange(const QualifiedName& attributeName, Element&);
void scheduleStyleInvalidationForIdChange(const AtomicString& oldId, const AtomicString& newId, Element&);
- Vector<RuleFeature> attributeRules;
-
private:
void addSelectorFeatures(const CSSSelector&);
void collectFeaturesFromSelectorList(const CSSSelectorList*);
@@ -94,17 +79,6 @@ private:
HashSet<AtomicString> m_idNames;
};
-
} // namespace blink
-namespace WTF {
-
-template <> struct VectorTraits<blink::RuleFeature> : VectorTraitsBase<blink::RuleFeature> {
- static const bool needsDestruction = false;
- static const bool canInitializeWithMemset = true;
- static const bool canMoveWithMemcpy = true;
-};
-
-} // namespace WTF
-
#endif // SKY_ENGINE_CORE_CSS_RULEFEATURE_H_
« no previous file with comments | « sky/engine/core/css/ElementRuleCollector.cpp ('k') | sky/engine/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698