From 12c54ab6702982c3e82eb44d15ed4a54364f8dd0 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 19 Aug 2021 08:39:53 +0900 Subject: [PATCH] fix: persist BrowserView background color when bounds offscreen (#30542) Co-authored-by: Shelley Vohr --- shell/browser/ui/views/inspectable_web_contents_view_views.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/ui/views/inspectable_web_contents_view_views.cc b/shell/browser/ui/views/inspectable_web_contents_view_views.cc index e71a38eb27eb0..48bbcb17e2121 100644 --- a/shell/browser/ui/views/inspectable_web_contents_view_views.cc +++ b/shell/browser/ui/views/inspectable_web_contents_view_views.cc @@ -213,7 +213,7 @@ void InspectableWebContentsViewViews::SetTitle(const std::u16string& title) { void InspectableWebContentsViewViews::Layout() { if (!devtools_web_view_->GetVisible()) { - contents_web_view_->SetBoundsRect(GetContentsBounds()); + contents_web_view_->SetBoundsRect(GetVisibleBounds()); return; }