Changeset 267372 in webkit
- Timestamp:
- Sep 21, 2020, 3:03:44 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/ios/VideoFullscreenInterfaceAVKit.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r267369 r267372 1 2020-09-21 Peng Liu <peng.liu6@apple.com> 2 3 Tapping to zoom in and out causes video to become very small on some iPhone models 4 https://bugs.webkit.org/show_bug.cgi?id=216635 5 6 Reviewed by Jer Noble. 7 8 * platform/ios/VideoFullscreenInterfaceAVKit.mm: 9 (-[WebAVPlayerLayer resolveBounds]): On some iPhone models, AVKit does not 10 change "bounds" of WebAVPlayerLayer after changing its video gravity. Therefore, 11 in this function, "modelVideoLayerFrame" and "bounds" might be the same. But we 12 still need to update the video layer frame in the Web process. 13 14 (-[WebAVPlayerLayer setVideoGravity:]): On some iPhone models, AVKit does 15 not call -[WebAVPlayerLayer:layoutSublayers] immediately after changing 16 the video gravity. Forcing a layout can fix that. 17 1 18 2020-09-21 Jiewen Tan <jiewen_tan@apple.com> 2 19 -
trunk/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm
r267053 r267372 333 333 [CATransaction setAnimationDuration:0]; 334 334 [CATransaction setDisableActions:YES]; 335 336 if (!CGRectEqualToRect(self.modelVideoLayerFrame, [self bounds])) { 337 self.modelVideoLayerFrame = [self bounds]; 338 if (auto* model = _fullscreenInterface->videoFullscreenModel()) 339 model->setVideoLayerFrame(_videoSublayerFrame); 340 341 _previousVideoGravity = _videoGravity; 342 } 335 336 self.modelVideoLayerFrame = [self bounds]; 337 if (auto* model = _fullscreenInterface->videoFullscreenModel()) 338 model->setVideoLayerFrame(_videoSublayerFrame); 339 340 _previousVideoGravity = _videoGravity; 341 343 342 [(UIView *)[_videoSublayer delegate] setTransform:CGAffineTransformIdentity]; 344 343 … … 375 374 if (auto* model = _fullscreenInterface->videoFullscreenModel()) 376 375 model->setVideoLayerGravity(gravity); 376 377 [self setNeedsLayout]; 377 378 } 378 379
Note:
See TracChangeset
for help on using the changeset viewer.