| Index: third_party/WebKit/Source/platform/fonts/win/FontPlatformDataWin.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/win/FontPlatformDataWin.cpp b/third_party/WebKit/Source/platform/fonts/win/FontPlatformDataWin.cpp
|
| index 9e7e6c04bdc4df7ab595975ac2bfdf7f0f761346..285cb0b6c44caffbbf24a4fb4abef30f2e11549b 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/win/FontPlatformDataWin.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/win/FontPlatformDataWin.cpp
|
| @@ -62,11 +62,10 @@ void FontPlatformData::setupPaint(SkPaint* paint, float, const Font*) const
|
|
|
| if (ts >= m_minSizeForAntiAlias) {
|
|
|
| - if (m_useSubpixelPositioning
|
| - // Disable subpixel text for certain older fonts at smaller sizes as
|
| - // they tend to get quite blurry at non-integer sizes and positions.
|
| - // For high-DPI this workaround isn't required.
|
| - && (ts >= m_minSizeForSubpixel
|
| + // Disable subpixel text for certain older fonts at smaller sizes as
|
| + // they tend to get quite blurry at non-integer sizes and positions.
|
| + // For high-DPI this workaround isn't required.
|
| + if ((ts >= m_minSizeForSubpixel
|
| || FontCache::fontCache()->deviceScaleFactor() >= 1.5)
|
|
|
| // Subpixel text positioning looks pretty bad without font
|
| @@ -117,14 +116,9 @@ static int computePaintTextFlags(String fontFamilyName)
|
| }
|
|
|
|
|
| -void FontPlatformData::querySystemForRenderStyle(bool)
|
| +void FontPlatformData::querySystemForRenderStyle()
|
| {
|
| m_paintTextFlags = computePaintTextFlags(fontFamilyName());
|
| }
|
|
|
| -bool FontPlatformData::defaultUseSubpixelPositioning()
|
| -{
|
| - return FontCache::fontCache()->useSubpixelPositioning();
|
| -}
|
| -
|
| } // namespace blink
|
|
|