Index: Source/core/css/CSSValue.cpp |
diff --git a/Source/core/css/CSSValue.cpp b/Source/core/css/CSSValue.cpp |
index 5f527f8585626d25166e4c75ff340d1d05e5736e..e6fbb54fb1cb9f2dccbae7548d1a4282b7055f90 100644 |
--- a/Source/core/css/CSSValue.cpp |
+++ b/Source/core/css/CSSValue.cpp |
@@ -364,10 +364,10 @@ void CSSValue::destroy() |
delete toCSSFunctionValue(this); |
return; |
case LinearGradientClass: |
- delete static_cast<CSSLinearGradientValue*>(this); |
+ delete toCSSLinearGradientValue(this); |
return; |
case RadialGradientClass: |
- delete static_cast<CSSRadialGradientValue*>(this); |
+ delete toCSSRadialGradientValue(this); |
return; |
case CrossfadeClass: |
delete static_cast<CSSCrossfadeValue*>(this); |