Index: Source/core/svg/SVGPaint.h |
diff --git a/Source/core/svg/SVGPaint.h b/Source/core/svg/SVGPaint.h |
index 5c4fcf299f91537470cf857ca59d41167e258d60..f48b4b7ba0715f7cc02a5989d497ed790b1bd5b8 100644 |
--- a/Source/core/svg/SVGPaint.h |
+++ b/Source/core/svg/SVGPaint.h |
@@ -116,20 +116,7 @@ private: |
String m_uri; |
}; |
-// This will catch anyone doing an unnecessary cast. |
-SVGPaint* toSVGPaint(const SVGColor*); |
- |
-inline SVGPaint* toSVGPaint(CSSValue* value) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isSVGPaint()); |
- return static_cast<SVGPaint*>(value); |
-} |
- |
-inline const SVGPaint* toSVGPaint(const CSSValue* value) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isSVGPaint()); |
- return static_cast<const SVGPaint*>(value); |
-} |
+DEFINE_CSS_VALUE_TYPE_CASTS(SVGPaint, isSVGPaint()); |
} // namespace WebCore |