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

Issue 882643005: Add multiline support to RenderTextHarfBuzz. (Closed)

Created:
5 years, 10 months ago by Jun Mukai
Modified:
5 years, 10 months ago
Reviewers:
msw, ckocagil, oshima
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add multiline support to RenderTextHarfBuzz. The implementation of LineBreaker is mostly a straightforward porting of RenderTextWin's implementation. BUG=248597 R=ckocagil@chromium.org, msw@chromium.org TEST=manually, customized ash_shell Committed: https://crrev.com/2772f49714e8571e8609aa6d9d1178ce8f2ed9c7 Cr-Commit-Position: refs/heads/master@{#315010}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : typo fix #

Total comments: 26

Patch Set 4 : tests #

Patch Set 5 : addressed review comments #

Patch Set 6 : newline #

Total comments: 20

Patch Set 7 : addressed review comments #

Total comments: 17

Patch Set 8 : fix #

Patch Set 9 : fix #

Total comments: 4

Patch Set 10 : comments addressed #

Patch Set 11 : win fix #

Patch Set 12 : asan fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -134 lines) Patch
M ui/gfx/render_text.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.h View 1 2 3 4 5 6 3 chunks +14 lines, -0 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +323 lines, -71 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +81 lines, -63 lines 0 comments Download

Messages

Total messages: 33 (9 generated)
Jun Mukai
5 years, 10 months ago (2015-02-03 21:31:34 UTC) #1
oshima
drive-by: can you re-enable tests for multiline?
5 years, 10 months ago (2015-02-04 00:44:01 UTC) #3
msw
I hope that Cem can take a look; and this definitely requires re-enabling the multi-line ...
5 years, 10 months ago (2015-02-04 01:44:19 UTC) #4
Jun Mukai
https://codereview.chromium.org/882643005/diff/40001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/882643005/diff/40001/ui/gfx/render_text_harfbuzz.cc#newcode484 ui/gfx/render_text_harfbuzz.cc:484: : max_width_((max_width == 0) ? kuint32max : max_width), On ...
5 years, 10 months ago (2015-02-04 23:35:54 UTC) #5
msw
Looking pretty good, still hoping Cem will take a look, since he authored the original ...
5 years, 10 months ago (2015-02-05 01:09:16 UTC) #6
ckocagil
lgtm with comment. Thanks for working on this! https://codereview.chromium.org/882643005/diff/100001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/882643005/diff/100001/ui/gfx/render_text_harfbuzz.cc#newcode682 ui/gfx/render_text_harfbuzz.cc:682: min_ascent_ ...
5 years, 10 months ago (2015-02-05 04:21:33 UTC) #7
Jun Mukai
https://codereview.chromium.org/882643005/diff/100001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/882643005/diff/100001/ui/gfx/render_text_harfbuzz.cc#newcode22 ui/gfx/render_text_harfbuzz.cc:22: #include "ui/gfx/geometry/size_conversions.h" On 2015/02/05 01:09:15, msw wrote: > This ...
5 years, 10 months ago (2015-02-05 19:48:32 UTC) #9
oshima
lgtm with nits https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.cc#newcode512 ui/gfx/render_text_harfbuzz.cc:512: else if (multiline_ && (line_x_ + ...
5 years, 10 months ago (2015-02-05 21:29:40 UTC) #10
msw
https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.cc#newcode1212 ui/gfx/render_text_harfbuzz.cc:1212: for (size_t i = 0; i < lines().size(); ++i) ...
5 years, 10 months ago (2015-02-05 21:50:58 UTC) #11
msw
https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_unittest.cc#newcode1960 ui/gfx/render_text_unittest.cc:1960: #define COMPARE_RANGE(r1, segments, message) \ Please write this as ...
5 years, 10 months ago (2015-02-05 21:59:27 UTC) #12
Jun Mukai
https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.cc#newcode512 ui/gfx/render_text_harfbuzz.cc:512: else if (multiline_ && (line_x_ + run->width > max_width_)) ...
5 years, 10 months ago (2015-02-05 22:21:48 UTC) #14
oshima
https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.cc#newcode1212 ui/gfx/render_text_harfbuzz.cc:1212: for (size_t i = 0; i < lines().size(); ++i) ...
5 years, 10 months ago (2015-02-05 22:42:45 UTC) #15
Jun Mukai
https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.cc#newcode1212 ui/gfx/render_text_harfbuzz.cc:1212: for (size_t i = 0; i < lines().size(); ++i) ...
5 years, 10 months ago (2015-02-05 23:28:00 UTC) #16
Jun Mukai
5 years, 10 months ago (2015-02-05 23:28:00 UTC) #17
oshima
https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.h File ui/gfx/render_text_harfbuzz.h (right): https://codereview.chromium.org/882643005/diff/120001/ui/gfx/render_text_harfbuzz.h#newcode183 ui/gfx/render_text_harfbuzz.h:183: uint8 glyph_width_for_test_; On 2015/02/05 23:28:00, Jun Mukai wrote: > ...
5 years, 10 months ago (2015-02-05 23:48:25 UTC) #18
msw
lgtm with an optional test refactoring. https://codereview.chromium.org/882643005/diff/160001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/882643005/diff/160001/ui/gfx/render_text_unittest.cc#newcode89 ui/gfx/render_text_unittest.cc:89: EXPECT_EQ(expected_range.length() == 0 ...
5 years, 10 months ago (2015-02-05 23:49:47 UTC) #19
Jun Mukai
https://codereview.chromium.org/882643005/diff/160001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/882643005/diff/160001/ui/gfx/render_text_unittest.cc#newcode89 ui/gfx/render_text_unittest.cc:89: EXPECT_EQ(expected_range.length() == 0 ? 0ul : 1ul, segments.size()) On ...
5 years, 10 months ago (2015-02-06 01:00:53 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/882643005/180001
5 years, 10 months ago (2015-02-06 01:01:49 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/23623)
5 years, 10 months ago (2015-02-06 02:18:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/882643005/200001
5 years, 10 months ago (2015-02-06 06:31:22 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/32707)
5 years, 10 months ago (2015-02-06 08:08:38 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/882643005/220001
5 years, 10 months ago (2015-02-06 08:49:32 UTC) #31
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 10 months ago (2015-02-06 12:18:08 UTC) #32
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 12:19:06 UTC) #33
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/2772f49714e8571e8609aa6d9d1178ce8f2ed9c7
Cr-Commit-Position: refs/heads/master@{#315010}

Powered by Google App Engine
This is Rietveld 408576698