Index: Source/core/css/CSSValue.cpp |
diff --git a/Source/core/css/CSSValue.cpp b/Source/core/css/CSSValue.cpp |
index 5d765047b68e4a244ac3f63d25a24879141f7a17..ca35ed7344d4f6960f727be47e83fff692fac66e 100644 |
--- a/Source/core/css/CSSValue.cpp |
+++ b/Source/core/css/CSSValue.cpp |
@@ -361,7 +361,7 @@ void CSSValue::destroy() |
delete static_cast<FontFeatureValue*>(this); |
return; |
case FunctionClass: |
- delete static_cast<CSSFunctionValue*>(this); |
+ delete toCSSFunctionValue(this); |
return; |
case LinearGradientClass: |
delete static_cast<CSSLinearGradientValue*>(this); |
@@ -439,7 +439,7 @@ void CSSValue::destroy() |
delete static_cast<SVGPaint*>(this); |
return; |
case CSSSVGDocumentClass: |
- delete static_cast<CSSSVGDocumentValue*>(this); |
+ delete toCSSSVGDocumentValue(this); |
return; |
} |
ASSERT_NOT_REACHED(); |