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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Whoops, the forward declaration just needed to be moved. Created 5 years, 2 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: third_party/WebKit/Source/core/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index cd8d4fbb5f58e370f33bbc7edab9be14cfe24182..d4e785488704da81e98bfc08d1d75f31b80cc2a9 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -593,6 +593,10 @@ public:
TextDecorationStyle textDecorationStyle() const { return static_cast<TextDecorationStyle>(rareNonInheritedData->m_textDecorationStyle); }
float wordSpacing() const;
float letterSpacing() const;
+ StyleVariableData* variables() const;
+
+ void setVariable(const AtomicString&, PassRefPtr<CSSVariableData>);
+ void removeVariable(const AtomicString&);
float zoom() const { return visual->m_zoom; }
float effectiveZoom() const { return rareInheritedData->m_effectiveZoom; }
@@ -1738,6 +1742,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 ScrollSnapType initialScrollSnapType() { return ScrollSnapTypeNone; }
static ScrollSnapPoints initialScrollSnapPointsX() { return ScrollSnapPoints(); }

Powered by Google App Engine
This is Rietveld 408576698