Chromium Code Reviews| Index: Source/core/css/RuleSet.h |
| diff --git a/Source/core/css/RuleSet.h b/Source/core/css/RuleSet.h |
| index 988ad24060aad5551d923e1abb07e472d8fb7b48..260b4980d341e33600e2f7f90a75db52322650ef 100644 |
| --- a/Source/core/css/RuleSet.h |
| +++ b/Source/core/css/RuleSet.h |
| @@ -36,6 +36,7 @@ enum AddRuleFlags { |
| RuleHasDocumentSecurityOrigin = 1, |
| RuleCanUseFastCheckSelector = 1 << 1, |
| RuleIsInRegionRule = 1 << 2, |
| + ViewportRuleIsProcessed = 1 << 3 |
| }; |
| enum PropertyWhitelistType { |
| @@ -109,9 +110,10 @@ class RuleSet { |
| public: |
| static PassOwnPtr<RuleSet> create() { return adoptPtr(new RuleSet); } |
| - void addRulesFromSheet(StyleSheetContents*, const MediaQueryEvaluator&, StyleResolver* = 0, const ContainerNode* = 0); |
| + void addRulesFromSheet(StyleSheetContents*, const MediaQueryEvaluator&, StyleResolver* = 0, const ContainerNode* = 0, bool viewportRuleIsProcessed = false); |
|
dglazkov
2013/11/13 16:29:22
Let's avoid bools as params. Enums are teh cool.
tasak
2013/11/14 11:25:46
Done.
|
| void addStyleRule(StyleRule*, AddRuleFlags); |
| void addRule(StyleRule*, unsigned selectorIndex, AddRuleFlags); |
| + void addViewportRule(StyleRuleViewport*); |
| const RuleFeatureSet& features() const { return m_features; } |
| @@ -159,7 +161,6 @@ private: |
| void addToRuleSet(StringImpl* key, PendingRuleMap&, const RuleData&); |
| void addPageRule(StyleRulePage*); |
| - void addViewportRule(StyleRuleViewport*); |
| void addFontFaceRule(StyleRuleFontFace*); |
| void addKeyframesRule(StyleRuleKeyframes*); |
| void addHostRule(StyleRuleHost*); |