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

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

Issue 2797423005: Always use original ascent/descent for FontMetrics::floatAscent|floatDescent (Closed)
Patch Set: Created 3 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/FontDescription.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontDescription.h b/third_party/WebKit/Source/platform/fonts/FontDescription.h
index d5ac5333df3bc91f7068b8d5369009ba1fa84a89..2530c78eebd8267c2278f1593ed688504505f3ee 100644
--- a/third_party/WebKit/Source/platform/fonts/FontDescription.h
+++ b/third_party/WebKit/Source/platform/fonts/FontDescription.h
@@ -301,14 +301,6 @@ class PLATFORM_EXPORT FontDescription {
}
static bool subpixelPositioning() { return s_useSubpixelTextPositioning; }
- void setSubpixelAscentDescent(bool sp) const {
- m_fields.m_subpixelAscentDescent = sp;
- }
-
- bool subpixelAscentDescent() const {
- return m_fields.m_subpixelAscentDescent;
- }
-
static void setDefaultTypesettingFeatures(TypesettingFeatures);
static TypesettingFeatures defaultTypesettingFeatures();
@@ -381,7 +373,6 @@ class PLATFORM_EXPORT FontDescription {
unsigned m_subpixelTextPosition : 1;
unsigned m_typesettingFeatures : 3;
unsigned m_variantNumeric : 8;
- mutable unsigned m_subpixelAscentDescent : 1;
};
static_assert(sizeof(BitFields) == sizeof(FieldsAsUnsignedType),

Powered by Google App Engine
This is Rietveld 408576698