[webkit-changes] [WebKit/WebKit] da50bb: Use the fullscreen preferred size when reporting s...
Commit Queue
noreply at github.com
Fri Dec 16 10:49:42 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: da50bb2bfac4cb2530f12086789caf196b3adcb9
https://github.com/WebKit/WebKit/commit/da50bb2bfac4cb2530f12086789caf196b3adcb9
Author: Etienne Segonzac <sgz at apple.com>
Date: 2022-12-16 (Fri, 16 Dec 2022)
Changed paths:
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm
M Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm
Log Message:
-----------
Use the fullscreen preferred size when reporting screen dimensions
https://bugs.webkit.org/show_bug.cgi?id=249297
<rdar://99403187>
Reviewed by Megan Gardner.
When we have a preferred size for fullscreen windows, use it when
reporting the screen dimensions to the page.
* Source/WebKit/UIProcess/WebPageProxy.h:
Expose `overrideScreenSize`.
* Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::overrideScreenSize):
Read the fullscreen preferred size and override the screen size with it.
* Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
(-[WKFullScreenWindowController enterFullScreen:]):
Use the (modified) page's screen size as target size for the fullscreen
window.
Canonical link: https://commits.webkit.org/258005@main
More information about the webkit-changes
mailing list