summaryrefslogtreecommitdiffstats
path: root/dom/canvas/ImageBitmapRenderingContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/canvas/ImageBitmapRenderingContext.cpp')
-rw-r--r--dom/canvas/ImageBitmapRenderingContext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/canvas/ImageBitmapRenderingContext.cpp b/dom/canvas/ImageBitmapRenderingContext.cpp
index 01ce541..1761acc 100644
--- a/dom/canvas/ImageBitmapRenderingContext.cpp
+++ b/dom/canvas/ImageBitmapRenderingContext.cpp
@@ -60,6 +60,10 @@ void ImageBitmapRenderingContext::TransferFromImageBitmap(
return;
}
+ if (aImageBitmap.IsWriteOnly() && mCanvasElement) {
+ mCanvasElement->SetWriteOnly();
+ }
+
Redraw(gfxRect(0, 0, mWidth, mHeight));
}