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

Unified Diff: Source/core/dom/TreeScopeStyleSheetCollection.h

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: with missing files Created 5 years, 6 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
Index: Source/core/dom/TreeScopeStyleSheetCollection.h
diff --git a/Source/core/dom/TreeScopeStyleSheetCollection.h b/Source/core/dom/TreeScopeStyleSheetCollection.h
index 3ccc957b55bed47acf0d6b684debb5877204a729..e201e7f2a70a865dddde9b660502f620881b070a 100644
--- a/Source/core/dom/TreeScopeStyleSheetCollection.h
+++ b/Source/core/dom/TreeScopeStyleSheetCollection.h
@@ -53,6 +53,7 @@ public:
bool hasStyleSheetCandidateNodes() const { return !m_styleSheetCandidateNodes.isEmpty(); }
bool usesRemUnits() const { return m_usesRemUnits; }
+ bool usesVariables() const { return m_usesVariables; }
void clearMediaQueryRuleSetStyleSheets();
@@ -83,7 +84,7 @@ protected:
};
void analyzeStyleSheetChange(StyleResolverUpdateMode, const StyleSheetCollection&, StyleSheetChange&);
- void updateUsesRemUnits();
+ void updateUsesRemUnitsAndVariables();
private:
static StyleResolverUpdateType compareStyleSheets(const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& oldStyleSheets, const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& newStylesheets, WillBeHeapVector<RawPtrWillBeMember<StyleSheetContents>>& addedSheets);
@@ -95,6 +96,7 @@ protected:
RawPtrWillBeMember<TreeScope> m_treeScope;
bool m_hadActiveLoadingStylesheet;
bool m_usesRemUnits;
+ bool m_usesVariables;
DocumentOrderedList m_styleSheetCandidateNodes;
};

Powered by Google App Engine
This is Rietveld 408576698