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

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: Use m_unit Created 5 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: 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 c4f0ede35f0eab737422471c78fdadbbc3db2db8..d8eff8e20b5df138916741c4041a30949245f15d 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; }
@@ -1742,6 +1746,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(); }
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698