Index: Source/core/css/CSSCalculationValue.h |
diff --git a/Source/core/css/CSSCalculationValue.h b/Source/core/css/CSSCalculationValue.h |
index 6bf1ac771499d923090ba6d7c18a34e85af14399..ca48d1b93300efa4d479940786937f264b92bddc 100644 |
--- a/Source/core/css/CSSCalculationValue.h |
+++ b/Source/core/css/CSSCalculationValue.h |
@@ -139,17 +139,7 @@ private: |
const bool m_nonNegative; |
}; |
-inline CSSCalcValue* toCSSCalcValue(CSSValue* value) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isCalculationValue()); |
- return static_cast<CSSCalcValue*>(value); |
-} |
- |
-inline const CSSCalcValue* toCSSCalcValue(const CSSValue* value) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isCalculationValue()); |
- return static_cast<const CSSCalcValue*>(value); |
-} |
+DEFINE_CSS_VALUE_TYPE_CASTS(CalcValue); |
} // namespace WebCore |