diff --git a/shell/browser/api/electron_api_browser_window.cc b/shell/browser/api/electron_api_browser_window.cc index 234dedb643ea0..352029b665586 100644 --- a/shell/browser/api/electron_api_browser_window.cc +++ b/shell/browser/api/electron_api_browser_window.cc @@ -100,7 +100,7 @@ BrowserWindow::BrowserWindow(gin::Arguments* args, // Note that |GetContentsView|, confusingly, does not refer to the same thing // as |BaseWindow::GetContentView|. window()->GetContentsView()->AddChildViewAt(web_contents_view->view(), 0); - window()->GetContentsView()->DeprecatedLayoutImmediately(); + window()->GetContentsView()->InvalidateLayout(); // Init window after everything has been setup. window()->InitFromOptions(options); diff --git a/shell/browser/native_window_mac.mm b/shell/browser/native_window_mac.mm index e9909c0a53dd5..8c0a2858d9994 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -365,7 +365,7 @@ void ReorderChildWindowAbove(NSWindow* child_window, NSWindow* other_window) { set_content_view(view); root_view->AddChildView(content_view()); - root_view->DeprecatedLayoutImmediately(); + root_view->InvalidateLayout(); } void NativeWindowMac::Close() { diff --git a/shell/browser/native_window_views.cc b/shell/browser/native_window_views.cc index 0528acdadabf8..eaff193ceff07 100644 --- a/shell/browser/native_window_views.cc +++ b/shell/browser/native_window_views.cc @@ -474,7 +474,7 @@ void NativeWindowViews::SetContentView(views::View* view) { set_content_view(view); focused_view_ = view; root_view_.GetMainView()->AddChildView(content_view()); - root_view_.GetMainView()->DeprecatedLayoutImmediately(); + root_view_.GetMainView()->InvalidateLayout(); } void NativeWindowViews::Close() { diff --git a/shell/browser/ui/inspectable_web_contents_view.cc b/shell/browser/ui/inspectable_web_contents_view.cc index 411c902fd14cf..32c134eebe61b 100644 --- a/shell/browser/ui/inspectable_web_contents_view.cc +++ b/shell/browser/ui/inspectable_web_contents_view.cc @@ -123,7 +123,7 @@ void InspectableWebContentsView::ShowDevTools(bool activate) { devtools_web_view_->SetWebContents( inspectable_web_contents_->GetDevToolsWebContents()); devtools_web_view_->RequestFocus(); - DeprecatedLayoutImmediately(); + InvalidateLayout(); } } @@ -144,7 +144,7 @@ void InspectableWebContentsView::CloseDevTools() { } else { devtools_web_view_->SetVisible(false); devtools_web_view_->SetWebContents(nullptr); - DeprecatedLayoutImmediately(); + InvalidateLayout(); } } @@ -193,7 +193,7 @@ void InspectableWebContentsView::SetIsDocked(bool docked, bool activate) { void InspectableWebContentsView::SetContentsResizingStrategy( const DevToolsContentsResizingStrategy& strategy) { strategy_.CopyFrom(strategy); - DeprecatedLayoutImmediately(); + InvalidateLayout(); } void InspectableWebContentsView::SetTitle(const std::u16string& title) {