Bug 265936
| Summary: | [web-animations] accelerated CSS Animation should not schedule animation resolution at iteration boundary if no CSS Animation event listener was registered (affects reddit.com) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Antoine Quint <graouts> |
| Component: | Animations | Assignee: | Antoine Quint <graouts> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | dino, graouts, 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=265940 | ||
Antoine Quint
If a CSS Animation is accelerated it will currently schedule animation resolution when its current iteration ends in order to dispatch an `animationiteration` event. However, it's likely that the content does not listen to such events and so we could avoid scheduling animation resolution in this case. This affects reddit.com which chews some CPU scheduling animation frames once every second for an infinitely-repetitive animation that lasts 1 second.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/119244430>
Antoine Quint
Pull request: https://github.com/WebKit/WebKit/pull/21385
EWS
Committed 271604@main (4a38bbbd7547): <https://commits.webkit.org/271604@main>
Reviewed commits have been landed. Closing PR #21385 and removing active labels.