Index: Source/core/fetch/ImageResource.cpp |
diff --git a/Source/core/fetch/ImageResource.cpp b/Source/core/fetch/ImageResource.cpp |
index 0aca6a3422e3d5289253900c9a64d512f5c837b1..598e616f1fae659c34ada1d8935e80cee8e1a030 100644 |
--- a/Source/core/fetch/ImageResource.cpp |
+++ b/Source/core/fetch/ImageResource.cpp |
@@ -238,7 +238,7 @@ LayoutSize ImageResource::imageSizeForRenderer(const RenderObject* renderer, flo |
LayoutSize imageSize; |
if (m_image->isBitmapImage() && (renderer && renderer->shouldRespectImageOrientation() == RespectImageOrientation)) |
- imageSize = static_cast<BitmapImage*>(m_image.get())->sizeRespectingOrientation(); |
+ imageSize = toBitmapImage(m_image.get())->sizeRespectingOrientation(); |
else if (m_image->isSVGImage() && sizeType == NormalSize) |
imageSize = m_svgImageCache->imageSizeForRenderer(renderer); |
else |