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

Issue 924773002: Fix multiline behaviors for RTL text. (Closed)

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

Description

Fix multiline behaviors for RTL text. - Usually, logical first segment should appear in the first line when multi-lined. This is the reported bug as crbug.com/458219 Therefore, TextRunHarfBuzz should be added to the line breaker in the logical order. - The segment order in a line is assumed as visual order, therefore it needs to be sorted. - Modified the test expectations which support this behavior. - Added new test cases to verify where exactly the segment is drawn. BUG=458219 R=msw@chromium.org, ckocagil@chromium.org TEST=gfx_unittests Committed: https://crrev.com/41d94b4931866d75bdbe9b75377b7608bba63d3a Cr-Commit-Position: refs/heads/master@{#316954}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix #

Total comments: 13

Patch Set 3 : rebase #

Patch Set 4 : comments addressed #

Total comments: 4

Patch Set 5 : fix #

Total comments: 4

Patch Set 6 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -38 lines) Patch
M ui/gfx/render_text.h View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.h View 1 2 3 4 5 3 chunks +8 lines, -2 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 5 13 chunks +34 lines, -25 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 3 4 5 5 chunks +158 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Jun Mukai
5 years, 10 months ago (2015-02-13 06:12:32 UTC) #1
ckocagil
Optional: Can we also test LineSegment::x_range? https://codereview.chromium.org/924773002/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/924773002/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode270 ui/gfx/render_text_harfbuzz.cc:270: struct SortByVisualPosition { ...
5 years, 10 months ago (2015-02-13 19:05:25 UTC) #2
Jun Mukai
which test should I verify x_range? Also -- I've noticed my mistake, the fractional glyph-width ...
5 years, 10 months ago (2015-02-13 21:57:59 UTC) #3
msw
https://codereview.chromium.org/924773002/diff/20001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/924773002/diff/20001/ui/gfx/render_text_unittest.cc#newcode93 ui/gfx/render_text_unittest.cc:93: class TestSkiaTextRenderer : public internal::SkiaTextRenderer { nit: add a ...
5 years, 10 months ago (2015-02-14 03:03:10 UTC) #4
Jun Mukai
https://codereview.chromium.org/924773002/diff/20001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/924773002/diff/20001/ui/gfx/render_text_unittest.cc#newcode93 ui/gfx/render_text_unittest.cc:93: class TestSkiaTextRenderer : public internal::SkiaTextRenderer { On 2015/02/14 03:03:09, ...
5 years, 10 months ago (2015-02-18 00:24:14 UTC) #5
msw
https://codereview.chromium.org/924773002/diff/20001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/924773002/diff/20001/ui/gfx/render_text_unittest.cc#newcode2110 ui/gfx/render_text_unittest.cc:2110: TEST_F(RenderTextTest, HarfBuzz_RTLDrawingPositions) { On 2015/02/14 03:03:10, msw wrote: > ...
5 years, 10 months ago (2015-02-18 18:58:37 UTC) #6
Jun Mukai
https://codereview.chromium.org/924773002/diff/20001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/924773002/diff/20001/ui/gfx/render_text_unittest.cc#newcode2110 ui/gfx/render_text_unittest.cc:2110: TEST_F(RenderTextTest, HarfBuzz_RTLDrawingPositions) { On 2015/02/18 18:58:37, msw wrote: > ...
5 years, 10 months ago (2015-02-18 19:55:56 UTC) #7
msw
lgtm with nits, thanks. https://codereview.chromium.org/924773002/diff/80001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/924773002/diff/80001/ui/gfx/render_text_unittest.cc#newcode2139 ui/gfx/render_text_unittest.cc:2139: // Make sure two RTL ...
5 years, 10 months ago (2015-02-18 20:08:52 UTC) #8
Jun Mukai
https://codereview.chromium.org/924773002/diff/80001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/924773002/diff/80001/ui/gfx/render_text_unittest.cc#newcode2139 ui/gfx/render_text_unittest.cc:2139: // Make sure two RTL runs are drawn in ...
5 years, 10 months ago (2015-02-18 23:53:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/924773002/100001
5 years, 10 months ago (2015-02-18 23:54:39 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-19 01:26:25 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 01:27:17 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/41d94b4931866d75bdbe9b75377b7608bba63d3a
Cr-Commit-Position: refs/heads/master@{#316954}

Powered by Google App Engine
This is Rietveld 408576698