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

Unified Diff: content/public/common/renderer_preferences.cc

Issue 1054243002: Avoid calling the GetSystemMetrics API in the renderer process on Windows to get the scrollbar metr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/public/common/renderer_preferences.cc
diff --git a/content/public/common/renderer_preferences.cc b/content/public/common/renderer_preferences.cc
index 662bc40df806393dd50f034c7f8defbe9b7296ea..8450f782abdcc19f1fd8aa3c3857f736841e0b0c 100644
--- a/content/public/common/renderer_preferences.cc
+++ b/content/public/common/renderer_preferences.cc
@@ -38,12 +38,18 @@ RendererPreferences::RendererPreferences()
disable_client_blocked_error_page(false),
plugin_fullscreen_allowed(true),
use_video_overlay_for_embedded_encrypted_video(false),
- use_view_overlay_for_all_video(false),
- caption_font_height(0),
- small_caption_font_height(0),
- menu_font_height(0),
- status_font_height(0),
- message_font_height(0) {
+ use_view_overlay_for_all_video(false) {
+#if defined(OS_WIN)
+ caption_font_height = 0;
+ small_caption_font_height = 0;
cpu_(ooo_6.6-7.5) 2015/04/06 20:22:08 move this back into initializer list,
ananta 2015/04/06 20:42:03 Done.
+ menu_font_height = 0;
+ status_font_height = 0;
+ message_font_height = 0;
+ vertical_scroll_bar_width_in_dips = 0;
+ horizontal_scroll_bar_height_in_dips = 0;
+ arrow_bitmap_height_vertical_scroll_bar_in_dips = 0;
+ arrow_bitmap_width_horizontal_scroll_bar_in_dips = 0;
+#endif
}
RendererPreferences::~RendererPreferences() { }

Powered by Google App Engine
This is Rietveld 408576698