DescriptionRevert of Avoid sync IPCs for firstRectForCharacterRange/attributedSubstringForProposedRange. (patchset #9 id:160001 of https://codereview.chromium.org/1301173002/ )
Reason for revert:
Caused regression: crbug.com/526611.
Need to support asynchronous "Look Up in Dictionary" with attributed string by context menu.
Original issue's description:
> Avoid sync IPCs for firstRectForCharacterRange/attributedSubstringForProposedRange.
>
> For firstRectForCharacterRange, always uses the cached rect. And it will make
> IME get the wrong/old rect to position its suggestion window.
> For attributedSubstringForProposedRange, always uses composition or
> selection text. And it will drop the string format (fonts/color/etc.) information.
>
> This cl is a trade-off between making IME behave properly and avoid freezing UI.
>
> I try to make this change as small as possible so that it can be easily
> rolled back for potential regressions.
> The changes of cleanning up the IPC defitions and code in
> TextInputClientMac will be done in a separated cl.
>
> BUG=121917, 473850
> TEST=Verified bug not repro on local build.
>
> Committed: https://crrev.com/bc6b777b385ff691d69479691cd259215cb32e4f
> Cr-Commit-Position: refs/heads/master@{#345828}
TBR=asvitkine@chromium.org,yukawa@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=121917, 473850
Committed: https://crrev.com/64883bfcc6088e2cc7b447aa419d972d8346884f
Cr-Commit-Position: refs/heads/master@{#346386}
Patch Set 1 #
Messages
Total messages: 9 (3 generated)
|