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

Unified Diff: third_party/WebKit/Source/web/win/WebFontRendering.cpp

Issue 1763803002: Pass Windows font rendering preferences from browser to blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: third_party/WebKit/Source/web/win/WebFontRendering.cpp
diff --git a/third_party/WebKit/Source/web/win/WebFontRendering.cpp b/third_party/WebKit/Source/web/win/WebFontRendering.cpp
index fe597f3ee5cd739b75dae7e8d8840ad0caafa321..c02d59d145eac7499f8a6fe4277b5066425ddf86 100644
--- a/third_party/WebKit/Source/web/win/WebFontRendering.cpp
+++ b/third_party/WebKit/Source/web/win/WebFontRendering.cpp
@@ -63,4 +63,16 @@ void WebFontRendering::setLCDOrientation(SkFontHost::LCDOrientation orientation)
SkFontHost::SetSubpixelOrientation(orientation);
}
+// static
+void WebFontRendering::setAntialiasedTextEnabled(bool enabled)
+{
+ FontCache::setAntialiasedTextEnabled(enabled);
+}
+
+// static
+void WebFontRendering::setLCDTextEnabled(bool enabled)
+{
+ FontCache::setLCDTextEnabled(enabled);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698