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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontPlatformData.h

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/FontPlatformData.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontPlatformData.h b/third_party/WebKit/Source/platform/fonts/FontPlatformData.h
index b2e62531090e16fef6ab8bbca6a37e738a1cfa1e..4e85939729e8e1fe33da5574ad31ea7696ab5ed9 100644
--- a/third_party/WebKit/Source/platform/fonts/FontPlatformData.h
+++ b/third_party/WebKit/Source/platform/fonts/FontPlatformData.h
@@ -84,7 +84,7 @@ public:
#if OS(MACOSX)
FontPlatformData(NSFont*, float size, bool syntheticBold = false, bool syntheticItalic = false, FontOrientation = FontOrientation::Horizontal);
#endif
- FontPlatformData(PassRefPtr<SkTypeface>, const char* name, float textSize, bool syntheticBold, bool syntheticItalic, FontOrientation = FontOrientation::Horizontal, bool subpixelTextPosition = defaultUseSubpixelPositioning());
+ FontPlatformData(PassRefPtr<SkTypeface>, const char* name, float textSize, bool syntheticBold, bool syntheticItalic, FontOrientation = FontOrientation::Horizontal);
~FontPlatformData();
#if OS(MACOSX)
@@ -145,9 +145,8 @@ public:
#endif
private:
- bool static defaultUseSubpixelPositioning();
#if !OS(MACOSX)
- void querySystemForRenderStyle(bool useSkiaSubpixelPositioning);
+ void querySystemForRenderStyle();
#endif
RefPtr<SkTypeface> m_typeface;
@@ -169,7 +168,6 @@ private:
bool m_isHashTableDeletedValue;
#if OS(WIN)
int m_paintTextFlags;
- bool m_useSubpixelPositioning;
unsigned m_minSizeForAntiAlias;
float m_minSizeForSubpixel;
#endif
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/FontCache.cpp ('k') | third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698