Bug 214400

Summary: Double tapping to zoom out a fullscreen video will zoom in slightly before zooming out
Product: WebKit Reporter: Peng Liu <peng.liu6>
Component: MediaAssignee: Peng Liu <peng.liu6>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
A better patch none

Description Peng Liu 2020-07-15 23:26:01 PDT
Double tapping to zoom out a fullscreen video will zoom in slightly before zooming out
Comment 1 Peng Liu 2020-07-15 23:26:47 PDT
<rdar://problem/64579374>
Comment 2 Peng Liu 2020-07-15 23:53:10 PDT
Created attachment 404426 [details]
Patch
Comment 3 Peng Liu 2020-07-16 10:04:19 PDT
Comment on attachment 404426 [details]
Patch

This patch handles two video gravity changes differently:
1) AVLayerVideoGravityResizeAspect -> AVLayerVideoGravityResizeAspectFill,
2) AVLayerVideoGravityResizeAspectFill -> AVLayerVideoGravityResizeAspect).

The animation happens on the UI process for 1), and the animation happens on the web process for 2). We had better let the animations happen on the UI process for both cases.
Comment 4 Peng Liu 2020-07-16 10:23:36 PDT
Created attachment 404461 [details]
A better patch
Comment 5 EWS 2020-07-16 10:59:27 PDT
Committed r264471: <https://trac.webkit.org/changeset/264471>

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