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 |
} |