Index: Source/core/css/CSSFunctionValue.h |
diff --git a/Source/core/css/CSSFunctionValue.h b/Source/core/css/CSSFunctionValue.h |
index d4e7e4d83ddc384bf86a23194c15dd96bce4a84d..ee5c5d9a82bd11cdcd70aa9c0367c2e848ea0906 100644 |
--- a/Source/core/css/CSSFunctionValue.h |
+++ b/Source/core/css/CSSFunctionValue.h |
@@ -59,20 +59,7 @@ private: |
RefPtr<CSSValueList> m_args; |
}; |
-inline CSSFunctionValue* toCSSFunctionValue(CSSValue* value) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(value->isFunctionValue()); |
- return static_cast<CSSFunctionValue*>(value); |
-} |
- |
-inline const CSSFunctionValue* toCSSFunctionValue(const CSSValue* value) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(value->isFunctionValue()); |
- return static_cast<const CSSFunctionValue*>(value); |
-} |
- |
-// Catch any unneeded cast. |
-void toCSSFunctionValue(const CSSFunctionValue*); |
+DEFINE_CSS_VALUE_TYPE_CASTS(FunctionValue); |
} // namespace WebCore |