Index: Source/core/svg/SVGColor.h |
diff --git a/Source/core/svg/SVGColor.h b/Source/core/svg/SVGColor.h |
index acdfbebe0e526364f96b1bae11b59693344bcfb4..756868829998bc7b4a032b474143f2bda2bd8c30 100644 |
--- a/Source/core/svg/SVGColor.h |
+++ b/Source/core/svg/SVGColor.h |
@@ -93,21 +93,7 @@ private: |
SVGColorType m_colorType; |
}; |
-// This will catch anyone doing an unnecessary cast. |
-SVGColor* toSVGColor(const SVGColor*); |
- |
-inline SVGColor* toSVGColor(CSSValue* value) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isSVGColor()); |
- return static_cast<SVGColor*>(value); |
-} |
- |
-inline const SVGColor* toSVGColor(const CSSValue* value) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isSVGColor()); |
- return static_cast<const SVGColor*>(value); |
-} |
- |
+DEFINE_CSS_VALUE_TYPE_CASTS(SVGColor, isSVGColor()); |
} // namespace WebCore |