| Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| index 0af4a42a5d0efc3503cd12ac3a165ce81a025d3e..23de22884b5d4fd69431b5135807a84e7165f8f9 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| @@ -127,6 +127,9 @@ public:
|
| m_draggedNode->layoutObject()->updateDragState(false);
|
| context().getPaintController().endItem<EndTransformDisplayItem>(*m_localFrame);
|
| RefPtr<const SkPicture> recording = m_pictureBuilder->endRecording();
|
| + if (!recording)
|
| + return nullptr;
|
| +
|
| RefPtr<SkImage> skImage = adoptRef(SkImage::NewFromPicture(recording.get(),
|
| SkISize::Make(m_bounds.width(), m_bounds.height()), nullptr, nullptr));
|
| RefPtr<Image> image = StaticBitmapImage::create(skImage.release());
|
|
|