DescriptionRevert of Fix Views inline autocomplete with multi-char graphemes. (https://codereview.chromium.org/252563003/)
Reason for revert:
Sorry to revert. After this patch the following test started failing on XP Tests (3):
RenderTextTest.MidGraphemeSelectionBounds
Log: http://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%283%29/builds/27345/steps/ui_unittests/logs/MidGraphemeSelectionBounds
Snippet from log:
c:\b\build\slave\cr-win-rel\build\src\ui\gfx\render_text_unittest.cc(930): error: Value of: render_text->IsValidCursorIndex(1)
Actual: true
Expected: false
Original issue's description:
> Fix Views inline autocomplete with multi-char graphemes.
>
> Allow RenderText selection bounds amid multi-char graphemes.
> Add a consolidated IsValidLogicalIndex implementation.
> (this is less strict than the renamed IsValidCursorIndex)
>
> Use adjacent cursor positions in MoveCursor as needed.
> (prevents invalid cursors when collapsing selections)
>
> Skip painting empty glyph ranges on Windows.
> Add a unit test; minor cleanup and comment changes.
>
> BUG=327903, 366786
> TEST=Search for "จำลอง" in the omnibox; enter "จ" and get a valid selection of the inline autocomplete text.
> R=asvitkine@chromium.org
>
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267752
TBR=asvitkine@chromium.org,msw@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=327903, 366786
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267765
Patch Set 1 #
Created: 6 years, 7 months ago
(Patch set is too large to download)
Messages
Total messages: 6 (0 generated)
|