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

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..b51d91873ba467d628790b48ce64c13ae0057125 100644
--- a/content/public/common/renderer_preferences.cc
+++ b/content/public/common/renderer_preferences.cc
@@ -43,7 +43,11 @@ RendererPreferences::RendererPreferences()
small_caption_font_height(0),
menu_font_height(0),
status_font_height(0),
- message_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) {
brucedawson 2015/04/03 17:00:24 This would be cleaner if we initialized these when
}
RendererPreferences::~RendererPreferences() { }

Powered by Google App Engine
This is Rietveld 408576698