From e8e1f98ee026a62778eb2269c8e883426db645ea Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 8 Apr 2015 17:43:56 +0200 Subject: [PATCH] Mac: Fix customization of background color (issue #1161). --- libcef/browser/content_browser_client.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcef/browser/content_browser_client.cc b/libcef/browser/content_browser_client.cc index a42d412c8..80f6464d7 100644 --- a/libcef/browser/content_browser_client.cc +++ b/libcef/browser/content_browser_client.cc @@ -42,6 +42,7 @@ #include "content/public/browser/plugin_service_filter.h" #include "content/public/browser/quota_permission_context.h" #include "content/public/browser/render_process_host.h" +#include "content/public/browser/render_widget_host_view.h" #include "content/public/browser/resource_dispatcher_host.h" #include "content/public/common/content_switches.h" #include "content/public/common/storage_quota_params.h" @@ -989,6 +990,7 @@ void CefContentBrowserClient::OverrideWebkitPrefs( BrowserToWebSettings(browser->settings(), *prefs); prefs->base_background_color = GetBaseBackgroundColor(rvh); + rvh->GetView()->SetBackgroundColor(prefs->base_background_color); prefs->asynchronous_spell_checking_enabled = true; // Auto-correct does not work in combination with the unified text checker.