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

Unified Diff: third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinux.cpp

Issue 1930503003: Remove font subpixel positioning flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Retain test-only handling on linux Created 4 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
Index: third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinux.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinux.cpp b/third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinux.cpp
index 4ed918f05526b39ba5cc6c7ba29f6b43a5111622..d16dc21a6bc27828e7feb08be4a5e9b2ec16a2a3 100644
--- a/third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinux.cpp
+++ b/third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinux.cpp
@@ -96,7 +96,7 @@ void FontPlatformData::setupPaint(SkPaint* paint, float deviceScaleFactor, const
paint->setTextSkewX(m_syntheticItalic ? -SK_Scalar1 / 4 : 0);
}
-void FontPlatformData::querySystemForRenderStyle(bool useSkiaSubpixelPositioning)
+void FontPlatformData::querySystemForRenderStyle()
{
WebFontRenderStyle style;
#if OS(ANDROID)
@@ -133,12 +133,7 @@ void FontPlatformData::querySystemForRenderStyle(bool useSkiaSubpixelPositioning
// TestRunner specifically toggles the subpixel positioning flag.
if (m_style.useSubpixelPositioning == FontRenderStyle::NoPreference
|| LayoutTestSupport::isRunningLayoutTest())
- m_style.useSubpixelPositioning = useSkiaSubpixelPositioning;
-}
-
-bool FontPlatformData::defaultUseSubpixelPositioning()
-{
- return FontDescription::subpixelPositioning();
+ m_style.useSubpixelPositioning = FontDescription::subpixelPositioning();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698