Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index 11fe4cda51b931443bf3813cb916a09e4267616b..f58c8cdcb0b59e57de5b93ecb19983d730a804b8 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -158,7 +158,7 @@ RenderObject* RenderObject::createObject(Element* element, RenderStyle* style) |
// trigger a style change now as the node is not fully attached. Moving this code to style change |
// doesn't make sense as it should be run once at renderer creation. |
image->setStyleInternal(style); |
- if (const StyleImage* styleImage = static_cast<const ImageContentData*>(contentData)->image()) { |
+ if (const StyleImage* styleImage = toImageContentData(contentData)->image()) { |
image->setImageResource(RenderImageResourceStyleImage::create(const_cast<StyleImage*>(styleImage))); |
image->setIsGeneratedContent(); |
} else |