Index: ui/views/window/non_client_view.cc |
diff --git a/ui/views/window/non_client_view.cc b/ui/views/window/non_client_view.cc |
index d6ee959f7b07812296700e5fa96e4a5d8252ae6f..5dcfdd530c3cb3a77c4c2435a54855ff55b22a2e 100644 |
--- a/ui/views/window/non_client_view.cc |
+++ b/ui/views/window/non_client_view.cc |
@@ -194,8 +194,9 @@ views::View* NonClientView::GetEventHandlerForPoint(const gfx::Point& point) { |
// NonClientFrameView, public: |
void NonClientFrameView::SetInactiveRenderingDisabled(bool disable) { |
- // See comment in Widget::SetInactiveRenderingDisabled as to why we don't |
- // conditionally invoke ShouldPaintAsActiveChanged. |
+ if (paint_as_active_ == disable) |
+ return; |
+ |
paint_as_active_ = disable; |
ShouldPaintAsActiveChanged(); |
} |
@@ -266,8 +267,7 @@ bool NonClientFrameView::ShouldPaintAsActive() const { |
} |
void NonClientFrameView::ShouldPaintAsActiveChanged() { |
- if (!paint_as_active_) |
- SchedulePaint(); |
+ SchedulePaint(); |
} |
void NonClientFrameView::GetAccessibleState(ui::AccessibleViewState* state) { |