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

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

Issue 24906003: Use toCSSFooValue() generation macro for CSSInheritedValue, CSSVariableValue and CSSGridTemplateVal… (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/CSSInheritedValue.h ('k') | Source/core/css/CSSVariableValue.h » ('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 5d765047b68e4a244ac3f63d25a24879141f7a17..3770529d04cb9d53f2b44fec0d5516020ca5398f 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -376,13 +376,13 @@ void CSSValue::destroy()
delete toCSSImageValue(this);
return;
case InheritedClass:
- delete static_cast<CSSInheritedValue*>(this);
+ delete toCSSInheritedValue(this);
return;
case InitialClass:
delete static_cast<CSSInitialValue*>(this);
return;
case GridTemplateClass:
- delete static_cast<CSSGridTemplateValue*>(this);
+ delete toCSSGridTemplateValue(this);
return;
case PrimitiveClass:
delete toCSSPrimitiveValue(this);
« no previous file with comments | « Source/core/css/CSSInheritedValue.h ('k') | Source/core/css/CSSVariableValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698