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

Unified Diff: Source/core/css/CSSImageGeneratorValue.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/CSSImageGeneratorValue.h ('k') | Source/core/css/CSSImageValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSImageGeneratorValue.cpp
diff --git a/Source/core/css/CSSImageGeneratorValue.cpp b/Source/core/css/CSSImageGeneratorValue.cpp
index 83ff50a750900d31f8104df29b0d26f4be654018..19a87cf37d4157a487b7a9be8eeb8a6fdb37cd7b 100644
--- a/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/Source/core/css/CSSImageGeneratorValue.cpp
@@ -110,9 +110,9 @@ PassRefPtr<Image> CSSImageGeneratorValue::image(RenderObject* renderer, const In
{
switch (classType()) {
case CanvasClass:
- return static_cast<CSSCanvasValue*>(this)->image(renderer, size);
+ return toCSSCanvasValue(this)->image(renderer, size);
case CrossfadeClass:
- return static_cast<CSSCrossfadeValue*>(this)->image(renderer, size);
+ return toCSSCrossfadeValue(this)->image(renderer, size);
case LinearGradientClass:
return toCSSLinearGradientValue(this)->image(renderer, size);
case RadialGradientClass:
@@ -144,9 +144,9 @@ IntSize CSSImageGeneratorValue::fixedSize(const RenderObject* renderer)
{
switch (classType()) {
case CanvasClass:
- return static_cast<CSSCanvasValue*>(this)->fixedSize(renderer);
+ return toCSSCanvasValue(this)->fixedSize(renderer);
case CrossfadeClass:
- return static_cast<CSSCrossfadeValue*>(this)->fixedSize(renderer);
+ return toCSSCrossfadeValue(this)->fixedSize(renderer);
case LinearGradientClass:
return toCSSLinearGradientValue(this)->fixedSize(renderer);
case RadialGradientClass:
@@ -195,10 +195,10 @@ void CSSImageGeneratorValue::loadSubimages(ResourceFetcher* fetcher)
{
switch (classType()) {
case CrossfadeClass:
- static_cast<CSSCrossfadeValue*>(this)->loadSubimages(fetcher);
+ toCSSCrossfadeValue(this)->loadSubimages(fetcher);
break;
case CanvasClass:
- static_cast<CSSCanvasValue*>(this)->loadSubimages(fetcher);
+ toCSSCanvasValue(this)->loadSubimages(fetcher);
break;
case LinearGradientClass:
toCSSLinearGradientValue(this)->loadSubimages(fetcher);
« no previous file with comments | « Source/core/css/CSSImageGeneratorValue.h ('k') | Source/core/css/CSSImageValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698