| Index: third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp
|
| diff --git a/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp b/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp
|
| index 20b6491e85010f2bf0c79c649415f7e6e0351a80..de37181071f5046a954bd3a210db4a4ca2c4faa9 100644
|
| --- a/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp
|
| +++ b/third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp
|
| @@ -27,6 +27,11 @@ void ImageBitmapRenderingContext::setCanvasGetContextResult(RenderingContext& re
|
|
|
| void ImageBitmapRenderingContext::transferFromImageBitmap(ImageBitmap* imageBitmap)
|
| {
|
| + if (!imageBitmap) {
|
| + reset();
|
| + return;
|
| + }
|
| +
|
| m_image = imageBitmap->bitmapImage();
|
| if (!m_image)
|
| return;
|
|
|