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

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

Issue 25434004: Generate toCSSFooValue() for CSSCanvasValue, CSSCrossfadeValue, CSSImageGeneratorValue, CSSImageVal… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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/FontFace.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 4c231b900d218d6844955de4ba16e5fc19f6841f..46f2b82d7a67bcb97d5372bead774537477e9594 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -346,7 +346,7 @@ void CSSValue::destroy()
delete toCSSBorderImageSliceValue(this);
return;
case CanvasClass:
- delete static_cast<CSSCanvasValue*>(this);
+ delete toCSSCanvasValue(this);
return;
case CursorImageClass:
delete toCSSCursorImageValue(this);
@@ -370,7 +370,7 @@ void CSSValue::destroy()
delete toCSSRadialGradientValue(this);
return;
case CrossfadeClass:
- delete static_cast<CSSCrossfadeValue*>(this);
+ delete toCSSCrossfadeValue(this);
return;
case ImageClass:
delete toCSSImageValue(this);
@@ -379,7 +379,7 @@ void CSSValue::destroy()
delete toCSSInheritedValue(this);
return;
case InitialClass:
- delete static_cast<CSSInitialValue*>(this);
+ delete toCSSInitialValue(this);
return;
case GridTemplateClass:
delete toCSSGridTemplateValue(this);
@@ -394,13 +394,13 @@ void CSSValue::destroy()
delete static_cast<ShadowValue*>(this);
return;
case CubicBezierTimingFunctionClass:
- delete static_cast<CSSCubicBezierTimingFunctionValue*>(this);
+ delete toCSSCubicBezierTimingFunctionValue(this);
return;
case StepsTimingFunctionClass:
- delete static_cast<CSSStepsTimingFunctionValue*>(this);
+ delete toCSSStepsTimingFunctionValue(this);
return;
case UnicodeRangeClass:
- delete static_cast<CSSUnicodeRangeValue*>(this);
+ delete toCSSUnicodeRangeValue(this);
return;
case ValueListClass:
delete toCSSValueList(this);
@@ -409,7 +409,7 @@ void CSSValue::destroy()
delete toCSSTransformValue(this);
return;
case LineBoxContainClass:
- delete static_cast<CSSLineBoxContainValue*>(this);
+ delete toCSSLineBoxContainValue(this);
return;
case CalculationClass:
delete toCSSCalcValue(this);
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/FontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698