Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Issue 263833010: Revert of Fix Views inline autocomplete with multi-char graphemes. (Closed)

Created:
6 years, 7 months ago by falken
Modified:
6 years, 7 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, Yuki, tfarina, penghuang+watch_chromium.org, Seigo Nonaka, James Su, ckocagil, jungshik at Google
Visibility:
Public.

Description

Revert 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -132 lines) Patch
M ui/gfx/render_text.h View 3 chunks +9 lines, -11 lines 0 comments Download
M ui/gfx/render_text.cc View 8 chunks +18 lines, -34 lines 0 comments Download
M ui/gfx/render_text_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text_mac.cc View 5 chunks +8 lines, -8 lines 0 comments Download
M ui/gfx/render_text_pango.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text_pango.cc View 5 chunks +24 lines, -17 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 6 chunks +13 lines, -39 lines 0 comments Download
M ui/gfx/render_text_win.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text_win.cc View 4 chunks +21 lines, -19 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
falken
Created Revert of Fix Views inline autocomplete with multi-char graphemes.
6 years, 7 months ago (2014-05-02 09:13:24 UTC) #1
falken
The CQ bit was checked by falken@chromium.org
6 years, 7 months ago (2014-05-02 09:16:12 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/263833010/1
6 years, 7 months ago (2014-05-02 09:16:44 UTC) #3
commit-bot: I haz the power
Change committed as 267765
6 years, 7 months ago (2014-05-02 09:17:28 UTC) #4
msw
LGTM, thanks. Darn, our XP bots have exhibited font issues before. I'll re-land excluding this ...
6 years, 7 months ago (2014-05-02 09:22:04 UTC) #5
Alexei Svitkine (slow)
6 years, 7 months ago (2014-05-02 15:42:24 UTC) #6
SGTM.

The test uses Thai and Hindi scripts and we know our XP machines don't
always have language packs installed, so disabling on XP makes sense to me
here.


On Fri, May 2, 2014 at 5:22 AM, <msw@chromium.org> wrote:

> LGTM, thanks. Darn, our XP bots have exhibited font issues before.
> I'll re-land excluding this test on XP, like some other RenderTextTests.
>
> https://codereview.chromium.org/263833010/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698