mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Revert "Fix background color assignment for popups (fixes issue #2482)"
This reverts commit 1a0593dd6c
.
This commit is contained in:
@@ -2534,13 +2534,6 @@ void CefBrowserHostImpl::RenderViewCreated(
|
|||||||
RenderFrameCreated(render_view_host->GetMainFrame());
|
RenderFrameCreated(render_view_host->GetMainFrame());
|
||||||
|
|
||||||
platform_delegate_->RenderViewCreated(render_view_host);
|
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(
|
void CefBrowserHostImpl::RenderViewDeleted(
|
||||||
|
@@ -1051,6 +1051,11 @@ void CefContentBrowserClient::OverrideWebkitPrefs(
|
|||||||
// Using RVH instead of RFH here because rvh->GetMainFrame() may be nullptr
|
// Using RVH instead of RFH here because rvh->GetMainFrame() may be nullptr
|
||||||
// when this method is called.
|
// when this method is called.
|
||||||
renderer_prefs::PopulateWebPreferences(rvh, *prefs);
|
renderer_prefs::PopulateWebPreferences(rvh, *prefs);
|
||||||
|
|
||||||
|
if (rvh->GetWidget()->GetView()) {
|
||||||
|
rvh->GetWidget()->GetView()->SetBackgroundColor(
|
||||||
|
prefs->base_background_color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CefContentBrowserClient::BrowserURLHandlerCreated(
|
void CefContentBrowserClient::BrowserURLHandlerCreated(
|
||||||
|
Reference in New Issue
Block a user