Chromium Code Reviews| Index: Source/platform/fonts/FontPlatformData.cpp |
| diff --git a/Source/platform/fonts/FontPlatformData.cpp b/Source/platform/fonts/FontPlatformData.cpp |
| index 6f22f46cb61b6de43a3c41e5d129c35d658a08ca..6a0ca255f2c998fb2840d946f0da43db626b7209 100644 |
| --- a/Source/platform/fonts/FontPlatformData.cpp |
| +++ b/Source/platform/fonts/FontPlatformData.cpp |
| @@ -49,9 +49,6 @@ FontPlatformData::FontPlatformData(WTF::HashTableDeletedValueType) |
| #if OS(MACOSX) |
| , m_isColorBitmapFont(false) |
| , m_isCompositeFontReference(false) |
| -#endif |
| - , m_widthVariant(RegularWidth) |
| -#if OS(MACOSX) |
| , m_font(nullptr) |
| #else |
| , m_style(FontRenderStyle()) |
| @@ -78,9 +75,6 @@ FontPlatformData::FontPlatformData() |
| #if OS(MACOSX) |
| , m_isColorBitmapFont(false) |
| , m_isCompositeFontReference(false) |
| -#endif |
| - , m_widthVariant(RegularWidth) |
| -#if OS(MACOSX) |
| , m_font(nullptr) |
| #else |
| , m_style(FontRenderStyle()) |
| @@ -95,7 +89,7 @@ FontPlatformData::FontPlatformData() |
| { |
| } |
| -FontPlatformData::FontPlatformData(float size, bool syntheticBold, bool syntheticItalic, FontOrientation orientation, FontWidthVariant widthVariant) |
| +FontPlatformData::FontPlatformData(float size, bool syntheticBold, bool syntheticItalic, FontOrientation orientation) |
| : m_typeface(nullptr) |
| #if !OS(WIN) |
| , m_family(CString()) |
| @@ -107,9 +101,6 @@ FontPlatformData::FontPlatformData(float size, bool syntheticBold, bool syntheti |
| #if OS(MACOSX) |
| , m_isColorBitmapFont(false) |
| , m_isCompositeFontReference(false) |
| -#endif |
| - , m_widthVariant(widthVariant) |
| -#if OS(MACOSX) |
| , m_font(nullptr) |
| #else |
| , m_style(FontRenderStyle()) |
| @@ -137,7 +128,6 @@ FontPlatformData::FontPlatformData(const FontPlatformData& source) |
| , m_isColorBitmapFont(source.m_isColorBitmapFont) |
| , m_isCompositeFontReference(source.m_isCompositeFontReference) |
| #endif |
| - , m_widthVariant(source.m_widthVariant) |
| #if !OS(MACOSX) |
| , m_style(source.m_style) |
| #endif |
| @@ -168,7 +158,6 @@ FontPlatformData::FontPlatformData(const FontPlatformData& src, float textSize) |
| , m_isColorBitmapFont(src.m_isColorBitmapFont) |
| , m_isCompositeFontReference(src.m_isCompositeFontReference) |
| #endif |
| - , m_widthVariant(RegularWidth) |
| #if !OS(MACOSX) |
| , m_style(src.m_style) |
| #endif |
| @@ -189,7 +178,7 @@ FontPlatformData::FontPlatformData(const FontPlatformData& src, float textSize) |
| } |
| #if OS(MACOSX) |
| -FontPlatformData::FontPlatformData(CGFontRef cgFont, PassRefPtr<SkTypeface> tf, float size, bool syntheticBold, bool syntheticItalic, FontOrientation orientation, FontWidthVariant widthVariant) |
| +FontPlatformData::FontPlatformData(CGFontRef cgFont, PassRefPtr<SkTypeface> tf, float size, bool syntheticBold, bool syntheticItalic, FontOrientation orientation) |
| : m_typeface(tf) |
| , m_family(CString()) |
| , m_textSize(size) |
| @@ -198,7 +187,6 @@ FontPlatformData::FontPlatformData(CGFontRef cgFont, PassRefPtr<SkTypeface> tf, |
| , m_orientation(orientation) |
| , m_isColorBitmapFont(false) |
| , m_isCompositeFontReference(false) |
| - , m_widthVariant(widthVariant) |
| , m_font(nullptr) |
| , m_cgFont(cgFont) |
| , m_isHashTableDeletedValue(false) |
| @@ -216,7 +204,6 @@ FontPlatformData::FontPlatformData(PassRefPtr<SkTypeface> tf, const char* family |
| , m_syntheticBold(syntheticBold) |
| , m_syntheticItalic(syntheticItalic) |
| , m_orientation(orientation) |
| - , m_widthVariant(RegularWidth) |
| , m_isHashTableDeletedValue(false) |
| #if OS(WIN) |
| , m_paintTextFlags(0) |
| @@ -253,14 +240,12 @@ const FontPlatformData& FontPlatformData::operator=(const FontPlatformData& othe |
| m_syntheticItalic = other.m_syntheticItalic; |
| m_harfBuzzFace = nullptr; |
| m_orientation = other.m_orientation; |
| - m_widthVariant = other.m_widthVariant; |
| #if OS(MACOSX) |
| m_isColorBitmapFont = other.m_isColorBitmapFont; |
| m_isCompositeFontReference = other.m_isCompositeFontReference; |
| #else |
| m_style = other.m_style; |
| #endif |
| - m_widthVariant = other.m_widthVariant; |
| #if OS(WIN) |
| m_paintTextFlags = 0; |
| @@ -305,7 +290,7 @@ bool FontPlatformData::operator==(const FontPlatformData& a) const |
| && m_isColorBitmapFont == a.m_isColorBitmapFont |
| && m_isCompositeFontReference == a.m_isCompositeFontReference |
|
Dominik Röttsches
2014/11/13 13:42:22
here.
bungeman-chromium
2014/11/13 17:49:43
Done.
|
| #endif |
| - && m_widthVariant == a.m_widthVariant; |
| + && true; |
|
Dominik Röttsches
2014/11/13 13:42:22
instead of this tail end.
bungeman-chromium
2014/11/13 17:49:43
Done.
|
| } |
| SkFontID FontPlatformData::uniqueID() const |