| Index: Source/platform/graphics/BitmapImage.cpp
|
| diff --git a/Source/platform/graphics/BitmapImage.cpp b/Source/platform/graphics/BitmapImage.cpp
|
| index db9b62e819318acf71093cee5a3b1019b8b1296a..bca46ea8245cb64607434c2e838d65661d2ddc7f 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)
|
|
|