Chromium Code Reviews| Index: third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp |
| diff --git a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp |
| index a32427a80f3fbbdebace7b7dad42e1bec109884c..57cf9fc3e277cc960759b5fb59daaf13d5ca1b6b 100644 |
| --- a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp |
| +++ b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp |
| @@ -178,6 +178,8 @@ PassRefPtr<SkImageFilter> FEImage::createImageFilterForLayoutObject(const Layout |
| SVGPaintContext::paintSubtree(filterPicture.context(), &layoutObject); |
| } |
| RefPtr<const SkPicture> recording = filterPicture.endRecording(); |
| + if (!recording) |
| + return nullptr; |
|
chrishtr
2016/03/29 22:42:23
ditto
wkorman
2016/03/29 22:52:02
Yes.
|
| RefPtr<SkImageFilter> result = adoptRef(SkPictureImageFilter::Create(recording.get(), dstRect)); |
| return result.release(); |