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

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

Issue 42543007: StyleResolver should update RuleSets lazily. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 1 month 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
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*);

Powered by Google App Engine
This is Rietveld 408576698