| 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 c1fa238c8ab35b1ea40d2688f865924f92299fb8..357c1dbab118e11cf5d03ac533b8a7bd52f74da0 100644
|
| --- a/ui/views/window/non_client_view.cc
|
| +++ b/ui/views/window/non_client_view.cc
|
| @@ -59,12 +59,14 @@ void NonClientView::WindowClosing() {
|
| client_view_->WidgetClosing();
|
| }
|
|
|
| -void NonClientView::UpdateFrame() {
|
| +void NonClientView::UpdateFrame(bool layout) {
|
| Widget* widget = GetWidget();
|
| SetFrameView(widget->CreateNonClientFrameView());
|
| widget->ThemeChanged();
|
| - Layout();
|
| - SchedulePaint();
|
| + if (layout) {
|
| + Layout();
|
| + SchedulePaint();
|
| + }
|
| }
|
|
|
| void NonClientView::SetInactiveRenderingDisabled(bool disable) {
|
|
|