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

Unified Diff: content/renderer/render_view_impl.cc

Issue 9826031: Fixing highlight color (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/browser/renderer_preferences_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index bf8acfc3fa64e7db27ff643aa0a2cd325d44ef69..773c8a08f6d839b44950fd8daad888be0b82005d 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -4260,12 +4260,16 @@ void RenderViewImpl::OnSetRendererPrefs(
renderer_prefs.thumb_inactive_color,
renderer_prefs.thumb_active_color,
renderer_prefs.track_color);
+#endif
+#if defined(USE_ASH) || defined(TOOLKIT_USES_GTK)
if (webview()) {
+#if defined(TOOLKIT_USES_GTK)
webview()->setScrollbarColors(
renderer_prefs.thumb_inactive_color,
renderer_prefs.thumb_active_color,
renderer_prefs.track_color);
+#endif
webview()->setSelectionColors(
renderer_prefs.active_selection_bg_color,
renderer_prefs.active_selection_fg_color,
@@ -4274,6 +4278,7 @@ void RenderViewImpl::OnSetRendererPrefs(
webview()->themeChanged();
}
#endif
+
// If the zoom level for this page matches the old zoom default, and this
// is not a plugin, update the zoom level to match the new default.
if (webview() && !webview()->mainFrame()->document().isPluginDocument() &&
« no previous file with comments | « chrome/browser/renderer_preferences_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698