| Index: Source/core/svg/graphics/filters/SVGFEImage.cpp
|
| diff --git a/Source/core/svg/graphics/filters/SVGFEImage.cpp b/Source/core/svg/graphics/filters/SVGFEImage.cpp
|
| index 9bc816ec86142b77db43d541a11fa266cd4aa239..7ae135b4a7e5dcbe217f70ff4758daea997c7451 100644
|
| --- a/Source/core/svg/graphics/filters/SVGFEImage.cpp
|
| +++ b/Source/core/svg/graphics/filters/SVGFEImage.cpp
|
| @@ -217,11 +217,9 @@ PassRefPtr<SkImageFilter> FEImage::createImageFilter(SkiaImageFilterBuilder* bui
|
|
|
| m_preserveAspectRatio->transformRect(dstRect, srcRect);
|
|
|
| - if (!m_image->nativeImageForCurrentFrame())
|
| - return adoptRef(SkBitmapSource::Create(SkBitmap()));
|
| -
|
| - RefPtr<SkImageFilter> result = adoptRef(SkBitmapSource::Create(m_image->nativeImageForCurrentFrame()->bitmap(), srcRect, dstRect));
|
| - return result.release();
|
| + SkBitmap bitmap;
|
| + m_image->bitmapForCurrentFrame(&bitmap);
|
| + return adoptRef(SkBitmapSource::Create(bitmap, srcRect, dstRect));
|
| }
|
|
|
| } // namespace blink
|
|
|