Changeset 179006 in webkit
- Timestamp:
- Jan 23, 2015 2:33:33 AM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r178988 r179006 1 2015-01-23 Byeongha Cho <byeongha.cho@samsung.com> 2 3 Initialization for some member variable of FontPlatformData 4 https://bugs.webkit.org/show_bug.cgi?id=136327 5 6 Reviewed by Myles C. Maxfield. 7 8 No new tests. There's no functional change. 9 10 * platform/graphics/freetype/FontPlatformDataFreeType.cpp: 11 (WebCore::FontPlatformData::FontPlatformData): 12 (WebCore::FontPlatformData::operator=): 13 (WebCore::FontPlatformData::~FontPlatformData): 14 1 15 2015-01-23 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 16 -
trunk/Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp
r175261 r179006 128 128 FontPlatformData::FontPlatformData(FcPattern* pattern, const FontDescription& fontDescription) 129 129 : m_pattern(pattern) 130 , m_fallbacks( 0)130 , m_fallbacks(nullptr) 131 131 , m_size(fontDescription.computedPixelSize()) 132 132 , m_syntheticBold(false) 133 133 , m_syntheticOblique(false) 134 134 , m_fixedWidth(false) 135 , m_scaledFont( 0)135 , m_scaledFont(nullptr) 136 136 , m_orientation(fontDescription.orientation()) 137 137 { … … 157 157 158 158 FontPlatformData::FontPlatformData(float size, bool bold, bool italic) 159 : m_fallbacks( 0)159 : m_fallbacks(nullptr) 160 160 , m_size(size) 161 161 , m_syntheticBold(bold) 162 162 , m_syntheticOblique(italic) 163 163 , m_fixedWidth(false) 164 , m_scaledFont( 0)164 , m_scaledFont(nullptr) 165 165 , m_orientation(Horizontal) 166 166 { … … 169 169 170 170 FontPlatformData::FontPlatformData(cairo_font_face_t* fontFace, float size, bool bold, bool italic, FontOrientation orientation) 171 : m_fallbacks( 0)171 : m_fallbacks(nullptr) 172 172 , m_size(size) 173 173 , m_syntheticBold(bold) 174 174 , m_syntheticOblique(italic) 175 175 , m_fixedWidth(false) 176 , m_scaledFont( 0)176 , m_scaledFont(nullptr) 177 177 , m_orientation(orientation) 178 178 { … … 203 203 FcFontSetDestroy(m_fallbacks); 204 204 // This will be re-created on demand. 205 m_fallbacks = 0;205 m_fallbacks = nullptr; 206 206 } 207 207 … … 216 216 217 217 FontPlatformData::FontPlatformData(const FontPlatformData& other) 218 : m_fallbacks( 0)219 , m_scaledFont( 0)218 : m_fallbacks(nullptr) 219 , m_scaledFont(nullptr) 220 220 , m_harfBuzzFace(other.m_harfBuzzFace) 221 221 { … … 224 224 225 225 FontPlatformData::FontPlatformData(const FontPlatformData& other, float size) 226 : m_harfBuzzFace(other.m_harfBuzzFace) 226 : m_fallbacks(nullptr) 227 , m_scaledFont(nullptr) 228 , m_harfBuzzFace(other.m_harfBuzzFace) 227 229 { 228 230 *this = other; … … 238 240 if (m_fallbacks) { 239 241 FcFontSetDestroy(m_fallbacks); 240 m_fallbacks = 0;242 m_fallbacks = nullptr; 241 243 } 242 244
Note: See TracChangeset
for help on using the changeset viewer.