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

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

Issue 838313002: Move StyleResolver code out of ScopedStyleResolver. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « no previous file | sky/engine/core/css/RuleSet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/RuleSet.h
diff --git a/sky/engine/core/css/RuleSet.h b/sky/engine/core/css/RuleSet.h
index 8be80de18bf4c19df55f179887659c75a94eb10d..95722592d14d5a75b1a67f7f4fe45c3d0fd3c2dd 100644
--- a/sky/engine/core/css/RuleSet.h
+++ b/sky/engine/core/css/RuleSet.h
@@ -34,18 +34,13 @@
namespace blink {
-enum AddRuleFlags {
- RuleHasNoSpecialState = 0,
- RuleCanUseFastCheckSelector = 1,
-};
-
class CSSSelector;
class StyleSheetContents;
class RuleData {
ALLOW_ONLY_INLINE_ALLOCATION();
public:
- RuleData(StyleRule*, unsigned selectorIndex, unsigned position, AddRuleFlags);
+ RuleData(StyleRule*, unsigned selectorIndex, unsigned position);
unsigned position() const { return m_position; }
StyleRule* rule() const { return m_rule; }
@@ -77,9 +72,9 @@ class RuleSet {
public:
static PassOwnPtr<RuleSet> create() { return adoptPtr(new RuleSet); }
- void addRulesFromSheet(StyleSheetContents*, AddRuleFlags = RuleHasNoSpecialState);
- void addStyleRule(StyleRule*, AddRuleFlags);
- void addRule(StyleRule*, unsigned selectorIndex, AddRuleFlags);
+ void addRulesFromSheet(StyleSheetContents*);
+ void addStyleRule(StyleRule*);
+ void addRule(StyleRule*, unsigned selectorIndex);
const RuleFeatureSet& features() const { return m_features; }
@@ -116,7 +111,7 @@ private:
void addFontFaceRule(StyleRuleFontFace*);
void addKeyframesRule(StyleRuleKeyframes*);
- void addChildRules(const Vector<RefPtr<StyleRuleBase> >&, AddRuleFlags);
+ void addChildRules(const Vector<RefPtr<StyleRuleBase> >&);
bool findBestRuleSetAndAdd(const CSSSelector&, RuleData&);
void compactRules();
« no previous file with comments | « no previous file | sky/engine/core/css/RuleSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698