DescriptionFix 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. #Messages
Total messages: 4 (0 generated)
|