| Index: Source/platform/graphics/BitmapImage.cpp
|
| diff --git a/Source/platform/graphics/BitmapImage.cpp b/Source/platform/graphics/BitmapImage.cpp
|
| index b9e49de05d2a61f129c7ba950b7af31ebf590547..60aef55c5dbf910920c7970e9ce8267350d26fc2 100644
|
| --- a/Source/platform/graphics/BitmapImage.cpp
|
| +++ b/Source/platform/graphics/BitmapImage.cpp
|
| @@ -367,6 +367,14 @@ PassRefPtr<NativeImageSkia> BitmapImage::nativeImageForCurrentFrame()
|
| return frameAtIndex(currentFrame());
|
| }
|
|
|
| +PassRefPtr<Image> BitmapImage::imageForDefaultFrame()
|
| +{
|
| + if (isBitmapImage() && maybeAnimated())
|
| + return BitmapImage::create(frameAtIndex(0));
|
| +
|
| + return Image::imageForDefaultFrame();
|
| +}
|
| +
|
| bool BitmapImage::frameHasAlphaAtIndex(size_t index)
|
| {
|
| if (m_frames.size() <= index)
|
|
|