diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 09:03:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 09:03:13 +0000 |
commit | 0681b3ac9a6ab4879ca2fbfcf8aa9d00a67b8365 (patch) | |
tree | 1437375a1c16af40bb2982577c25eb9608e17566 /dom/canvas/CanvasRenderingContext2D.cpp | |
parent | Adding debian version 115.11.0esr-1~deb12u1. (diff) | |
download | firefox-esr-0681b3ac9a6ab4879ca2fbfcf8aa9d00a67b8365.tar.xz firefox-esr-0681b3ac9a6ab4879ca2fbfcf8aa9d00a67b8365.zip |
Merging upstream version 115.12.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | dom/canvas/CanvasRenderingContext2D.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp index 83fe205e35..cf20f4f7c3 100644 --- a/dom/canvas/CanvasRenderingContext2D.cpp +++ b/dom/canvas/CanvasRenderingContext2D.cpp @@ -1074,6 +1074,7 @@ CanvasRenderingContext2D::CanvasRenderingContext2D( } CanvasRenderingContext2D::~CanvasRenderingContext2D() { + CanvasImageCache::NotifyCanvasDestroyed(this); RemovePostRefreshObserver(); RemoveShutdownObserver(); ResetBitmap(); @@ -5221,8 +5222,8 @@ void CanvasRenderingContext2D::DrawImage(const CanvasImageSource& aImage, element = video; } - srcSurf = CanvasImageCache::LookupCanvas(element, mCanvasElement, mTarget, - &imgSize, &intrinsicImgSize); + srcSurf = CanvasImageCache::LookupCanvas(element, this, mTarget, &imgSize, + &intrinsicImgSize); } DirectDrawInfo drawInfo; @@ -5267,7 +5268,7 @@ void CanvasRenderingContext2D::DrawImage(const CanvasImageSource& aImage, if (res.mSourceSurface) { if (res.mImageRequest) { - CanvasImageCache::NotifyDrawImage(element, mCanvasElement, mTarget, + CanvasImageCache::NotifyDrawImage(element, this, mTarget, res.mSourceSurface, imgSize, intrinsicImgSize); } |