[webkit-changes] [WebKit/WebKit] fceec3: Stop using the `UIApp` static variable to access t...

Wenson Hsieh noreply at github.com
Wed Sep 20 23:25:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fceec3484288b9c6e4289a5ced7a1ccf5b082cc2
      https://github.com/WebKit/WebKit/commit/fceec3484288b9c6e4289a5ced7a1ccf5b082cc2
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-09-20 (Wed, 20 Sep 2023)

  Changed paths:
    M Source/WebKit/Platform/spi/ios/UIKitSPI.h
    M Source/WebKit/UIProcess/Cocoa/NavigationState.mm
    M Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm
    M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
    M Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm
    M Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm
    M Tools/DumpRenderTree/mac/DumpRenderTree.mm

  Log Message:
  -----------
  Stop using the `UIApp` static variable to access the shared UIApplication
https://bugs.webkit.org/show_bug.cgi?id=261861

Reviewed by Richard Robinson.

Replace uses of `UIApp` with the equivalent `+[UIApplication sharedApplication]`. Also, remove a
staging declaration for the `-[UIView focusEffect]` property that's no longer necessary.

* Source/WebKit/Platform/spi/ios/UIKitSPI.h:
* Source/WebKit/UIProcess/Cocoa/NavigationState.mm:
(WebKit::NavigationState::didChangeIsLoading):
* Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm:
(-[WKActionSheetAssistant showImageSheet]):
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView actionSheetAssistant:showCustomSheetForElement:]):
* Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::applicationDidEnterBackground):
(WebKit::WebPageProxy::applicationWillEnterForeground):
(WebKit::WebPageProxy::applicationDidEnterBackgroundForMedia):
(WebKit::WebPageProxy::applicationWillEnterForegroundForMedia):
* Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm:
(-[WKFullScreenViewController viewWillTransitionToSize:withTransitionCoordinator:]):
* Tools/DumpRenderTree/mac/DumpRenderTree.mm:
(createWebViewAndOffscreenWindow):
(runTest):

Canonical link: https://commits.webkit.org/268235@main




More information about the webkit-changes mailing list