summaryrefslogtreecommitdiffstats
path: root/dom/canvas/ImageBitmapRenderingContext.cpp
diff options
context:
space:
mode:
authorCarsten Schoenert <c.schoenert@t-online.de>2019-05-22 20:42:44 +0200
committerCarsten Schoenert <c.schoenert@t-online.de>2019-05-22 20:42:44 +0200
commitf6dd130b8be04b7a49d04920386bef9da321ab72 (patch)
tree2acc6ef89d0753d535e8643bc3b0ca17d9c74a91 /dom/canvas/ImageBitmapRenderingContext.cpp
parent407d18c607a2540f5d9c4a086d7bec336f99b5a7 (diff)
New upstream version 60.7.0upstream/60.7.0
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));
}