Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f999ec9a6c257d94590fbeb06cab703eee2b4adf
https://github.com/WebKit/WebKit/commit/f999ec9a6c257d94590fbeb06cab703eee2b4adf
Author: Wenson Hsieh <[email protected]>
Date: 2023-07-14 (Fri, 14 Jul 2023)
Changed paths:
M Source/WebKit/Platform/spi/ios/UIKitSPI.h
M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm
M Source/WebKit/UIProcess/ios/WKScrollView.mm
Log Message:
-----------
[iOS] Replace a couple of UIScrollView SPI usages with API equivalents
https://bugs.webkit.org/show_bug.cgi?id=259223
Reviewed by Aditya Keerthi.
Remove two uses of SPI and IPI, which are trivially implementable using API
instead. See below for
more details.
* Source/WebKit/Platform/spi/ios/UIKitSPI.h:
* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(-[WKWebView
_zoomToFocusRect:selectionRect:fontSize:minimumScale:maximumScale:allowScaling:forceScroll:]):
Instead of relying on `-_effectiveContentInset`, just use the equivalent
`-adjustedContentInset`.
* Source/WebKit/UIProcess/ios/WKScrollView.mm:
(-[WKScrollView initWithFrame:]):
Instead of calling `-_setIndicatorInsetAdjustmentBehavior:` with `.always`,
simply set
`automaticallyAdjustsScrollIndicatorInsets` to `YES`.
Canonical link: https://commits.webkit.org/266076@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes