Index: Source/core/html/HTMLCanvasElement.cpp |
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp |
index ba236832342b0382e851b15e55f70a98f2f5e158..17f8140c86cd65e34e2739bd259519c62b523d96 100644 |
--- a/Source/core/html/HTMLCanvasElement.cpp |
+++ b/Source/core/html/HTMLCanvasElement.cpp |
@@ -434,6 +434,11 @@ bool HTMLCanvasElement::is3D() const |
return m_context && m_context->is3d(); |
} |
+bool HTMLCanvasElement::isAnimated2D() const |
+{ |
+ return m_context && m_context->is2d() && hasImageBuffer() && m_imageBuffer->isAnimated(); |
+} |
+ |
void HTMLCanvasElement::setSurfaceSize(const IntSize& size) |
{ |
m_size = size; |