| 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 0cfd1a41a7feadb4572d8e659313359fe1cbab3d..9032db94be4dad05b18492d8ea853d5788c3c2a7 100644
|
| --- a/ui/views/controls/button/label_button.cc
|
| +++ b/ui/views/controls/button/label_button.cc
|
| @@ -165,12 +165,7 @@ void LabelButton::SetStyle(ButtonStyle style) {
|
| if (style == STYLE_BUTTON)
|
| set_min_size(gfx::Size(70, 33));
|
|
|
| - ResetColorsFromNativeTheme();
|
| -
|
| - UpdateThemedBorder(scoped_ptr<Border>(new LabelButtonBorder(style_)));
|
| -
|
| - // Invalidate the layout to pickup the new insets from the border.
|
| - InvalidateLayout();
|
| + OnNativeThemeChanged(GetNativeTheme());
|
| }
|
|
|
| void LabelButton::SetFocusPainter(scoped_ptr<Painter> focus_painter) {
|
| @@ -379,6 +374,9 @@ void LabelButton::ChildPreferredSizeChanged(View* child) {
|
|
|
| void LabelButton::OnNativeThemeChanged(const ui::NativeTheme* theme) {
|
| ResetColorsFromNativeTheme();
|
| + UpdateThemedBorder(scoped_ptr<Border>(new LabelButtonBorder(style_)));
|
| + // Invalidate the layout to pickup the new insets from the border.
|
| + InvalidateLayout();
|
| }
|
|
|
| ui::NativeTheme::Part LabelButton::GetThemePart() const {
|
|
|