Changeset 292195 in webkit
- Timestamp:
- Mar 31, 2022, 7:13:46 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r292193 r292195 1 2022-03-31 Jean-Yves Avenard <jya@apple.com> 2 3 Player window shouldn't have black bar when going into fullscreen 4 https://bugs.webkit.org/show_bug.cgi?id=238592 5 rdar://91085981 6 7 Reviewed by Tim Horton. 8 9 Set the window size to the video element size when going fullscreen and 10 restore the original window size when coming out of it. 11 12 Manually tested. 13 14 * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: 15 (-[WKFullScreenWindowController beganEnterFullScreenWithInitialFrame:finalFrame:]): 16 (-[WKFullScreenWindowController beganExitFullScreenWithInitialFrame:finalFrame:]): 17 1 18 2022-03-31 Chris Dumez <cdumez@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm
r292097 r292195 462 462 CGRect _initialFrame; 463 463 CGRect _finalFrame; 464 CGRect _originalWindowFrame; 464 465 465 466 RetainPtr<NSString> _EVOrganizationName; … … 635 636 _initialFrame = initialFrame; 636 637 _finalFrame = finalFrame; 638 _originalWindowFrame = [[_fullscreenViewController view] frame]; 637 639 638 640 _initialFrame.size = WebKit::sizeExpandedToSize(_initialFrame.size, CGSizeMake(1, 1)); … … 672 674 673 675 #if HAVE(UIKIT_WEBKIT_INTERNALS) 674 auto* view = [_fullscreenViewController view]; 675 configureViewForEnteringFullscreen(view, kAnimationDuration, [view frame].size); 676 configureViewForEnteringFullscreen(_fullscreenViewController.get().view, kAnimationDuration, _finalFrame.size); 676 677 #endif 677 678 … … 789 790 }; 790 791 #if HAVE(UIKIT_WEBKIT_INTERNALS) 791 configureViewForExitingFullscreen(_fullscreenViewController.get().view, kAnimationDuration, [[_fullscreenViewController view] frame].size, WTFMove(completionHandler));792 configureViewForExitingFullscreen(_fullscreenViewController.get().view, kAnimationDuration, _originalWindowFrame.size, WTFMove(completionHandler)); 792 793 #else 793 794 completionHandler();
Note:
See TracChangeset
for help on using the changeset viewer.