Reset composition state in CancelComposition
In this CL, let TSFTextStore::CancelComposition() clean up the composition related member variables and terminate the composition directly. TextInputClient could clear current composition range before requesting the cancel composition, so |string_pending_insertion_| could be cleared in ResetCacheAfterEditSession(). That breaks to terminate the composition in ConfirmComposition(). Bug: 1156985 Change-Id: I40dc8c23aa0f110d7042f63bfad017ed902e9f35 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2580971Reviewed-by:Anupam Snigdha <snianu@microsoft.com> Reviewed-by:
Siye Liu <siliu@microsoft.com> Reviewed-by:
Yohei Yukawa <yukawa@chromium.org> Reviewed-by:
Darren Shen <shend@chromium.org> Reviewed-by:
Keith Lee <keithlee@chromium.org> Commit-Queue: jongdeok.kim <jongdeok.kim@navercorp.com> Cr-Commit-Position: refs/heads/master@{#835893}
Showing
Please register or sign in to comment