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

Issue 923973003: Fix the x-offset calculation when drawing the 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the x-offset calculation when drawing the text. The current calculation assumes positions[0].x() is zero, a run may start with certain x-offset. It depends on the font settings. In that case, the entire run might be shifted horizontally. This is still really hard to be tested in the current code base, the x-offset value comes from the font settings. Let me leave the test for the further CL(s). BUG=456692 R=msw@chromium.org, ckocagil@chromium.org Committed: https://crrev.com/2bc3c549d9e42787e66f41634c622cf4c7e63f9e Cr-Commit-Position: refs/heads/master@{#316989}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix #

Total comments: 2

Patch Set 3 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M ui/gfx/render_text_harfbuzz.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Jun Mukai
5 years, 10 months ago (2015-02-13 22:13:53 UTC) #1
msw
https://codereview.chromium.org/923973003/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/923973003/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode963 ui/gfx/render_text_harfbuzz.cc:963: SkScalar offset_x = preceding_segment_widths - Hmm, I wonder if ...
5 years, 10 months ago (2015-02-14 04:22:34 UTC) #2
Jun Mukai
https://codereview.chromium.org/923973003/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/923973003/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode963 ui/gfx/render_text_harfbuzz.cc:963: SkScalar offset_x = preceding_segment_widths - On 2015/02/14 04:22:34, msw ...
5 years, 10 months ago (2015-02-17 21:24:21 UTC) #3
msw
lgtm if it seems right for RTL (maybe check visually?) https://codereview.chromium.org/923973003/diff/20001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/923973003/diff/20001/ui/gfx/render_text_harfbuzz.cc#newcode1017 ...
5 years, 10 months ago (2015-02-17 22:28:25 UTC) #4
Jun Mukai
https://codereview.chromium.org/923973003/diff/20001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/923973003/diff/20001/ui/gfx/render_text_harfbuzz.cc#newcode1017 ui/gfx/render_text_harfbuzz.cc:1017: ((glyphs_range.start() != 0) ? run.positions[glyphs_range.start()].x() On 2015/02/17 22:28:25, msw ...
5 years, 10 months ago (2015-02-17 23:10:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/923973003/40001
5 years, 10 months ago (2015-02-19 02:13:10 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-19 04:05:17 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 04:06:05 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2bc3c549d9e42787e66f41634c622cf4c7e63f9e
Cr-Commit-Position: refs/heads/master@{#316989}

Powered by Google App Engine
This is Rietveld 408576698