Fix background color assignment for popups (fixes issue #2482)

This commit is contained in:
Marshall Greenblatt
2020-04-23 14:04:48 -04:00
parent 23f4473cca
commit 56f4784cae
2 changed files with 7 additions and 5 deletions

View File

@@ -2531,6 +2531,13 @@ void CefBrowserHostImpl::RenderViewCreated(
RenderFrameCreated(render_view_host->GetMainFrame());
platform_delegate_->RenderViewCreated(render_view_host);
// Make sure the background color is set on the WebView and the Widget.
render_view_host->OnWebkitPreferencesChanged();
if (render_view_host->GetWidget()->GetView()) {
render_view_host->GetWidget()->GetView()->SetBackgroundColor(
GetBackgroundColor());
}
}
void CefBrowserHostImpl::RenderViewDeleted(