Index: Source/core/css/CSSValue.cpp |
diff --git a/Source/core/css/CSSValue.cpp b/Source/core/css/CSSValue.cpp |
index c32bab76e10556a24eec72a80c65028a423ad5b6..9f14cc308697d53465a1a2cab9edbe93455e4640 100644 |
--- a/Source/core/css/CSSValue.cpp |
+++ b/Source/core/css/CSSValue.cpp |
@@ -412,7 +412,7 @@ void CSSValue::destroy() |
delete static_cast<CSSLineBoxContainValue*>(this); |
return; |
case CalculationClass: |
- delete static_cast<CSSCalcValue*>(this); |
+ delete toCSSCalcValue(this); |
return; |
case ImageSetClass: |
delete toCSSImageSetValue(this); |