Skip to content

Commit

Permalink
Clear text indicator styles when they are no longer needed
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=273651
rdar://127334566

Reviewed by Abrar Rahman Protyasha, Megan Gardner and Wenson Hsieh.

* Source/WebKit/WebProcess/WebPage/Cocoa/UnifiedTextReplacementController.mm:
(WebKit::UnifiedTextReplacementController::didEndTextReplacementSession):

Canonical link: https://commits.webkit.org/278296@main
  • Loading branch information
pxlcoder committed May 3, 2024
1 parent a2d74c7 commit f2a9b39
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@
return false;
});

m_webPage->removeTextIndicatorStyleForID(uuid);

document->selection().setSelection({ *sessionRange });

m_replacementTypes.remove(uuid);
Expand Down

0 comments on commit f2a9b39

Please sign in to comment.