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

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

Issue 25044003: Generate toCSSFooValue for CSS*GradientValues (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
« no previous file with comments | « no previous file | Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGradientValue.h
diff --git a/Source/core/css/CSSGradientValue.h b/Source/core/css/CSSGradientValue.h
index 75e51520a94fa585304e913c64213d77d19be1c4..1429e5008e9a651dee0830658c5f7a786da8f0ff 100644
--- a/Source/core/css/CSSGradientValue.h
+++ b/Source/core/css/CSSGradientValue.h
@@ -75,9 +75,6 @@ public:
void sortStopsIfNeeded();
- bool isLinearGradient() const { return classType() == LinearGradientClass; }
- bool isRadialGradient() const { return classType() == RadialGradientClass; }
-
bool isRepeating() const { return m_repeating; }
CSSGradientType gradientType() const { return m_gradientType; }
@@ -134,6 +131,7 @@ protected:
bool m_repeating;
};
+DEFINE_CSS_VALUE_TYPE_CASTS(GradientValue);
class CSSLinearGradientValue : public CSSGradientValue {
public:
@@ -172,6 +170,8 @@ private:
RefPtr<CSSPrimitiveValue> m_angle; // may be null.
};
+DEFINE_CSS_VALUE_TYPE_CASTS(LinearGradientValue);
+
class CSSRadialGradientValue : public CSSGradientValue {
public:
static PassRefPtr<CSSRadialGradientValue> create(CSSGradientRepeat repeat, CSSGradientType gradientType = CSSRadialGradient)
@@ -233,6 +233,8 @@ private:
RefPtr<CSSPrimitiveValue> m_endVerticalSize;
};
+DEFINE_CSS_VALUE_TYPE_CASTS(RadialGradientValue);
+
} // namespace WebCore
#endif // CSSGradientValue_h
« no previous file with comments | « no previous file | Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698