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

Unified Diff: third_party/WebKit/Source/core/css/CSSGradientValue.h

Issue 2382653006: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Make check-webkit-style happy Created 4 years, 3 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/css/CSSGradientValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSGradientValue.h b/third_party/WebKit/Source/core/css/CSSGradientValue.h
index f8b36f4f24e5c158097a6e13baae35574ee01b8d..6e69cfd50fb1bb84d8e3ea1691d27007317aa5fa 100644
--- a/third_party/WebKit/Source/core/css/CSSGradientValue.h
+++ b/third_party/WebKit/Source/core/css/CSSGradientValue.h
@@ -26,6 +26,7 @@
#ifndef CSSGradientValue_h
#define CSSGradientValue_h
+#include "core/css/CSSIdentifierValue.h"
#include "core/css/CSSImageGeneratorValue.h"
#include "core/css/CSSPrimitiveValue.h"
#include "wtf/RefPtr.h"
@@ -195,8 +196,8 @@ class CSSRadialGradientValue final : public CSSGradientValue {
void setFirstRadius(CSSPrimitiveValue* val) { m_firstRadius = val; }
void setSecondRadius(CSSPrimitiveValue* val) { m_secondRadius = val; }
- void setShape(CSSPrimitiveValue* val) { m_shape = val; }
- void setSizingBehavior(CSSPrimitiveValue* val) { m_sizingBehavior = val; }
+ void setShape(CSSIdentifierValue* val) { m_shape = val; }
+ void setSizingBehavior(CSSIdentifierValue* val) { m_sizingBehavior = val; }
void setEndHorizontalSize(CSSPrimitiveValue* val) {
m_endHorizontalSize = val;
@@ -227,8 +228,8 @@ class CSSRadialGradientValue final : public CSSGradientValue {
Member<CSSPrimitiveValue> m_secondRadius;
// The below are only used for non-deprecated gradients. Any of them may be null.
- Member<CSSPrimitiveValue> m_shape;
- Member<CSSPrimitiveValue> m_sizingBehavior;
+ Member<CSSIdentifierValue> m_shape;
+ Member<CSSIdentifierValue> m_sizingBehavior;
Member<CSSPrimitiveValue> m_endHorizontalSize;
Member<CSSPrimitiveValue> m_endVerticalSize;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCounterValue.h ('k') | third_party/WebKit/Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698