summaryrefslogtreecommitdiffstats
path: root/content/shell
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-06 04:39:59 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-06 04:39:59 +0000
commitc975c78878fff68e82333f599882a7f73cb721ea (patch)
treeeae325eacb7e67f7473f1c94032743d7333a05be /content/shell
parentd8b49361b62e00480d9a19521d27b2c5dd607352 (diff)
downloadchromium_src-c975c78878fff68e82333f599882a7f73cb721ea.zip
chromium_src-c975c78878fff68e82333f599882a7f73cb721ea.tar.gz
chromium_src-c975c78878fff68e82333f599882a7f73cb721ea.tar.bz2
Initialize renderer color preferences to reasonable defaults.
BUG=158422 TEST=as in bug Review URL: https://chromiumcodereview.appspot.com/11365096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r--content/shell/shell_gtk.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/content/shell/shell_gtk.cc b/content/shell/shell_gtk.cc
index 6261b80..2cfbc47 100644
--- a/content/shell/shell_gtk.cc
+++ b/content/shell/shell_gtk.cc
@@ -17,7 +17,6 @@
#include "content/public/common/renderer_preferences.h"
#include "content/shell/shell_browser_context.h"
#include "content/shell/shell_content_browser_client.h"
-#include "third_party/skia/include/core/SkColor.h"
namespace content {
@@ -190,20 +189,6 @@ void Shell::PlatformCreateWindow(int width, int height) {
void Shell::PlatformSetContents() {
WebContentsView* content_view = web_contents_->GetView();
gtk_container_add(GTK_CONTAINER(vbox_), content_view->GetNativeView());
-
- // As an additional requirement on Linux, we must set the colors for the
- // render widgets in webkit.
- content::RendererPreferences* prefs =
- web_contents_->GetMutableRendererPrefs();
- prefs->focus_ring_color = SkColorSetARGB(255, 229, 151, 0);
- prefs->thumb_active_color = SkColorSetRGB(244, 244, 244);
- prefs->thumb_inactive_color = SkColorSetRGB(234, 234, 234);
- prefs->track_color = SkColorSetRGB(211, 211, 211);
-
- prefs->active_selection_bg_color = SkColorSetRGB(30, 144, 255);
- prefs->active_selection_fg_color = SK_ColorWHITE;
- prefs->inactive_selection_bg_color = SkColorSetRGB(200, 200, 200);
- prefs->inactive_selection_fg_color = SkColorSetRGB(50, 50, 50);
}
void Shell::SizeTo(int width, int height) {