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

Side by Side Diff: content/renderer/render_view_linux.cc

Issue 549303004: Allow default font size changing on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « content/public/common/renderer_preferences.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include "content/public/common/renderer_preferences.h" 7 #include "content/public/common/renderer_preferences.h"
8 #include "third_party/WebKit/public/web/linux/WebFontRendering.h" 8 #include "third_party/WebKit/public/web/linux/WebFontRendering.h"
9 9
10 using blink::WebFontRendering; 10 using blink::WebFontRendering;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 WebFontRendering::setAutoHint(prefs.use_autohinter); 83 WebFontRendering::setAutoHint(prefs.use_autohinter);
84 WebFontRendering::setUseBitmaps(prefs.use_bitmaps); 84 WebFontRendering::setUseBitmaps(prefs.use_bitmaps);
85 WebFontRendering::setLCDOrder(RendererPreferencesToSkiaLCDOrder(prefs)); 85 WebFontRendering::setLCDOrder(RendererPreferencesToSkiaLCDOrder(prefs));
86 WebFontRendering::setLCDOrientation( 86 WebFontRendering::setLCDOrientation(
87 RendererPreferencesToSkiaLCDOrientation(prefs)); 87 RendererPreferencesToSkiaLCDOrientation(prefs));
88 WebFontRendering::setAntiAlias(prefs.should_antialias_text); 88 WebFontRendering::setAntiAlias(prefs.should_antialias_text);
89 WebFontRendering::setSubpixelRendering( 89 WebFontRendering::setSubpixelRendering(
90 prefs.subpixel_rendering != 90 prefs.subpixel_rendering !=
91 gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE); 91 gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE);
92 WebFontRendering::setSubpixelPositioning(prefs.use_subpixel_positioning); 92 WebFontRendering::setSubpixelPositioning(prefs.use_subpixel_positioning);
93 if (prefs.default_font_size)
94 WebFontRendering::setDefaultFontSize(prefs.default_font_size);
jln (very slow on Chromium) 2014/09/15 19:25:09 Could you add some basic sanity-checking on the fo
93 } 95 }
94 96
95 } // namespace content 97 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/renderer_preferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698