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

Unified Diff: content/renderer/renderer_main_platform_delegate_win.cc

Issue 248593002: [DirectWrite] Force subpixel font sizing to on when DW is enabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: content/renderer/renderer_main_platform_delegate_win.cc
diff --git a/content/renderer/renderer_main_platform_delegate_win.cc b/content/renderer/renderer_main_platform_delegate_win.cc
index 3503fdd3ded81a4f4a5585ba6a64523147b7345f..77d5a34e159df17dcbd49b829489751918a8acb0 100644
--- a/content/renderer/renderer_main_platform_delegate_win.cc
+++ b/content/renderer/renderer_main_platform_delegate_win.cc
@@ -19,6 +19,7 @@
#include "content/renderer/render_thread_impl.h"
#include "sandbox/win/src/sandbox.h"
#include "skia/ext/vector_platform_device_emf_win.h"
+#include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
#include "third_party/WebKit/public/web/win/WebFontRendering.h"
#include "third_party/icu/source/i18n/unicode/timezone.h"
#include "third_party/skia/include/ports/SkFontMgr.h"
@@ -103,7 +104,9 @@ void RendererMainPlatformDelegate::PlatformInitialize() {
}
}
blink::WebFontRendering::setUseDirectWrite(use_direct_write);
- blink::WebFontRendering::setUseSubpixelPositioning(use_direct_write);
+ if (use_direct_write) {
+ blink::WebRuntimeFeatures::enableSubpixelFontScaling(true);
+ }
}
void RendererMainPlatformDelegate::PlatformUninitialize() {
« 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