Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Allow text selection to flip.
https://bugs.webkit.org/show_bug.cgi?id=231234 rdar://83889188 Reviewed by Wenson Hsieh. Source/WebKit: In order to bring webkit more in line with UIKit, allow text selection to flip. This also requires a UIKit change tracked in rdar://83788439 This is currently guarded behind an off-by-default flag so that we can test this new behavior before turning it on by default. * Platform/spi/ios/UIKitSPI.h: * Shared/ios/GestureTypes.h: * UIProcess/ios/WKContentViewInteraction.mm: (toUIWKSelectionFlags): (toSelectionFlags): * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): * WebProcess/WebPage/WebPage.h: (WebKit::WebPage::selectionFlippingEnabled const): (WebKit::WebPage::setSelectionFlippingEnabled): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::rangeForPointInRootViewCoordinates): (WebKit::WebPage::updateSelectionWithTouches): Source/WTF: Add an internal flag to guard text selection flipping while we test to make sure this is reasonable to turn on everywhere. * Scripts/Preferences/WebPreferencesInternal.yaml: Canonical link: https://commits.webkit.org/242571@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
9 changed files
with
118 additions
and
32 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
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