| 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 bb8273c54fa8abfdd2bc0caabca7139c45e94571..8acc2bacb2dcfb57d8a58d0bf75a673686d0c2e9 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -257,8 +257,8 @@ bool HTMLCanvasElement::isPaintable() const
|
| {
|
| if (!m_context)
|
| return ImageBuffer::canCreateImageBuffer(size());
|
| - if (renderingContext()->getImage())
|
| - return true;
|
| + if (m_context->getContextType() == CanvasRenderingContext::ContextImageBitmap)
|
| + return (renderingContext()->getImage().get());
|
| return buffer();
|
| }
|
|
|
|
|