Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3ec152dd3bd7087aa613d6a69894ed552e29235d
https://github.com/WebKit/WebKit/commit/3ec152dd3bd7087aa613d6a69894ed552e29235d
Author: Aditya Keerthi <[email protected]>
Date: 2025-12-03 (Wed, 03 Dec 2025)
Changed paths:
M Source/WebKit/UIProcess/Inspector/ios/WKInspectorHighlightView.mm
M Source/WebKit/UIProcess/ios/WKContentView.mm
Log Message:
-----------
[iOS] Remove use of `-[UIScreen mainScreen]` in `WKInspectorHighlightView`
https://bugs.webkit.org/show_bug.cgi?id=303431
rdar://165724968
Reviewed by Wenson Hsieh.
`-[UIScreen mainScreen]` was deprecated in iOS 26. Work towards removing its
use in WebKit.
* Source/WebKit/UIProcess/Inspector/ios/WKInspectorHighlightView.mm:
(-[WKInspectorHighlightView update:scale:frame:]):
* Source/WebKit/UIProcess/ios/WKContentView.mm:
(-[WKContentView _showInspectorHighlight:]):
`-intrinsicDeviceScaleFactor` gets the display scale from the view's trait
collection and falls back to using `UIScreen` if the value is unspecified.
Canonical link: https://commits.webkit.org/303846@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications