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

Unified Diff: Source/core/fetch/ImageResource.cpp

Issue 106193004: Introduce DEFINE_IMAGE_TYPE_CASTS, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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 | « no previous file | Source/core/platform/DragImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | Source/core/platform/DragImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698