| Index: third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
|
| index 2d0f17b8994daac736bb8b2f0fb375b97b684e9a..dbbea4e2558185582be737b27f3531a8bebf4bdb 100644
|
| --- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
|
| @@ -287,6 +287,8 @@ void SVGImage::drawPatternForContainer(GraphicsContext& context, const FloatSize
|
| drawForContainer(patternPicture.context().canvas(), paint, containerSize, zoom, tile, srcRect, url);
|
| }
|
| RefPtr<SkPicture> tilePicture = patternPicture.endRecording();
|
| + if (!tilePicture)
|
| + return;
|
|
|
| SkMatrix patternTransform;
|
| patternTransform.setTranslate(phase.x() + spacedTile.x(), phase.y() + spacedTile.y());
|
| @@ -370,7 +372,8 @@ void SVGImage::drawInternal(SkCanvas* canvas, const SkPaint& paint, const FloatR
|
| canvas->saveLayer(&layerRect, &paint);
|
| }
|
| RefPtr<const SkPicture> recording = imagePicture.endRecording();
|
| - canvas->drawPicture(recording.get());
|
| + if (recording)
|
| + canvas->drawPicture(recording.get());
|
| }
|
|
|
| if (getImageObserver())
|
|
|