Index: Source/core/css/CSSPrimitiveValue.h |
diff --git a/Source/core/css/CSSPrimitiveValue.h b/Source/core/css/CSSPrimitiveValue.h |
index 4d2e614787acbe021ed828ba2380022ff76da2f0..1cc20c106f11213d300158bde73d99db86cf73f3 100644 |
--- a/Source/core/css/CSSPrimitiveValue.h |
+++ b/Source/core/css/CSSPrimitiveValue.h |
@@ -385,20 +385,7 @@ private: |
} m_value; |
}; |
-inline CSSPrimitiveValue* toCSSPrimitiveValue(CSSValue* value) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isPrimitiveValue()); |
- return static_cast<CSSPrimitiveValue*>(value); |
-} |
- |
-inline const CSSPrimitiveValue* toCSSPrimitiveValue(const CSSValue* value) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isPrimitiveValue()); |
- return static_cast<const CSSPrimitiveValue*>(value); |
-} |
- |
-// Catch unneeded cast. |
-void toCSSPrimitiveValue(const CSSPrimitiveValue*); |
+DEFINE_CSS_VALUE_TYPE_CASTS(PrimitiveValue); |
} // namespace WebCore |