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..83058a3842678b4a0574ca68b3332c9c9fd2f340 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
@@ -257,8 +257,11 @@ bool HTMLCanvasElement::isPaintable() const |
{ |
if (!m_context) |
return ImageBuffer::canCreateImageBuffer(size()); |
- if (renderingContext()->getImage()) |
- return true; |
+ if (m_context->getContextType() == CanvasRenderingContext::ContextImageBitmap) { |
+ if (renderingContext()->getImage()) |
Justin Novosad
2016/08/24 15:39:16
Just "return m_context->getImage();" will suffice
zakerinasab
2016/08/24 15:57:12
Used "return renderingContext()->getImage().get();
|
+ return true; |
+ return false; |
+ } |
return buffer(); |
} |