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

Unified Diff: ui/gfx/font_render_params_linux.cc

Issue 1020263004: Force --enable-webkit-text-subpixel-positioning for DSF > 1.0. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_render_params_linux.cc
diff --git a/ui/gfx/font_render_params_linux.cc b/ui/gfx/font_render_params_linux.cc
index ed338d66cbcbc46f553d1afd3ec22bd40a0127a1..a3fb63b97008d4dd1ce50952d4804dbd4cd380a9 100644
--- a/ui/gfx/font_render_params_linux.cc
+++ b/ui/gfx/font_render_params_linux.cc
@@ -250,11 +250,7 @@ FontRenderParams GetFontRenderParams(const FontRenderParamsQuery& query,
} else {
// Fontconfig doesn't support configuring subpixel positioning; check a
// flag.
Daniel Erat 2015/03/20 23:51:50 please delete this now-obsolete comment.
stapelberg 2015/03/31 18:11:57 Done.
- params.subpixel_positioning =
- actual_query.for_web_contents
- ? base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebkitTextSubpixelPositioning)
Daniel Erat 2015/03/20 23:51:50 this looks like it was the only place where this f
stapelberg 2015/03/31 18:11:57 Done.
- : actual_query.device_scale_factor > 1.0f;
+ params.subpixel_positioning = actual_query.device_scale_factor > 1.0f;
// To enable subpixel positioning, we need to disable hinting.
if (params.subpixel_positioning)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698