| Index: ui/views/controls/button/label_button.cc
|
| diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
|
| index 978a5afb6e4c539ab5f941ba0771d691a76fefe7..bc8bf5d5b3c0e55e3768d144ca060bdf2e3da682 100644
|
| --- a/ui/views/controls/button/label_button.cc
|
| +++ b/ui/views/controls/button/label_button.cc
|
| @@ -181,11 +181,7 @@ void LabelButton::SetIsDefault(bool is_default) {
|
| if (style_ == STYLE_BUTTON) {
|
| label_->SetFontList(
|
| is_default ? cached_bold_font_list_ : cached_normal_font_list_);
|
| - // Usually this function is called before |this| is attached to a widget,
|
| - // but in the cases where |this| is already shown, we need to re-layout
|
| - // because font boldness affects the label's size.
|
| - if (GetWidget())
|
| - Layout();
|
| + InvalidateLayout();
|
| }
|
| }
|
|
|
|
|