-
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.
[Unified Text Replacement] Replacing text with differing text lengths…
… causes the text to be replaced incorrectly https://bugs.webkit.org/show_bug.cgi?id=270264 rdar://123790734 Reviewed by Wenson Hsieh and Megan Gardner. When replacing the text/content, also ensure the corresponding ranges are updated. To facilitate this, the temporary selection that was being made is no longer temporary, as it never actually needed to be. Also remove `using namespace WebCore` for more consistency. * Source/WebKit/WebProcess/WebPage/UnifiedTextReplacementController.cpp: (WebKit::replaceTextInRange): (WebKit::replaceContentsInRange): (WebKit::findReplacementMarkerByUUID): (WebKit::UnifiedTextReplacementController::textReplacementSessionDidReceiveReplacements): (WebKit::UnifiedTextReplacementController::textReplacementSessionDidUpdateStateForReplacement): (WebKit::UnifiedTextReplacementController::didEndTextReplacementSession): (WebKit::UnifiedTextReplacementController::textReplacementSessionDidReceiveTextWithReplacementRange): (WebKit::UnifiedTextReplacementController::textReplacementSessionDidReceiveEditAction): Canonical link: https://commits.webkit.org/275508@main
- Loading branch information
Showing
1 changed file
with
46 additions
and
39 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