Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 99ed204e5580d0f766f2e9abf060921660386caf
https://github.com/WebKit/WebKit/commit/99ed204e5580d0f766f2e9abf060921660386caf
Author: Taher Ali <[email protected]>
Date: 2026-10-12 (Mon, 12 Oct 2026)
Changed paths:
A
LayoutTests/fast/canvas/draw-element-image/2d-drawElementImage-redraw-expected.html
A LayoutTests/fast/canvas/draw-element-image/2d-drawElementImage-redraw.html
M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp
Log Message:
-----------
[HTML-in-Canvas] drawElementImage() should invalidate the canvas
https://bugs.webkit.org/show_bug.cgi?id=327282
rdar://189835414
Reviewed by Said Abou-Hallawa.
drawElementImage() draws the element's snapshot into the canvas without
reporting the area it changed, so the canvas is not invalidated and keeps
showing its previous contents until something else draws into it.
In this PR we report the destination area before drawing.
Test: fast/canvas/draw-element-image/2d-drawElementImage-redraw.html
*
LayoutTests/fast/canvas/draw-element-image/2d-drawElementImage-redraw-expected.html:
Added.
* LayoutTests/fast/canvas/draw-element-image/2d-drawElementImage-redraw.html:
Added.
* Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp:
(WebCore::CanvasRenderingContext2DBase::drawSnapshot):
Canonical link: https://commits.webkit.org/323508@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications