Index: Source/core/css/CSSValue.h |
diff --git a/Source/core/css/CSSValue.h b/Source/core/css/CSSValue.h |
index 61532b903f19efc04ebc187be669cb58f6c4783a..76a760b27ac99ba72b4d53e6781fde7c9d3ce3ae 100644 |
--- a/Source/core/css/CSSValue.h |
+++ b/Source/core/css/CSSValue.h |
@@ -242,19 +242,8 @@ inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C |
return first ? second && first->equals(*second) : !second; |
} |
-#define DEFINE_CSS_VALUE_TYPE_CASTS(ValueTypeName) \ |
-inline const CSS##ValueTypeName* toCSS##ValueTypeName(const CSSValue* value) \ |
-{ \ |
- ASSERT_WITH_SECURITY_IMPLICATION(!value || value->is##ValueTypeName()); \ |
- return static_cast<const CSS##ValueTypeName*>(value); \ |
-} \ |
-inline CSS##ValueTypeName* toCSS##ValueTypeName(CSSValue* value) \ |
-{ \ |
- ASSERT_WITH_SECURITY_IMPLICATION(!value || value->is##ValueTypeName()); \ |
- return static_cast<CSS##ValueTypeName*>(value); \ |
-} \ |
-void toCSS##ValueTypeName(const CSS##ValueTypeName*); \ |
-void toCSS##ValueTypeName(const CSS##ValueTypeName&) |
+#define DEFINE_CSS_VALUE_TYPE_CASTS(thisType, predicate) \ |
+ DEFINE_TYPE_CASTS(thisType, CSSValue, value, value->predicate, value.predicate) |
} // namespace WebCore |