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

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

Issue 26145005: DEFINE_CSS_VALUE_TYPE_CASTS starts to use DEFINE_TYPE_CASTS (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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: Source/core/css/CSSGradientValue.h
diff --git a/Source/core/css/CSSGradientValue.h b/Source/core/css/CSSGradientValue.h
index 1429e5008e9a651dee0830658c5f7a786da8f0ff..ed9c2d8a83451ca363991d443b976f03efd41e87 100644
--- a/Source/core/css/CSSGradientValue.h
+++ b/Source/core/css/CSSGradientValue.h
@@ -131,7 +131,7 @@ protected:
bool m_repeating;
};
-DEFINE_CSS_VALUE_TYPE_CASTS(GradientValue);
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSGradientValue, isGradientValue());
class CSSLinearGradientValue : public CSSGradientValue {
public:
@@ -170,7 +170,7 @@ private:
RefPtr<CSSPrimitiveValue> m_angle; // may be null.
};
-DEFINE_CSS_VALUE_TYPE_CASTS(LinearGradientValue);
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSLinearGradientValue, isLinearGradientValue());
class CSSRadialGradientValue : public CSSGradientValue {
public:
@@ -233,7 +233,7 @@ private:
RefPtr<CSSPrimitiveValue> m_endVerticalSize;
};
-DEFINE_CSS_VALUE_TYPE_CASTS(RadialGradientValue);
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSRadialGradientValue, isRadialGradientValue());
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698