Add CefBrowserSettings.background_color for custom background color assignment on a per-browser basis and fix assignment of the default value (issue #1161).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1656 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2014-04-15 19:02:30 +00:00
parent 966b64c01f
commit 33e7bb04b3
10 changed files with 101 additions and 8 deletions

View File

@@ -6,7 +6,6 @@
#include <string>
#include "libcef/browser/context.h"
#include "libcef/common/cef_switches.h"
#include "base/command_line.h"
@@ -127,6 +126,4 @@ void BrowserToWebSettings(const CefBrowserSettings& cef, WebPreferences& web) {
web.experimental_webgl_enabled = false;
if (cef.accelerated_compositing == STATE_DISABLED)
web.accelerated_compositing_enabled = false;
web.base_background_color = CefContext::Get()->settings().background_color;
}