Missed an if from r108657.
authormdelaney@apple.com <mdelaney@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Feb 2012 20:27:31 +0000 (20:27 +0000)
committermdelaney@apple.com <mdelaney@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Feb 2012 20:27:31 +0000 (20:27 +0000)
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108658 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/html/HTMLCanvasElement.cpp

index d1d259c..7ed6e3d 100644 (file)
@@ -274,7 +274,8 @@ bool HTMLCanvasElement::paintsIntoCanvasBuffer() const
 {
     ASSERT(m_context);
 #if USE(IOSURFACE_CANVAS_BACKING_STORE)
-    return true;
+    if (m_context->is2d())
+        return true;
 #endif
 
 #if USE(ACCELERATED_COMPOSITING)