| Index: ui/views/controls/button/image_button.cc
|
| diff --git a/ui/views/controls/button/image_button.cc b/ui/views/controls/button/image_button.cc
|
| index 483d971bbea836c6fceacbee82433f7dcf3704a6..d9426bea1f3daecc2faa985e6e4f9741a79645be 100644
|
| --- a/ui/views/controls/button/image_button.cc
|
| +++ b/ui/views/controls/button/image_button.cc
|
| @@ -48,6 +48,8 @@ const gfx::ImageSkia& ImageButton::GetImage(ButtonState state) const {
|
| }
|
|
|
| void ImageButton::SetImage(ButtonState for_state, const gfx::ImageSkia* image) {
|
| + if (for_state == STATE_HOVERED)
|
| + set_animate_on_state_change(image != nullptr);
|
| images_[for_state] = image ? *image : gfx::ImageSkia();
|
| PreferredSizeChanged();
|
| if (state() == for_state)
|
|
|