mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
chrome: Fix crash on display of browser via "New window" command
This commit is contained in:
@ -313,8 +313,11 @@ void CefBrowserContentsDelegate::RenderFrameCreated(
|
|||||||
web_contents()->SetPageBaseBackgroundColor(SkColor());
|
web_contents()->SetPageBaseBackgroundColor(SkColor());
|
||||||
web_contents()->SetPageBaseBackgroundColor(base_background_color);
|
web_contents()->SetPageBaseBackgroundColor(base_background_color);
|
||||||
}
|
}
|
||||||
render_view_host->GetWidget()->GetView()->SetBackgroundColor(
|
if (render_view_host->GetWidget() &&
|
||||||
base_background_color);
|
render_view_host->GetWidget()->GetView()) {
|
||||||
|
render_view_host->GetWidget()->GetView()->SetBackgroundColor(
|
||||||
|
base_background_color);
|
||||||
|
}
|
||||||
|
|
||||||
platform_delegate()->RenderViewCreated(render_view_host);
|
platform_delegate()->RenderViewCreated(render_view_host);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user