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

Issue 1140083002: Make StyledLabel wrap long words (Closed)

Created:
5 years, 7 months ago by tbarzic
Modified:
5 years, 7 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make StyledLabel wrap long words This fixes StyleLabel layout in languages that don't have word breaks (e.g. Japanese). BUG=479859 Committed: https://crrev.com/49236cbd96cda78df70d3f00c9ababcacf9bbcc8 Cr-Commit-Position: refs/heads/master@{#330807}

Patch Set 1 #

Total comments: 12

Patch Set 2 : . #

Patch Set 3 : tests #

Total comments: 2

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -5 lines) Patch
M ui/views/controls/styled_label.cc View 1 4 chunks +16 lines, -5 lines 0 comments Download
M ui/views/controls/styled_label_unittest.cc View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
tbarzic
5 years, 7 months ago (2015-05-13 18:24:22 UTC) #2
msw
Can you get an author to review? I don't know this code very well. https://codereview.chromium.org/1140083002/diff/1/ui/views/controls/styled_label.cc ...
5 years, 7 months ago (2015-05-13 23:05:40 UTC) #3
tbarzic
also, adding sky https://codereview.chromium.org/1140083002/diff/1/ui/views/controls/styled_label.cc File ui/views/controls/styled_label.cc (right): https://codereview.chromium.org/1140083002/diff/1/ui/views/controls/styled_label.cc#newcode284 ui/views/controls/styled_label.cc:284: gfx::TRUNCATE_LONG_WORDS, On 2015/05/13 23:05:39, msw wrote: ...
5 years, 7 months ago (2015-05-14 00:02:29 UTC) #5
msw
lgtm with a test nit https://codereview.chromium.org/1140083002/diff/40001/ui/views/controls/styled_label_unittest.cc File ui/views/controls/styled_label_unittest.cc (right): https://codereview.chromium.org/1140083002/diff/40001/ui/views/controls/styled_label_unittest.cc#newcode144 ui/views/controls/styled_label_unittest.cc:144: EXPECT_EQ(styled()->height() / 2, styled()->child_at(1)->height()); ...
5 years, 7 months ago (2015-05-14 00:31:42 UTC) #6
tbarzic
https://codereview.chromium.org/1140083002/diff/40001/ui/views/controls/styled_label_unittest.cc File ui/views/controls/styled_label_unittest.cc (right): https://codereview.chromium.org/1140083002/diff/40001/ui/views/controls/styled_label_unittest.cc#newcode144 ui/views/controls/styled_label_unittest.cc:144: EXPECT_EQ(styled()->height() / 2, styled()->child_at(1)->height()); On 2015/05/14 00:31:42, msw wrote: ...
5 years, 7 months ago (2015-05-14 01:29:25 UTC) #7
msw
lgtm
5 years, 7 months ago (2015-05-14 01:34:08 UTC) #8
tbarzic
On 2015/05/14 01:34:08, msw wrote: > lgtm sky: ping
5 years, 7 months ago (2015-05-19 18:01:48 UTC) #9
sky
LGTM - sorry for the delay.
5 years, 7 months ago (2015-05-20 19:43:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140083002/60001
5 years, 7 months ago (2015-05-20 20:10:01 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-20 21:26:36 UTC) #13
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 21:28:19 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/49236cbd96cda78df70d3f00c9ababcacf9bbcc8
Cr-Commit-Position: refs/heads/master@{#330807}

Powered by Google App Engine
This is Rietveld 408576698