| Summary: | [Web Animations] [WK1] REGRESSION: opacity doesn't animate | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Antoine Quint <graouts> | ||||
| Component: | Animations | Assignee: | Antoine Quint <graouts> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | dino, simon.fraser, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari Technology Preview | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=207054 | ||||||
| Attachments: |
|
||||||
|
Description
Antoine Quint
2020-01-31 07:19:08 PST
Created attachment 389353 [details]
Patch
Comment on attachment 389353 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=389353&action=review > Source/WebCore/animation/WebAnimation.cpp:1448 > + if (!isCompletelyAccelerated() || !isRunningAccelerated()) This would be clearers as hasAnyNonAcceleratedProperties or something, I think. > LayoutTests/webanimations/opacity-animation.html:15 > + setTimeout(() => testRunner.notifyDone(), 100); 100ms is a really long test. Would setting the current time and pausing test the same way? Why didn't requestAnimationFrame work? (In reply to Simon Fraser (smfr) from comment #3) > Comment on attachment 389353 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=389353&action=review > > > Source/WebCore/animation/WebAnimation.cpp:1448 > > + if (!isCompletelyAccelerated() || !isRunningAccelerated()) > > This would be clearers as hasAnyNonAcceleratedProperties or something, I > think. I'll switch the code around to have a condition that starts with `if (isCompletelyAccelerated() && isRunningAccelerated())` instead. This covers the case of animations that don't need to be updated while running. > > LayoutTests/webanimations/opacity-animation.html:15 > > + setTimeout(() => testRunner.notifyDone(), 100); > > 100ms is a really long test. Would setting the current time and pausing test > the same way? Alas, no, because at that point it would no longer be running an accelerated animation, which is precisely what we're trying to test. > Why didn't requestAnimationFrame work? Alas, I'm not sure. I'll try to improve this in bug 207054. Committed r255504: <https://trac.webkit.org/changeset/255504> |