Closed Bug 2072018 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62685 - [html-in-canvas] Fire paint events when nested canvases change

Categories

(Core :: Graphics: Canvas2D, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 62685 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/62685
Details from upstream follow.

Philip Rogers <pdr@chromium.org> wrote:

[html-in-canvas] Fire paint events when nested canvases change

When nested canvases change, or request paint, they should cause
ancestor paint events to fire as well. The only exception to this is
for canvas changes which occur during the canvas's own paint event.

This patch fixes three bugs in this area:

  1. ShouldSkipPaintInvalidation returned true for layout subtree
    canvases, which prevented nested layoutsubtree canvases from
    invalidating when they were modified outside their paint event.
  2. Canvas.requestPaint() did not mark the canvas for paint invalidation
    which prevented ancestor canvases from firing paint events.
  3. DidDraw has been updated to not invalidate for canvas changes made
    during a paint event handler.

Fixed: 556296445
Change-Id: I40933a21de9b00003bc6be03fe462f79390e21c8

Reviewed-on: https://chromium-review.googlesource.com/8360469
WPT-Export-Revision: a19c627325f23cb0e0ad585ae8c93a326abf7cf1

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Attached file Notable wpt changes —

CI Results

Ran 4 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 136 tests and 5 subtests

Status Summary

Firefox

OK : 127
PASS : 12
FAIL : 8[GitHub] 214[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 1
ERROR : 1[GitHub] 6[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
NOTRUN : 17

Chrome

OK : 1
PASS : 4
FAIL : 4

Safari

FAIL : 8
ERROR : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: