Index: Source/core/platform/DragImage.cpp |
diff --git a/Source/core/platform/DragImage.cpp b/Source/core/platform/DragImage.cpp |
index 3ee5c043c6fa03eba0271ec51d5beea94425b29d..ce0db08d49ceb06f0f51cf9d654aa7d9cfc98390 100644 |
--- a/Source/core/platform/DragImage.cpp |
+++ b/Source/core/platform/DragImage.cpp |
@@ -76,7 +76,7 @@ PassOwnPtr<DragImage> DragImage::create(Image* image, RespectImageOrientationEnu |
if (image->isBitmapImage()) { |
ImageOrientation orientation = DefaultImageOrientation; |
- BitmapImage* bitmapImage = static_cast<BitmapImage*>(image); |
+ BitmapImage* bitmapImage = toBitmapImage(image); |
IntSize sizeRespectingOrientation = bitmapImage->sizeRespectingOrientation(); |
if (shouldRespectImageOrientation == RespectImageOrientation) |