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

Issue 300623003: Fix the Char to Glyph mapping logic in RenderTextHarfBuzz (Closed)

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

Description

Fix the Char to Glyph mapping logic in RenderTextHarfBuzz BUG=321868 R=msw@chromium.org NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275754

Patch Set 1 #

Total comments: 12

Patch Set 2 : comment #

Patch Set 3 : comment #

Patch Set 4 : rebased #

Patch Set 5 : add tests, fix implementation #

Total comments: 13

Patch Set 6 : comments #

Patch Set 7 : elaborate #

Patch Set 8 : compile fix #

Patch Set 9 : compile fix 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -15 lines) Patch
M ui/gfx/render_text_harfbuzz.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 5 6 2 chunks +32 lines, -14 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +53 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
ckocagil
6 years, 7 months ago (2014-05-24 20:51:27 UTC) #1
msw
https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode378 ui/gfx/render_text_harfbuzz.cc:378: glyph_count : CharToGlyph(char_range.end()); This doesn't seem right. It seems ...
6 years, 7 months ago (2014-05-28 00:52:33 UTC) #2
ckocagil
https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode378 ui/gfx/render_text_harfbuzz.cc:378: glyph_count : CharToGlyph(char_range.end()); |char_range.end() == range.end()| doesn't mean "last ...
6 years, 7 months ago (2014-05-28 01:02:02 UTC) #3
msw
lgtm with a nit. https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode371 ui/gfx/render_text_harfbuzz.cc:371: // For RTL runs, we ...
6 years, 7 months ago (2014-05-28 01:18:30 UTC) #4
ckocagil
https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode371 ui/gfx/render_text_harfbuzz.cc:371: // For RTL runs, we subtract 1 from |char_range| ...
6 years, 6 months ago (2014-06-02 02:57:42 UTC) #5
msw
Having some unit testing of these functions would help a lot! https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): ...
6 years, 6 months ago (2014-06-02 19:37:58 UTC) #6
ckocagil
https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode371 ui/gfx/render_text_harfbuzz.cc:371: // For RTL runs, we subtract 1 from |char_range| ...
6 years, 6 months ago (2014-06-03 22:25:17 UTC) #7
msw
We really need unit tests for behavior like this. It'll be easier and it'll yield ...
6 years, 6 months ago (2014-06-03 22:32:09 UTC) #8
ckocagil
(Actually you should prevent me from landing this without a proper unit test. Sorry for ...
6 years, 6 months ago (2014-06-05 06:51:59 UTC) #9
msw
Sorry for my confusion, thanks for addressing my earlier comments to fix that error, writing ...
6 years, 6 months ago (2014-06-06 02:00:43 UTC) #10
ckocagil
https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/300623003/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode943 ui/gfx/render_text_harfbuzz.cc:943: run->glyph_to_char.reset(new uint32[run->glyph_count]); On 2014/06/06 02:00:42, msw wrote: > Would ...
6 years, 6 months ago (2014-06-07 05:40:33 UTC) #11
msw
lgtm with a question for my own clarification. https://codereview.chromium.org/300623003/diff/80001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/300623003/diff/80001/ui/gfx/render_text_harfbuzz.cc#newcode425 ui/gfx/render_text_harfbuzz.cc:425: for ...
6 years, 6 months ago (2014-06-08 00:10:17 UTC) #12
ckocagil
https://codereview.chromium.org/300623003/diff/80001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/300623003/diff/80001/ui/gfx/render_text_harfbuzz.cc#newcode425 ui/gfx/render_text_harfbuzz.cc:425: for (size_t i = char_range.start(); i > range.start(); --i) ...
6 years, 6 months ago (2014-06-08 01:30:07 UTC) #13
msw
Still LGTM! https://codereview.chromium.org/300623003/diff/80001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/300623003/diff/80001/ui/gfx/render_text_harfbuzz.cc#newcode425 ui/gfx/render_text_harfbuzz.cc:425: for (size_t i = char_range.start(); i > ...
6 years, 6 months ago (2014-06-08 01:58:14 UTC) #14
ckocagil
Landing now https://codereview.chromium.org/300623003/diff/80001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/300623003/diff/80001/ui/gfx/render_text_harfbuzz.cc#newcode425 ui/gfx/render_text_harfbuzz.cc:425: for (size_t i = char_range.start(); i > ...
6 years, 6 months ago (2014-06-08 03:15:31 UTC) #15
ckocagil
The CQ bit was checked by ckocagil@chromium.org
6 years, 6 months ago (2014-06-08 03:15:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/300623003/120001
6 years, 6 months ago (2014-06-08 03:15:55 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-08 06:27:57 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-08 06:52:09 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_clang_dbg/builds/32449)
6 years, 6 months ago (2014-06-08 06:52:10 UTC) #20
ckocagil
The CQ bit was checked by ckocagil@chromium.org
6 years, 6 months ago (2014-06-08 07:46:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/300623003/140001
6 years, 6 months ago (2014-06-08 07:47:22 UTC) #22
ckocagil
The CQ bit was unchecked by ckocagil@chromium.org
6 years, 6 months ago (2014-06-08 10:38:55 UTC) #23
ckocagil
The CQ bit was checked by ckocagil@chromium.org
6 years, 6 months ago (2014-06-08 10:40:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/300623003/150004
6 years, 6 months ago (2014-06-08 10:41:02 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-08 13:59:55 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-08 15:11:14 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/160855)
6 years, 6 months ago (2014-06-08 15:11:15 UTC) #28
ckocagil
The CQ bit was checked by ckocagil@chromium.org
6 years, 6 months ago (2014-06-08 20:06:56 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/300623003/150004
6 years, 6 months ago (2014-06-08 20:07:43 UTC) #30
commit-bot: I haz the power
6 years, 6 months ago (2014-06-08 20:10:45 UTC) #31
Message was sent while issue was closed.
Change committed as 275754

Powered by Google App Engine
This is Rietveld 408576698