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

Issue 23522018: RenderTextWin: Break runs between any two characters that are not in the same code block (Closed)

Created:
7 years, 3 months ago by ckocagil
Modified:
7 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

RenderTextWin: Break runs between any two characters that are not in the same code block BUG=278913 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221776

Patch Set 1 #

Total comments: 6

Patch Set 2 : use CharIterator #

Total comments: 4

Patch Set 3 : addressed comments #

Total comments: 23

Patch Set 4 : fixed for partial surrogates #

Patch Set 5 : added test case #

Total comments: 10

Patch Set 6 : don't handle bad ranges #

Total comments: 8

Patch Set 7 : Mike's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -7 lines) Patch
M ui/gfx/render_text_unittest.cc View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
M ui/gfx/render_text_win.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_win.cc View 1 2 3 4 5 6 5 chunks +33 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
ckocagil
7 years, 3 months ago (2013-09-02 20:56:53 UTC) #1
msw
I like the general idea behind this patch, and I hope Alexei will weigh in ...
7 years, 3 months ago (2013-09-03 16:15:31 UTC) #2
Alexei Svitkine (slow)
Waiting for you to answer Mike's questions. Also, whatever approach is taken should include a ...
7 years, 3 months ago (2013-09-03 17:05:21 UTC) #3
ckocagil
https://codereview.chromium.org/23522018/diff/1/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): https://codereview.chromium.org/23522018/diff/1/ui/gfx/render_text_win.cc#newcode602 ui/gfx/render_text_win.cc:602: // Break runs between any two characters that are ...
7 years, 3 months ago (2013-09-04 13:02:50 UTC) #4
Alexei Svitkine (slow)
Thanks for working on this, by the way! (Still waiting for a unit test for ...
7 years, 3 months ago (2013-09-04 14:42:01 UTC) #5
ckocagil
Also added a unit test. https://codereview.chromium.org/23522018/diff/7001/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): https://codereview.chromium.org/23522018/diff/7001/ui/gfx/render_text_win.cc#newcode601 ui/gfx/render_text_win.cc:601: run_break = run->range.start() + ...
7 years, 3 months ago (2013-09-04 21:35:46 UTC) #6
Alexei Svitkine (slow)
Looks good, thanks for fixing the other erroneous uses of text(). A few more comments. ...
7 years, 3 months ago (2013-09-04 21:52:36 UTC) #7
msw
https://codereview.chromium.org/23522018/diff/20001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/23522018/diff/20001/ui/gfx/render_text_unittest.cc#newcode1656 ui/gfx/render_text_unittest.cc:1656: const base::string16 kTestString = WideToUTF16(L"x\x25B6y"); nit: Add another test ...
7 years, 3 months ago (2013-09-04 22:05:38 UTC) #8
ckocagil
https://codereview.chromium.org/23522018/diff/20001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/23522018/diff/20001/ui/gfx/render_text_unittest.cc#newcode1656 ui/gfx/render_text_unittest.cc:1656: const base::string16 kTestString = WideToUTF16(L"x\x25B6y"); On 2013/09/04 22:05:38, msw ...
7 years, 3 months ago (2013-09-05 20:13:14 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/23522018/diff/20001/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): https://codereview.chromium.org/23522018/diff/20001/ui/gfx/render_text_win.cc#newcode621 ui/gfx/render_text_win.cc:621: On 2013/09/05 20:13:15, ckocagil wrote: > On 2013/09/04 21:52:36, ...
7 years, 3 months ago (2013-09-05 20:32:40 UTC) #10
ckocagil
https://codereview.chromium.org/23522018/diff/31001/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): https://codereview.chromium.org/23522018/diff/31001/ui/gfx/render_text_win.cc#newcode611 ui/gfx/render_text_win.cc:611: if (!ui::IsValidCodePointIndex(layout_text, run_start)) On 2013/09/05 20:32:41, Alexei Svitkine wrote: ...
7 years, 3 months ago (2013-09-05 21:08:57 UTC) #11
Alexei Svitkine (slow)
https://codereview.chromium.org/23522018/diff/31001/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): https://codereview.chromium.org/23522018/diff/31001/ui/gfx/render_text_win.cc#newcode611 ui/gfx/render_text_win.cc:611: if (!ui::IsValidCodePointIndex(layout_text, run_start)) On 2013/09/05 21:08:57, ckocagil wrote: > ...
7 years, 3 months ago (2013-09-06 13:28:41 UTC) #12
Alexei Svitkine (slow)
https://codereview.chromium.org/23522018/diff/31001/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): https://codereview.chromium.org/23522018/diff/31001/ui/gfx/render_text_win.cc#newcode611 ui/gfx/render_text_win.cc:611: if (!ui::IsValidCodePointIndex(layout_text, run_start)) On 2013/09/06 13:28:42, Alexei Svitkine wrote: ...
7 years, 3 months ago (2013-09-06 13:36:18 UTC) #13
ckocagil
On 2013/09/06 13:36:18, Alexei Svitkine wrote: > https://codereview.chromium.org/23522018/diff/31001/ui/gfx/render_text_win.cc > File ui/gfx/render_text_win.cc (right): > > https://codereview.chromium.org/23522018/diff/31001/ui/gfx/render_text_win.cc#newcode611 ...
7 years, 3 months ago (2013-09-06 15:50:55 UTC) #14
Alexei Svitkine (slow)
LGTM
7 years, 3 months ago (2013-09-06 15:52:39 UTC) #15
msw
https://codereview.chromium.org/23522018/diff/31001/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): https://codereview.chromium.org/23522018/diff/31001/ui/gfx/render_text_win.cc#newcode614 ui/gfx/render_text_win.cc:614: if (!ui::IsValidCodePointIndex(layout_text, run_break)) On 2013/09/05 21:08:57, ckocagil wrote: > ...
7 years, 3 months ago (2013-09-06 16:51:28 UTC) #16
ckocagil
https://codereview.chromium.org/23522018/diff/39001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/23522018/diff/39001/ui/gfx/render_text_unittest.cc#newcode1656 ui/gfx/render_text_unittest.cc:1656: const base::string16 kTestString1 = WideToUTF16(L"x\x25B6y"); On 2013/09/06 16:51:28, msw ...
7 years, 3 months ago (2013-09-06 17:26:49 UTC) #17
msw
LGTM, very nice work!
7 years, 3 months ago (2013-09-06 17:31:39 UTC) #18
ckocagil
Thanks for the nice reviews!
7 years, 3 months ago (2013-09-06 17:32:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/23522018/45001
7 years, 3 months ago (2013-09-06 17:33:13 UTC) #20
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 20:46:16 UTC) #21
Message was sent while issue was closed.
Change committed as 221776

Powered by Google App Engine
This is Rietveld 408576698