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

Unified Diff: chrome/renderer/render_view.cc

Issue 554004: GTK: Use GTK+ theme selection colors and plumb them into webkit. (Closed)
Patch Set: Move layout tests to correct paths Created 10 years, 11 months 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
Index: chrome/renderer/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 5b1ee822b81b3d5e16c89c4ce59aa460513656a6..abfa3f6710a6b62292a7aa620209e5f19ea2c6ad 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -3363,11 +3363,17 @@ void RenderView::OnSetRendererPrefs(const RendererPreferences& renderer_prefs) {
WebColorName name = WebKit::WebColorWebkitFocusRingColor;
WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1);
- if (webview())
+ if (webview()) {
webview()->setScrollbarColors(
renderer_prefs.thumb_inactive_color,
renderer_prefs.thumb_active_color,
renderer_prefs.track_color);
+ webview()->setSelectionColors(
+ renderer_prefs.active_selection_bg_color,
+ renderer_prefs.active_selection_fg_color,
+ renderer_prefs.inactive_selection_bg_color,
+ renderer_prefs.inactive_selection_fg_color);
+ }
#endif
}
« no previous file with comments | « chrome/common/renderer_preferences.h ('k') | webkit/data/layout_tests/LayoutTests/fast/linux_selection_color.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698