Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: Source/core/css/CSSValue.cpp

Issue 24020008: Introduce CSS_VALUE_TYPE_CASTS macro to cast CSSValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/resolver/ElementStyleResources.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSValue.cpp
diff --git a/Source/core/css/CSSValue.cpp b/Source/core/css/CSSValue.cpp
index 1ffc0b146d81f3b432032050e79381fe4a84ff2e..702590d817b250ac81221a7fbe6f284706ef1efe 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -388,7 +388,7 @@ void CSSValue::destroy()
delete toCSSPrimitiveValue(this);
return;
case ReflectClass:
- delete static_cast<CSSReflectValue*>(this);
+ delete toCSSReflectValue(this);
return;
case ShadowClass:
delete static_cast<ShadowValue*>(this);
@@ -415,7 +415,7 @@ void CSSValue::destroy()
delete static_cast<CSSCalcValue*>(this);
return;
case ImageSetClass:
- delete static_cast<CSSImageSetValue*>(this);
+ delete toCSSImageSetValue(this);
return;
case CSSFilterClass:
delete static_cast<CSSFilterValue*>(this);
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/resolver/ElementStyleResources.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698