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

Unified Diff: Source/core/style/ComputedStyle.h

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Missing file :( Created 5 years, 4 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/style/ComputedStyle.h
diff --git a/Source/core/style/ComputedStyle.h b/Source/core/style/ComputedStyle.h
index 1a8c0b31195c1c1da54e1d38bca390219d744475..27c3ea7ccf88ce7cd40cdbd2d6c480dc5f51bbdf 100644
--- a/Source/core/style/ComputedStyle.h
+++ b/Source/core/style/ComputedStyle.h
@@ -591,6 +591,11 @@ public:
TextDecorationStyle textDecorationStyle() const { return static_cast<TextDecorationStyle>(rareNonInheritedData->m_textDecorationStyle); }
float wordSpacing() const;
float letterSpacing() const;
+ StyleVariableData* variables() const;
+ void setVariables(PassRefPtr<StyleVariableData>);
+
+ void setVariable(const AtomicString&, CSSVariableData*);
+ void removeVariable(const AtomicString&);
float zoom() const { return visual->m_zoom; }
float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; }
@@ -1707,6 +1712,7 @@ public:
static TouchAction initialTouchAction() { return TouchActionAuto; }
static ShadowList* initialBoxShadow() { return 0; }
static ShadowList* initialTextShadow() { return 0; }
+ static StyleVariableData* initialVariables() { return nullptr; }
static ScrollBehavior initialScrollBehavior() { return ScrollBehaviorAuto; }
static WebScrollBlocksOn initialScrollBlocksOn() { return WebScrollBlocksOnNone; }
static ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; }

Powered by Google App Engine
This is Rietveld 408576698