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

Issue 15070004: Fix LabelButton preferred size calculations. (Closed)

Created:
7 years, 7 months ago by msw
Modified:
7 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Fix LabelButton preferred size calculations. Label font/size changes in GetPreferredSize were causing infinite loops. ( the new-dialog-style edit bookmark dialog would crash on launch ) Rewrite the sizing code using a local Label object, fix for correctness too. Remove a redundant call to SetAccessibleName. BUG=155363 TEST=Button sizing is correct, no crashes on new-style edit bookmark dialog. R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199921

Patch Set 1 : Apply the LabelButton changes from https://codereview.chromium.org/14646037/ #

Patch Set 2 : Continue refining LabelButton sizing code. #

Patch Set 3 : Continue refining LabelButton sizing code; nix caching. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -19 lines) Patch
M ui/views/controls/button/label_button.cc View 1 2 2 chunks +15 lines, -19 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
msw
Hey Scott, please take a look at your earliest opportunity; thanks!
7 years, 7 months ago (2013-05-12 23:04:22 UTC) #1
sky
LGTM
7 years, 7 months ago (2013-05-13 15:47:05 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/15070004/7001
7 years, 7 months ago (2013-05-13 16:11:11 UTC) #3
commit-bot: I haz the power
7 years, 7 months ago (2013-05-14 05:30:47 UTC) #4
Message was sent while issue was closed.
Change committed as 199921

Powered by Google App Engine
This is Rietveld 408576698