[webkit-changes] [WebKit/WebKit] 7a59a6: [Mac] Animation stutters when making a video full ...
Jer Noble
noreply at github.com
Fri Jun 9 21:45:26 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7a59a6aafd1a403ec2341304fa9f8ed4e3299edc
https://github.com/WebKit/WebKit/commit/7a59a6aafd1a403ec2341304fa9f8ed4e3299edc
Author: Jer Noble <jer.noble at apple.com>
Date: 2023-06-09 (Fri, 09 Jun 2023)
Changed paths:
M Source/WebKit/UIProcess/mac/WKFullScreenWindowController.mm
Log Message:
-----------
[Mac] Animation stutters when making a video full screen in Safari
https://bugs.webkit.org/show_bug.cgi?id=257922
rdar://109325226
Reviewed by Simon Fraser.
In some circumstances, there may be a significant delay between when fullscreen is initiated
through -[WKFullscreenWindowController beganEnterFullScreenWithInitialFrame], and when the
animation to enter fullscreen begins
via -window:startCustomAnimationToEnterFullScreenWithDuration:. In this case, the intent was to put
in place the animation's transformations, but with a speed of 0 (so that the animation would not
progress). However, the speed parameter to the animation methods was ignored, and the animation
would use the default speed of 1. When the delay between the two functions mentioned above occurrs,
it has the effect of making it look like the animation starts early and then "restarts".
Actually obey the speed parameter in zoomAnimation() and maskAnimation().
* Source/WebKit/UIProcess/mac/WKFullScreenWindowController.mm:
(zoomAnimation):
(maskAnimation):
Canonical link: https://commits.webkit.org/265051@main
More information about the webkit-changes
mailing list