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

Issue 1420043007: Fix ShapeResult::selectionRect handles RTL runs in wrong order (Closed)

Created:
5 years, 1 month ago by kojii
Modified:
5 years, 1 month ago
Reviewers:
eae, wkorman
CC:
wkorman, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, leviw_travelin_and_unemployed, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, vmpstr+blinkwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ShapeResult::selectionRect handles RTL runs in wrong order In ShapeResult::selectionRect, the Vector of ShapeResult is in logical order, while RunInfo in ShapeResult is in visual order. This patch fixes logical offsets to visual offsets when comparing to RunInfo. Also fixes to use HB_DIRECTION_IS_BACKWARD() when testing hb_direction_t is RTL, which improves the test in vertical flow. BUG=539108 Committed: https://crrev.com/79e5c356b8571b04a90bbfddfc8be0965e1af416 Cr-Commit-Position: refs/heads/master@{#357319}

Patch Set 1 #

Patch Set 2 : Fix runs are in visual order, and test #

Patch Set 3 : Cleanup test #

Patch Set 4 : Fix test #

Patch Set 5 : Fix currentX calculation #

Patch Set 6 : Fix currentX calculation #

Patch Set 7 : Rebaseline 1px diff on Mac #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -10 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/international/rtl-selection-rect-with-fallback.html View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp View 1 2 3 4 5 6 chunks +29 lines, -10 lines 2 comments Download

Messages

Total messages: 19 (8 generated)
kojii
PTAL. I was thinking for a while to simplify |xPositionForVisualOffset()| further since the given offset ...
5 years, 1 month ago (2015-11-01 07:53:04 UTC) #4
eae
LGTM Very nice, I was planning to look into it this week after the analysis ...
5 years, 1 month ago (2015-11-01 07:59:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420043007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420043007/60001
5 years, 1 month ago (2015-11-01 07:59:29 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/134333)
5 years, 1 month ago (2015-11-01 10:17:39 UTC) #9
kojii
Mac had both real and unrelated failures, thanks to Times causing fallback to catch a ...
5 years, 1 month ago (2015-11-02 01:55:54 UTC) #10
wkorman
lgtm Nice! https://codereview.chromium.org/1420043007/diff/120001/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp File third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp (right): https://codereview.chromium.org/1420043007/diff/120001/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp#newcode424 third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp:424: // Convert logical offsets to visual offsets, ...
5 years, 1 month ago (2015-11-02 04:29:20 UTC) #12
kojii
https://codereview.chromium.org/1420043007/diff/120001/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp File third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp (right): https://codereview.chromium.org/1420043007/diff/120001/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp#newcode424 third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp:424: // Convert logical offsets to visual offsets, because results ...
5 years, 1 month ago (2015-11-02 05:19:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420043007/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420043007/120001
5 years, 1 month ago (2015-11-02 06:33:51 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-02 07:48:15 UTC) #17
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/79e5c356b8571b04a90bbfddfc8be0965e1af416 Cr-Commit-Position: refs/heads/master@{#357319}
5 years, 1 month ago (2015-11-02 07:49:04 UTC) #18
hiroshige
5 years, 1 month ago (2015-11-02 10:32:44 UTC) #19
Message was sent while issue was closed.
On 2015/11/02 07:49:04, commit-bot: I haz the power wrote:
> Patchset 7 (id:??) landed as
> https://crrev.com/79e5c356b8571b04a90bbfddfc8be0965e1af416
> Cr-Commit-Position: refs/heads/master@{#357319}

fast/text/atsui-rtl-override-selection.html starts failing on Mac10.6 after
chromium 357317:357320, suspecting this CL.
Tracking bug: https://crbug.com/550336

Powered by Google App Engine
This is Rietveld 408576698