EnterFullscreen must update the minimum and maximum layout sizes.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Apr 2018 22:16:06 +0000 (22:16 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Apr 2018 22:16:06 +0000 (22:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=184828
rdar://problem/38435829

Patch by Jeremy Jones <jeremyj@apple.com> on 2018-04-20
Reviewed by Jon Lee.

Without this, the WKWebView won't layout to the full size in fullscreen mode.

* UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
(-[WKFullScreenWindowController enterFullScreen]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230859 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm

index 0fa2414..b0650c7 100644 (file)
@@ -1,3 +1,16 @@
+2018-04-20  Jeremy Jones  <jeremyj@apple.com>
+
+        EnterFullscreen must update the minimum and maximum layout sizes.
+        https://bugs.webkit.org/show_bug.cgi?id=184828
+        rdar://problem/38435829
+
+        Reviewed by Jon Lee.
+
+        Without this, the WKWebView won't layout to the full size in fullscreen mode.
+
+        * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm:
+        (-[WKFullScreenWindowController enterFullScreen]):
+
 2018-04-18  Jer Noble  <jer.noble@apple.com>
 
         Don't put build products into WK_ALTERNATE_WEBKIT_SDK_PATH for engineering builds
index 239af2f..a8de29b 100644 (file)
@@ -471,6 +471,7 @@ static const NSTimeInterval kAnimationDuration = 0.2;
         
         [_webView setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
         [_webView setFrame:[_window bounds]];
+        [_webView _overrideLayoutParametersWithMinimumLayoutSize:[_window bounds].size maximumUnobscuredSizeOverride:[_window bounds].size];
         [_window insertSubview:_webView atIndex:0];
         [_webView setNeedsLayout];
         [_webView layoutIfNeeded];