Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |