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

Unified Diff: chrome/browser/renderer_preferences_util.cc

Issue 789583002: Updates subpixel positioning and hinting when DSF is changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN Created 6 years 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: chrome/browser/renderer_preferences_util.cc
diff --git a/chrome/browser/renderer_preferences_util.cc b/chrome/browser/renderer_preferences_util.cc
index bf1e2e082c6189add5c3457989da0cbdf16bd8ef..46ea6a2e243feef7ad7f022e4dfc0412212dcbbd 100644
--- a/chrome/browser/renderer_preferences_util.cc
+++ b/chrome/browser/renderer_preferences_util.cc
@@ -94,8 +94,8 @@ void UpdateFromSystemSettings(content::RendererPreferences* prefs,
#endif
#if defined(OS_LINUX) || defined(OS_ANDROID)
- CR_DEFINE_STATIC_LOCAL(const gfx::FontRenderParams, params,
- (gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(true), NULL)));
+ const gfx::FontRenderParams params =
+ gfx::GetCurrentFontRenderParams(gfx::FontRenderParamsQuery(true), NULL);
prefs->should_antialias_text = params.antialiasing;
prefs->use_subpixel_positioning = params.subpixel_positioning;
prefs->hinting = params.hinting;

Powered by Google App Engine
This is Rietveld 408576698