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

Unified Diff: chrome/browser/renderer_preferences_util.cc

Issue 549303004: Allow default font size changing on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win compile fix. Created 5 years, 4 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 | « no previous file | chrome/browser/resources/chromeos/chromevox/common/editable_text_area_shadow_test.unitjs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_preferences_util.cc
diff --git a/chrome/browser/renderer_preferences_util.cc b/chrome/browser/renderer_preferences_util.cc
index a78c638ca57417cd76cfbad19c7fc9cfa9e8b656..e1127e11b21f4f564a651a86c5554a25a70d47e5 100644
--- a/chrome/browser/renderer_preferences_util.cc
+++ b/chrome/browser/renderer_preferences_util.cc
@@ -15,6 +15,7 @@
#if defined(OS_LINUX) || defined(OS_ANDROID)
#include "ui/gfx/font_render_params.h"
+#include "ui/gfx/platform_font.h"
#endif
#if !defined(OS_ANDROID)
@@ -110,6 +111,12 @@ void UpdateFromSystemSettings(content::RendererPreferences* prefs,
prefs->use_autohinter = params.autohinter;
prefs->use_bitmaps = params.use_bitmaps;
prefs->subpixel_rendering = params.subpixel_rendering;
+
+#if defined(OS_LINUX)
+ scoped_refptr<gfx::PlatformFont> default_font(
+ gfx::PlatformFont::CreateDefault());
+ prefs->default_font_size = default_font->GetFontSize();
+#endif // OS_LINUX
#endif
#if !defined(OS_MACOSX)
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/common/editable_text_area_shadow_test.unitjs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698