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