Changeset 179006 in webkit


Ignore:
Timestamp:
Jan 23, 2015 2:33:33 AM (9 years ago)
Author:
commit-queue@webkit.org
Message:

Initialization for some member variable of FontPlatformData
https://bugs.webkit.org/show_bug.cgi?id=136327

Patch by Byeongha Cho <byeongha.cho@samsung.com> on 2015-01-23
Reviewed by Myles C. Maxfield.

No new tests. There's no functional change.

  • platform/graphics/freetype/FontPlatformDataFreeType.cpp:

(WebCore::FontPlatformData::FontPlatformData):
(WebCore::FontPlatformData::operator=):
(WebCore::FontPlatformData::~FontPlatformData):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r178988 r179006  
     12015-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
    1152015-01-23  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
    216
  • trunk/Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp

    r175261 r179006  
    128128FontPlatformData::FontPlatformData(FcPattern* pattern, const FontDescription& fontDescription)
    129129    : m_pattern(pattern)
    130     , m_fallbacks(0)
     130    , m_fallbacks(nullptr)
    131131    , m_size(fontDescription.computedPixelSize())
    132132    , m_syntheticBold(false)
    133133    , m_syntheticOblique(false)
    134134    , m_fixedWidth(false)
    135     , m_scaledFont(0)
     135    , m_scaledFont(nullptr)
    136136    , m_orientation(fontDescription.orientation())
    137137{
     
    157157
    158158FontPlatformData::FontPlatformData(float size, bool bold, bool italic)
    159     : m_fallbacks(0)
     159    : m_fallbacks(nullptr)
    160160    , m_size(size)
    161161    , m_syntheticBold(bold)
    162162    , m_syntheticOblique(italic)
    163163    , m_fixedWidth(false)
    164     , m_scaledFont(0)
     164    , m_scaledFont(nullptr)
    165165    , m_orientation(Horizontal)
    166166{
     
    169169
    170170FontPlatformData::FontPlatformData(cairo_font_face_t* fontFace, float size, bool bold, bool italic, FontOrientation orientation)
    171     : m_fallbacks(0)
     171    : m_fallbacks(nullptr)
    172172    , m_size(size)
    173173    , m_syntheticBold(bold)
    174174    , m_syntheticOblique(italic)
    175175    , m_fixedWidth(false)
    176     , m_scaledFont(0)
     176    , m_scaledFont(nullptr)
    177177    , m_orientation(orientation)
    178178{
     
    203203        FcFontSetDestroy(m_fallbacks);
    204204        // This will be re-created on demand.
    205         m_fallbacks = 0;
     205        m_fallbacks = nullptr;
    206206    }
    207207
     
    216216
    217217FontPlatformData::FontPlatformData(const FontPlatformData& other)
    218     : m_fallbacks(0)
    219     , m_scaledFont(0)
     218    : m_fallbacks(nullptr)
     219    , m_scaledFont(nullptr)
    220220    , m_harfBuzzFace(other.m_harfBuzzFace)
    221221{
     
    224224
    225225FontPlatformData::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)
    227229{
    228230    *this = other;
     
    238240    if (m_fallbacks) {
    239241        FcFontSetDestroy(m_fallbacks);
    240         m_fallbacks = 0;
     242        m_fallbacks = nullptr;
    241243    }
    242244
Note: See TracChangeset for help on using the changeset viewer.