Index: Source/core/page/PageSerializer.cpp |
diff --git a/Source/core/page/PageSerializer.cpp b/Source/core/page/PageSerializer.cpp |
index f29f833c83ffa8c73cafb3376a89263419edd47e..0547999da51f450a8f60fe453541646de7bc5faa 100644 |
--- a/Source/core/page/PageSerializer.cpp |
+++ b/Source/core/page/PageSerializer.cpp |
@@ -329,7 +329,7 @@ void PageSerializer::retrieveResourcesForProperties(const StylePropertySet* styl |
if (!cssValue->isImageValue()) |
continue; |
- CSSImageValue* imageValue = static_cast<CSSImageValue*>(cssValue.get()); |
+ CSSImageValue* imageValue = toCSSImageValue(cssValue.get()); |
StyleImage* styleImage = imageValue->cachedOrPendingImage(); |
// Non cached-images are just place-holders and do not contain data. |
if (!styleImage || !styleImage->isCachedImage()) |