-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS]
svh
/dvh
units are unexpectedly equal when Safari tab bar is…
… not visible https://bugs.webkit.org/show_bug.cgi?id=261185 rdar://115085360 Reviewed by Wenson Hsieh. The SPI `-[WKWebView _overrideLayoutParametersWithMinimumLayoutSize:maximumUnobscuredSizeOverride:]` is underspecified, and clients calling into this method conflate `minimumLayoutSize` as _the_ current layout size. This is not appropriate for us to use as the `minimumUnobscuredSizeOverride` because the current layout size may not be computed in light of the fact that some dynamic UI of a client is not visible. To address this issue, we update the SPI signature to include a new `minimumUnobscuredSizeOverride` argument, following the precedence set by the `maximumUnobscuredSizeOverride` parameter, which callers should populate with the minimum unobscured layout size assuming all dynamic UI is expanded. We also update some API tests that call this SPI and reflect the semantics of the new argument in the updated test expectations. * Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h: * Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm: (-[WKWebView _overrideLayoutParametersWithMinimumLayoutSize:maximumUnobscuredSizeOverride:]): (-[WKWebView _overrideLayoutParametersWithMinimumLayoutSize:minimumUnobscuredSizeOverride:maximumUnobscuredSizeOverride:]): * Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: (WebKit::WKWebViewState::applyTo): * Tools/TestWebKitAPI/Tests/WebKitCocoa/AnimatedResize.mm: (TEST): * Tools/TestWebKitAPI/Tests/WebKitCocoa/CSSViewportUnits.mm: (TEST): * Tools/TestWebKitAPI/Tests/WebKitCocoa/FixedLayoutSize.mm: (TEST): * Tools/TestWebKitAPI/Tests/WebKitCocoa/RestoreScrollPosition.mm: (TestWebKitAPI::TEST): * Tools/TestWebKitAPI/Tests/ios/ScrollViewInsetTests.mm: (TestWebKitAPI::TEST): * Tools/TestWebKitAPI/Tests/ios/ScrollViewScrollabilityTests.mm: (TestWebKitAPI::TEST): * Tools/WebKitTestRunner/ios/PlatformWebViewIOS.mm: (-[PlatformWebViewController viewWillTransitionToSize:withTransitionCoordinator:]): Canonical link: https://commits.webkit.org/270652@main
- Loading branch information
Showing
10 changed files
with
56 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.