Closed Bug 1865923 Opened 11 months ago Closed 10 months ago

[wpt-sync] Sync PR 42947 - [CompositeClipPathAnimations] Fix crash for animation fill forward

Categories

(Core :: Web Painting, task, P4)

task

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Claire Chambers <clchambers@microsoft.com> wrote:

[CompositeClipPathAnimations] Fix crash for animation fill forward

This CL fixes a crash that occurred when animation-fill-mode is set to forwards. This crash occurs because invalidating the paint property data on the animated element is contingent upon the clip path data actually changing, which might not happen if the system has had a frame on main thread recently enough that the clip path hasn't changed - or if the animation is using a slow or steps() timing function. Without updating this data, the layout object with the animation will still have a mask based clip, but without an active animation. Because mask based clip isn't designed for shape clip paths, a crash results.

This change makes a change from having a composited clip animation to not having one unconditionally invalidate paint properties for a given LayoutObject, ensuring mask based clip stops being used when it is no longer applicable.
 

Bug: 1497795
Change-Id: I1b2958c84607f2fa8bbe37fe7e860ef47a364fe4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5003331
Commit-Queue: Claire Chambers \<clchambers@microsoft.com>
Reviewed-by: Xianzhu Wang \<wangxianzhu@chromium.org>
Reviewed-by: Olga Gerchikov \<gerchiko@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1227521}

Component: web-platform-tests → Web Painting
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d7eeced2bfc2 [wpt PR 42947] - [CompositeClipPathAnimations] Fix crash for animation fill forward, a=testonly
Test result changes from PR not available.
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6741a344003c [wpt PR 42947] - [CompositeClipPathAnimations] Fix crash for animation fill forward, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.