fix: persist BrowserView background color when bounds offscreen (#30542)

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2021-08-19 08:39:53 +09:00
committed by GitHub
parent 1ca52e9b93
commit 12c54ab670

View File

@@ -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;
}