| Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| index f2bfec4694d5ea0db8288d6798317bef582b67cc..24b72195720eaa34ec09856fda4664c1c58a1923 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -983,6 +983,7 @@ SkCanvas* HTMLCanvasElement::existingDrawingCanvas() const
|
| ImageBuffer* HTMLCanvasElement::buffer() const
|
| {
|
| DCHECK(m_context);
|
| + DCHECK(m_context->getContextType() != CanvasRenderingContext::ContextImageBitmap);
|
| if (!hasImageBuffer() && !m_didFailToCreateImageBuffer)
|
| const_cast<HTMLCanvasElement*>(this)->createImageBuffer();
|
| return m_imageBuffer.get();
|
|
|