Bug 236080

Summary: [Web Animations] Starting a transform animation with a 1ms delay doesn't run it accelerated
Product: WebKit Reporter: Antoine Quint <graouts>
Component: AnimationsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, dino, esprehn+autocc, ews-watchlist, fred.wang, glenn, graouts, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=229399
Attachments:
Description Flags
Testcase
none
Patch
none
Patch
dino: review+, ews-feeder: commit-queue-
Patch for landing none

Description Antoine Quint 2022-02-03 06:25:37 PST
Created attachment 450769 [details]
Testcase

The attached example runs a simple "transform" animation with a 1ms delay and we fail to run the animation accelerated. Indeed, by the time we call startAnimation() the renderer is not composited and we bail, never to retry again. We must have some incorrect logic to indicate than the element has a pending accelerated animation and should be composited.
Comment 1 Radar WebKit Bug Importer 2022-02-03 06:27:10 PST
<rdar://problem/88432373>
Comment 2 Antoine Quint 2022-02-04 04:03:21 PST
Created attachment 450884 [details]
Patch
Comment 3 Dean Jackson 2022-02-04 06:13:06 PST
Comment on attachment 450884 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=450884&action=review

> Source/WebCore/ChangeLog:22
> +        conditon to do so since its renderer is already composited.

typo: condition
Comment 4 Antoine Quint 2022-02-05 08:09:28 PST
Created attachment 450984 [details]
Patch
Comment 5 Antoine Quint 2022-02-07 02:20:22 PST
Created attachment 451071 [details]
Patch for landing
Comment 6 EWS 2022-02-07 05:58:47 PST
Committed r289211 (246896@main): <https://commits.webkit.org/246896@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 451071 [details].