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

Issue 1013543006: [RenderText] Adding vertical alignment options (Closed)

Created:
5 years, 9 months ago by dschuyler
Modified:
5 years, 3 months ago
Reviewers:
msw, Jun Mukai
CC:
chromium-reviews, groby-ooo-7-16
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[RenderText] Adding vertical alignment options. This change adds vertical alignment options using similar terms to html layout. The macros are prefixed with VALIGN for vertical alignment. The three positions available are TOP, MIDDLE, BOTTOM. This change also includes a unit test for alignment options. BUG=469362

Patch Set 1 #

Total comments: 1

Patch Set 2 : merge from master #

Total comments: 30

Patch Set 3 : changes for review feedback to RenderText vertical alignment #

Patch Set 4 : Fix for RenderText bounding rectangles in unit tests #

Patch Set 5 : Testing adjustment to vertical alignment test #

Total comments: 10

Patch Set 6 : Changed views example to use vertical text alignment #

Patch Set 7 : Removed a scoped trace #

Patch Set 8 : merge from master #

Patch Set 9 : Removed pixel tests on vertical alignment #

Total comments: 19
Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -95 lines) Patch
M ui/gfx/canvas.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 1 comment Download
M ui/gfx/canvas_skia.cc View 1 2 3 4 5 2 chunks +29 lines, -62 lines 3 comments Download
M ui/gfx/render_text.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 1 comment Download
M ui/gfx/render_text.cc View 1 2 3 4 5 6 7 4 chunks +28 lines, -6 lines 1 comment Download
M ui/gfx/render_text_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +101 lines, -27 lines 11 comments Download
M ui/gfx/text_constants.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M ui/views/examples/text_example.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/examples/text_example.cc View 1 2 3 4 5 3 chunks +24 lines, -0 lines 2 comments Download

Messages

Total messages: 12 (2 generated)
dschuyler
https://codereview.chromium.org/1013543006/diff/1/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/1013543006/diff/1/ui/gfx/render_text.cc#newcode1168 ui/gfx/render_text.cc:1168: if (multiline_) { This hasn't been tested on Windows ...
5 years, 9 months ago (2015-03-24 23:56:53 UTC) #2
dschuyler
5 years, 9 months ago (2015-03-26 17:11:21 UTC) #3
dschuyler
Sorry about the empty message. I should have said ping :) The Mac version is ...
5 years, 9 months ago (2015-03-26 18:42:14 UTC) #4
msw
Sorry, I've had a rather heavy review load lately, including more critical crash fixes and ...
5 years, 9 months ago (2015-03-26 20:10:37 UTC) #5
msw
https://codereview.chromium.org/1013543006/diff/20001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/1013543006/diff/20001/ui/gfx/render_text.cc#newcode1172 ui/gfx/render_text.cc:1172: offset.set_y(lines_.back().preceding_heights); I don't think this is correct... Shouldn't it ...
5 years, 9 months ago (2015-03-26 22:55:45 UTC) #6
dschuyler
https://codereview.chromium.org/1013543006/diff/20001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/1013543006/diff/20001/ui/gfx/render_text.cc#newcode1172 ui/gfx/render_text.cc:1172: offset.set_y(lines_.back().preceding_heights); On 2015/03/26 22:55:44, msw wrote: > I don't ...
5 years, 9 months ago (2015-03-27 21:20:35 UTC) #7
msw
https://codereview.chromium.org/1013543006/diff/20001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/1013543006/diff/20001/ui/gfx/render_text.cc#newcode1172 ui/gfx/render_text.cc:1172: offset.set_y(lines_.back().preceding_heights); On 2015/03/27 21:20:34, dschuyler wrote: > On 2015/03/26 ...
5 years, 8 months ago (2015-03-30 19:19:12 UTC) #8
dschuyler
It looks like the canvas skia was also trying to wrap multi-line text. I'm seeing ...
5 years, 8 months ago (2015-03-31 18:38:15 UTC) #9
msw
https://codereview.chromium.org/1013543006/diff/80001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/1013543006/diff/80001/ui/gfx/render_text_unittest.cc#newcode2854 ui/gfx/render_text_unittest.cc:2854: const Size string_size(render_text->GetContentWidth(), On 2015/03/31 18:38:14, dschuyler wrote: > ...
5 years, 8 months ago (2015-04-01 15:07:18 UTC) #10
Jun Mukai
5 years, 8 months ago (2015-04-02 00:53:12 UTC) #12
https://codereview.chromium.org/1013543006/diff/160001/ui/gfx/render_text.h
File ui/gfx/render_text.h (right):

https://codereview.chromium.org/1013543006/diff/160001/ui/gfx/render_text.h#n...
ui/gfx/render_text.h:276: // TODO(ckocagil): Add vertical alignment and line
spacing support instead.
Please remove this TODO.

Powered by Google App Engine
This is Rietveld 408576698