diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-22 13:11:18 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-22 13:11:18 +0100 |
commit | 8549c7cc31352e7d0cf89606d109f7c827ebab82 (patch) | |
tree | 8a02a62237cf46221de344a654e64cbf942910aa /dom/canvas/CanvasRenderingContext2D.cpp | |
parent | 3c02dbad946487a83783a1923463a1ebb96aae19 (diff) | |
download | UXP-8549c7cc31352e7d0cf89606d109f7c827ebab82.tar UXP-8549c7cc31352e7d0cf89606d109f7c827ebab82.tar.gz UXP-8549c7cc31352e7d0cf89606d109f7c827ebab82.tar.lz UXP-8549c7cc31352e7d0cf89606d109f7c827ebab82.tar.xz UXP-8549c7cc31352e7d0cf89606d109f7c827ebab82.zip |
Extend origin-clean algorithm (DiD).
Diffstat (limited to 'dom/canvas/CanvasRenderingContext2D.cpp')
-rw-r--r-- | dom/canvas/CanvasRenderingContext2D.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp index a750c69b0..4849fda57 100644 --- a/dom/canvas/CanvasRenderingContext2D.cpp +++ b/dom/canvas/CanvasRenderingContext2D.cpp @@ -6329,6 +6329,13 @@ CanvasRenderingContext2D::ShouldForceInactiveLayer(LayerManager* aManager) return !aManager->CanUseCanvasLayerForSize(GetSize()); } +void CanvasRenderingContext2D::SetWriteOnly() { + mWriteOnly = true; + if (mCanvasElement) { + mCanvasElement->SetWriteOnly(); + } +} + NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(CanvasPath, AddRef) NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(CanvasPath, Release) |