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

Issue 2722503005: Add bottom border to StyledLabel. (Closed)

Created:
3 years, 9 months ago by dvadym
Modified:
3 years, 9 months ago
Reviewers:
msw, Evan Stade
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add bottom border to StyledLabel. On CL https://codereview.chromium.org/2072513003 it was changed calculation of height of StyledLabel, so the |total_height| is equal to the bottom point of lowest sublabel. This doesn't take into consideration a bottom border. Screenshots are on the bug. This CL fixes this. BUG=697034 Review-Url: https://codereview.chromium.org/2722503005 Cr-Commit-Position: refs/heads/master@{#455495} Committed: https://chromium.googlesource.com/chromium/src/+/2581d91a5a2adfdae460bd25a43b44cac6f80ded

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : Rebase, test added #

Total comments: 6

Patch Set 4 : Addressed comments #

Patch Set 5 : Tiny fix #

Total comments: 4

Patch Set 6 : Addressed reviewer comments #

Total comments: 2

Patch Set 7 : Spacing fixed #

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

Messages

Total messages: 27 (16 generated)
dvadym
msw@, could you please review? Please advice if you think it's not the best solution. ...
3 years, 9 months ago (2017-03-01 15:31:33 UTC) #10
msw
Adding Evan, he should review this first.
3 years, 9 months ago (2017-03-01 17:09:44 UTC) #14
dvadym
ping
3 years, 9 months ago (2017-03-06 13:59:30 UTC) #15
Evan Stade
https://codereview.chromium.org/2722503005/diff/40001/ui/views/controls/styled_label.cc File ui/views/controls/styled_label.cc (right): https://codereview.chromium.org/2722503005/diff/40001/ui/views/controls/styled_label.cc#newcode356 ui/views/controls/styled_label.cc:356: focus_border_insets += -label->View::GetInsets(); nit: why is this += - ...
3 years, 9 months ago (2017-03-06 14:28:31 UTC) #16
dvadym
Thanks for comments Evan! I've addressed them. PTAL https://codereview.chromium.org/2722503005/diff/40001/ui/views/controls/styled_label.cc File ui/views/controls/styled_label.cc (right): https://codereview.chromium.org/2722503005/diff/40001/ui/views/controls/styled_label.cc#newcode356 ui/views/controls/styled_label.cc:356: focus_border_insets ...
3 years, 9 months ago (2017-03-06 15:45:36 UTC) #17
Evan Stade
lgtm https://codereview.chromium.org/2722503005/diff/80001/ui/views/controls/styled_label.cc File ui/views/controls/styled_label.cc (right): https://codereview.chromium.org/2722503005/diff/80001/ui/views/controls/styled_label.cc#newcode358 ui/views/controls/styled_label.cc:358: gfx::Insets insets = GetInsets(); nit: const https://codereview.chromium.org/2722503005/diff/80001/ui/views/controls/styled_label_unittest.cc File ...
3 years, 9 months ago (2017-03-06 22:01:30 UTC) #18
dvadym
Thanks for review Evan! https://codereview.chromium.org/2722503005/diff/80001/ui/views/controls/styled_label.cc File ui/views/controls/styled_label.cc (right): https://codereview.chromium.org/2722503005/diff/80001/ui/views/controls/styled_label.cc#newcode358 ui/views/controls/styled_label.cc:358: gfx::Insets insets = GetInsets(); On ...
3 years, 9 months ago (2017-03-07 13:22:53 UTC) #19
msw
lgtm with an optional nit https://codereview.chromium.org/2722503005/diff/100001/ui/views/controls/styled_label_unittest.cc File ui/views/controls/styled_label_unittest.cc (right): https://codereview.chromium.org/2722503005/diff/100001/ui/views/controls/styled_label_unittest.cc#newcode571 ui/views/controls/styled_label_unittest.cc:571: 6 /* bottom */, ...
3 years, 9 months ago (2017-03-08 16:34:25 UTC) #20
dvadym
https://codereview.chromium.org/2722503005/diff/100001/ui/views/controls/styled_label_unittest.cc File ui/views/controls/styled_label_unittest.cc (right): https://codereview.chromium.org/2722503005/diff/100001/ui/views/controls/styled_label_unittest.cc#newcode571 ui/views/controls/styled_label_unittest.cc:571: 6 /* bottom */, 20 /*right*/)); On 2017/03/08 16:34:25, ...
3 years, 9 months ago (2017-03-08 17:08:22 UTC) #21
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/2722503005/120001
3 years, 9 months ago (2017-03-08 17:08:53 UTC) #24
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 18:24:51 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/2581d91a5a2adfdae460bd25a43b...

Powered by Google App Engine
This is Rietveld 408576698