Index: Source/WebCore/rendering/RenderImage.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderImage.cpp (revision 93492) |
+++ Source/WebCore/rendering/RenderImage.cpp (working copy) |
@@ -408,13 +408,9 @@ |
// Check for bitmap image with alpha. |
Image* image = m_imageResource->image().get(); |
- if (!image || !image->isBitmapImage()) |
+ if (!image || !image->isBitmapImage() || image->currentFrameHasAlpha()) |
return false; |
- BitmapImage* bitmapImage = static_cast<BitmapImage*>(image); |
- if (bitmapImage->currentFrameHasAlpha()) |
- return false; |
- |
return true; |
} |