-
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] Remove several unused SPI method implementations in WKContentView
https://bugs.webkit.org/show_bug.cgi?id=260271 Reviewed by Aditya Keerthi. Remove a couple of unused SPI method implementations: ``` -[UIWKInteractionViewProtocol requestRectsToEvadeForSelectionCommandsWithCompletionHandler:] -[UIWKInteractionViewProtocol selectWordBackward] ``` ...as well as an unused SPI method declaration: ``` -[UIWKInteractionViewProtocol clearSelection] ``` * Source/WebKit/Platform/spi/ios/UIKitSPI.h: * Source/WebKit/UIProcess/API/ios/WKWebViewPrivateForTestingIOS.h: * Source/WebKit/UIProcess/API/ios/WKWebViewTestingIOS.mm: (-[WKWebView selectWordBackwardForTesting]): Turn this into a testing-only SPI method, instead of using the SPI declaration from conforming to `UIWKInteractionViewProtocol`. * Source/WebKit/UIProcess/ios/WKContentViewInteraction.h: * Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView requestPreferredArrowDirectionForEditMenuWithCompletionHandler:]): (-[WKContentView selectWordBackwardForTesting]): (-[WKContentView selectWordBackward]): Deleted. (-[WKContentView requestRectsToEvadeForSelectionCommandsWithCompletionHandler:]): Deleted. This method is no longer needed, since iOS 16+ has support for modern edit menus and uses the method `-requestPreferredArrowDirectionForEditMenuWithCompletionHandler:` instead. (-[WKContentView _requestEvasionRectsAboveSelectionIfNeeded:]): Deleted. * Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm: * Tools/TestWebKitAPI/Tests/WebKitCocoa/EditorStateTests.mm: * Tools/TestWebKitAPI/ios/UIKitSPI.h: Canonical link: https://commits.webkit.org/266953@main
- Loading branch information
Showing
8 changed files
with
30 additions
and
37 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