Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: content/shell/shell_gtk.cc

Issue 11365096: Initialize renderer color preferences to reasonable defaults. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/renderer_preferences.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_gtk.cc
diff --git a/content/shell/shell_gtk.cc b/content/shell/shell_gtk.cc
index 6261b805444719fbad90c143ffdb2783bf3f09f1..2cfbc475fb07ae2981a61e49e4df52bc5687555b 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) {
« no previous file with comments | « content/public/common/renderer_preferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698