Index: Source/core/css/CSSCrossfadeValue.cpp |
diff --git a/Source/core/css/CSSCrossfadeValue.cpp b/Source/core/css/CSSCrossfadeValue.cpp |
index b45f6cc5d19f7c26dadfd8443493d5e4cc76ce5d..b547b396a0effc6c784cd4cf1302b54b703ca833 100644 |
--- a/Source/core/css/CSSCrossfadeValue.cpp |
+++ b/Source/core/css/CSSCrossfadeValue.cpp |
@@ -41,7 +41,7 @@ static bool subimageIsPending(CSSValue* value) |
return toCSSImageValue(value)->cachedOrPendingImage()->isPendingImage(); |
if (value->isImageGeneratorValue()) |
- return static_cast<CSSImageGeneratorValue*>(value)->isPending(); |
+ return toCSSImageGeneratorValue(value)->isPending(); |
ASSERT_NOT_REACHED(); |
@@ -54,7 +54,7 @@ static bool subimageKnownToBeOpaque(CSSValue* value, const RenderObject* rendere |
return toCSSImageValue(value)->knownToBeOpaque(renderer); |
if (value->isImageGeneratorValue()) |
- return static_cast<CSSImageGeneratorValue*>(value)->knownToBeOpaque(renderer); |
+ return toCSSImageGeneratorValue(value)->knownToBeOpaque(renderer); |
ASSERT_NOT_REACHED(); |
@@ -75,7 +75,7 @@ static ImageResource* cachedImageForCSSValue(CSSValue* value, ResourceFetcher* f |
} |
if (value->isImageGeneratorValue()) { |
- static_cast<CSSImageGeneratorValue*>(value)->loadSubimages(fetcher); |
+ toCSSImageGeneratorValue(value)->loadSubimages(fetcher); |
// FIXME: Handle CSSImageGeneratorValue (and thus cross-fades with gradients and canvas). |
return 0; |
} |