| Index: views/view.cc
|
| diff --git a/views/view.cc b/views/view.cc
|
| index cfae12610f2a849c109ae9c97d14c8a2f1a0c1c0..927f9d2f45dc5ac3d15151934dcbbaf60672e4af 100644
|
| --- a/views/view.cc
|
| +++ b/views/view.cc
|
| @@ -381,10 +381,10 @@ bool View::IsVisibleInRootView() const {
|
| return IsVisible() && parent() ? parent()->IsVisibleInRootView() : false;
|
| }
|
|
|
| -void View::SetEnabled(bool state) {
|
| - if (enabled_ != state) {
|
| - enabled_ = state;
|
| - SchedulePaint();
|
| +void View::SetEnabled(bool enabled) {
|
| + if (enabled_ != enabled) {
|
| + enabled_ = enabled;
|
| + OnEnabledChanged();
|
| }
|
| }
|
|
|
| @@ -392,6 +392,10 @@ bool View::IsEnabled() const {
|
| return enabled_;
|
| }
|
|
|
| +void View::OnEnabledChanged() {
|
| + SchedulePaint();
|
| +}
|
| +
|
| // Transformations -------------------------------------------------------------
|
|
|
| const ui::Transform& View::GetTransform() const {
|
|
|