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

Issue 2767163003: Vertically center multi-line RenderTextHarfBuzz that uses SetMinLineHeight(). (Closed)

Created:
3 years, 9 months ago by tapted
Modified:
3 years, 8 months ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, lgarron+watch_chromium.org, derat+watch_chromium.org, raymes+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Vertically center multi-line RenderTextHarfBuzz that uses SetMinLineHeight(). Currently the text is only vertically centered in the non-multi-line case. Test by comparing the effect of increasing the display rectangle versus increasing the line height. These should behave the same, except in the latter case the selection highlight should also increase in height. BUG=704404 Review-Url: https://codereview.chromium.org/2767163003 Cr-Commit-Position: refs/heads/master@{#461361} Committed: https://chromium.googlesource.com/chromium/src/+/9ec27b9e456d7d7f4899a2d9e7dc4efd8a1d1e5b

Patch Set 1 : awesomer test #

Total comments: 7

Patch Set 2 : respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -27 lines) Patch
M ui/gfx/render_text.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/render_text.cc View 3 chunks +26 lines, -25 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 chunks +98 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 38 (31 generated)
tapted
Hi Mike, please take a look. https://codereview.chromium.org/2767163003/diff/120001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/2767163003/diff/120001/ui/gfx/render_text_unittest.cc#newcode4482 ui/gfx/render_text_unittest.cc:4482: EXPECT_EQ(normal_baseline + baseline_shift, ...
3 years, 8 months ago (2017-03-31 10:31:14 UTC) #25
msw
Nice! lgtm with minor qs on the test. https://codereview.chromium.org/2767163003/diff/120001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/2767163003/diff/120001/ui/gfx/render_text_unittest.cc#newcode4425 ui/gfx/render_text_unittest.cc:4425: // ...
3 years, 8 months ago (2017-03-31 17:19:27 UTC) #26
tapted
https://codereview.chromium.org/2767163003/diff/120001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/2767163003/diff/120001/ui/gfx/render_text_unittest.cc#newcode4425 ui/gfx/render_text_unittest.cc:4425: // Note this is equivalent to RenderText::GetDisplayTextBaseline(). On 2017/03/31 ...
3 years, 8 months ago (2017-04-02 23:52:43 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2767163003/140001
3 years, 8 months ago (2017-04-02 23:55:59 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/396715)
3 years, 8 months ago (2017-04-03 01:46:14 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2767163003/140001
3 years, 8 months ago (2017-04-03 01:48:53 UTC) #35
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 02:28:50 UTC) #38
Message was sent while issue was closed.
Committed patchset #2 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/9ec27b9e456d7d7f4899a2d9e7dc...

Powered by Google App Engine
This is Rietveld 408576698