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

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

Issue 205273003: Use toCSSFooValue() instaed of using static_cast<CSSFooValue*> in CSSValue.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 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 | « no previous file | no next file » | 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 f6f81ed2c9395afe6ccd0404092f531f683e7314..dd119205959d1206f04a9b90d8b785c6af3b23b3 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -515,97 +515,97 @@ void CSSValue::trace(Visitor* visitor)
switch (classType()) {
case AspectRatioClass:
- static_cast<CSSAspectRatioValue*>(this)->traceAfterDispatch(visitor);
+ toCSSAspectRatioValue(this)->traceAfterDispatch(visitor);
return;
case BorderImageSliceClass:
- static_cast<CSSBorderImageSliceValue*>(this)->traceAfterDispatch(visitor);
+ toCSSBorderImageSliceValue(this)->traceAfterDispatch(visitor);
return;
case CanvasClass:
- static_cast<CSSCanvasValue*>(this)->traceAfterDispatch(visitor);
+ toCSSCanvasValue(this)->traceAfterDispatch(visitor);
return;
case CursorImageClass:
- static_cast<CSSCursorImageValue*>(this)->traceAfterDispatch(visitor);
+ toCSSCursorImageValue(this)->traceAfterDispatch(visitor);
return;
case FontClass:
- static_cast<CSSFontValue*>(this)->traceAfterDispatch(visitor);
+ toCSSFontValue(this)->traceAfterDispatch(visitor);
return;
case FontFaceSrcClass:
- static_cast<CSSFontFaceSrcValue*>(this)->traceAfterDispatch(visitor);
+ toCSSFontFaceSrcValue(this)->traceAfterDispatch(visitor);
return;
case FontFeatureClass:
- static_cast<CSSFontFeatureValue*>(this)->traceAfterDispatch(visitor);
+ toCSSFontFeatureValue(this)->traceAfterDispatch(visitor);
return;
case FunctionClass:
- static_cast<CSSFunctionValue*>(this)->traceAfterDispatch(visitor);
+ toCSSFunctionValue(this)->traceAfterDispatch(visitor);
return;
case LinearGradientClass:
- static_cast<CSSLinearGradientValue*>(this)->traceAfterDispatch(visitor);
+ toCSSLinearGradientValue(this)->traceAfterDispatch(visitor);
return;
case RadialGradientClass:
- static_cast<CSSRadialGradientValue*>(this)->traceAfterDispatch(visitor);
+ toCSSRadialGradientValue(this)->traceAfterDispatch(visitor);
return;
case CrossfadeClass:
- static_cast<CSSCrossfadeValue*>(this)->traceAfterDispatch(visitor);
+ toCSSCrossfadeValue(this)->traceAfterDispatch(visitor);
return;
case ImageClass:
- static_cast<CSSImageValue*>(this)->traceAfterDispatch(visitor);
+ toCSSImageValue(this)->traceAfterDispatch(visitor);
return;
case InheritedClass:
- static_cast<CSSInheritedValue*>(this)->traceAfterDispatch(visitor);
+ toCSSInheritedValue(this)->traceAfterDispatch(visitor);
return;
case InitialClass:
- static_cast<CSSInitialValue*>(this)->traceAfterDispatch(visitor);
+ toCSSInitialValue(this)->traceAfterDispatch(visitor);
return;
case GridLineNamesClass:
- static_cast<CSSGridLineNamesValue*>(this)->traceAfterDispatch(visitor);
+ toCSSGridLineNamesValue(this)->traceAfterDispatch(visitor);
return;
case GridTemplateAreasClass:
- static_cast<CSSGridTemplateAreasValue*>(this)->traceAfterDispatch(visitor);
+ toCSSGridTemplateAreasValue(this)->traceAfterDispatch(visitor);
return;
case PrimitiveClass:
- static_cast<CSSPrimitiveValue*>(this)->traceAfterDispatch(visitor);
+ toCSSPrimitiveValue(this)->traceAfterDispatch(visitor);
return;
case ReflectClass:
- static_cast<CSSReflectValue*>(this)->traceAfterDispatch(visitor);
+ toCSSReflectValue(this)->traceAfterDispatch(visitor);
return;
case ShadowClass:
- static_cast<CSSShadowValue*>(this)->traceAfterDispatch(visitor);
+ toCSSShadowValue(this)->traceAfterDispatch(visitor);
return;
case CubicBezierTimingFunctionClass:
- static_cast<CSSCubicBezierTimingFunctionValue*>(this)->traceAfterDispatch(visitor);
+ toCSSCubicBezierTimingFunctionValue(this)->traceAfterDispatch(visitor);
return;
case StepsTimingFunctionClass:
- static_cast<CSSStepsTimingFunctionValue*>(this)->traceAfterDispatch(visitor);
+ toCSSStepsTimingFunctionValue(this)->traceAfterDispatch(visitor);
return;
case UnicodeRangeClass:
- static_cast<CSSUnicodeRangeValue*>(this)->traceAfterDispatch(visitor);
+ toCSSUnicodeRangeValue(this)->traceAfterDispatch(visitor);
return;
case ValueListClass:
- static_cast<CSSValueList*>(this)->traceAfterDispatch(visitor);
+ toCSSValueList(this)->traceAfterDispatch(visitor);
return;
case CSSTransformClass:
- static_cast<CSSTransformValue*>(this)->traceAfterDispatch(visitor);
+ toCSSTransformValue(this)->traceAfterDispatch(visitor);
return;
case LineBoxContainClass:
- static_cast<CSSLineBoxContainValue*>(this)->traceAfterDispatch(visitor);
+ toCSSLineBoxContainValue(this)->traceAfterDispatch(visitor);
return;
case CalculationClass:
- static_cast<CSSCalcValue*>(this)->traceAfterDispatch(visitor);
+ toCSSCalcValue(this)->traceAfterDispatch(visitor);
return;
case ImageSetClass:
- static_cast<CSSImageSetValue*>(this)->traceAfterDispatch(visitor);
+ toCSSImageSetValue(this)->traceAfterDispatch(visitor);
return;
case CSSFilterClass:
- static_cast<CSSFilterValue*>(this)->traceAfterDispatch(visitor);
+ toCSSFilterValue(this)->traceAfterDispatch(visitor);
return;
case CSSArrayFunctionValueClass:
- static_cast<CSSArrayFunctionValue*>(this)->traceAfterDispatch(visitor);
+ toCSSArrayFunctionValue(this)->traceAfterDispatch(visitor);
return;
case SVGPaintClass:
- static_cast<SVGPaint*>(this)->traceAfterDispatch(visitor);
+ toSVGPaint(this)->traceAfterDispatch(visitor);
return;
case CSSSVGDocumentClass:
- static_cast<CSSSVGDocumentValue*>(this)->traceAfterDispatch(visitor);
+ toCSSSVGDocumentValue(this)->traceAfterDispatch(visitor);
return;
}
ASSERT_NOT_REACHED();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698