| 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 e9d4f36c92bee7283cc41fba93c008757c0aa014..fdaa27530d547647f5e46810d45a55aaa70ea86b 100644
|
| --- a/ui/views/controls/button/image_button.cc
|
| +++ b/ui/views/controls/button/image_button.cc
|
| @@ -47,9 +47,11 @@ const gfx::ImageSkia& ImageButton::GetImage(ButtonState state) const {
|
| return images_[state];
|
| }
|
|
|
| -void ImageButton::SetImage(ButtonState state, const gfx::ImageSkia* image) {
|
| - images_[state] = image ? *image : gfx::ImageSkia();
|
| +void ImageButton::SetImage(ButtonState for_state, const gfx::ImageSkia* image) {
|
| + images_[for_state] = image ? *image : gfx::ImageSkia();
|
| PreferredSizeChanged();
|
| + if (state() == for_state)
|
| + SchedulePaint();
|
| }
|
|
|
| void ImageButton::SetBackground(SkColor color,
|
|
|