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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToT-ed again... Created 5 years, 5 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/css/StyleSheetContents.h
diff --git a/Source/core/css/StyleSheetContents.h b/Source/core/css/StyleSheetContents.h
index f3251cdfabd970dc3d83cbe7659421bd8b9ec5ff..a9de9f7ac9545c3266852a1bb69777c03aa0d5f6 100644
--- a/Source/core/css/StyleSheetContents.h
+++ b/Source/core/css/StyleSheetContents.h
@@ -97,6 +97,7 @@ public:
void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri);
void parserAppendRule(PassRefPtrWillBeRawPtr<StyleRuleBase>);
void parserSetUsesRemUnits(bool b) { m_usesRemUnits = b; }
+ void parserSetUsesVariables(bool b) { m_usesVariables = b; }
void clearRules();
@@ -120,6 +121,7 @@ public:
StyleRuleBase* ruleAt(unsigned index) const;
bool usesRemUnits() const { return m_usesRemUnits; }
+ bool usesVariables() const { return m_usesVariables; }
unsigned estimatedSizeInBytes() const;
@@ -181,6 +183,7 @@ private:
bool m_hasSyntacticallyValidCSSHeader : 1;
bool m_didLoadErrorOccur : 1;
bool m_usesRemUnits : 1;
+ bool m_usesVariables : 1;
bool m_isMutable : 1;
bool m_isInMemoryCache : 1;
bool m_hasFontFaceRule : 1;

Powered by Google App Engine
This is Rietveld 408576698