Changeset 87696 in webkit


Ignore:
Timestamp:
May 30, 2011 1:08:51 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-30 Martin Robinson <mrobinson@igalia.com>

Reviewed by Xan Lopez.

[GTK] fast/css/font-face-zero-hash-key.html is crashing on the bots
https://bugs.webkit.org/show_bug.cgi?id=61693

  • platform/gtk/Skipped: Unskip the test which is no longer crashing.

2011-05-30 Martin Robinson <mrobinson@igalia.com>

Reviewed by Xan Lopez.

[GTK] fast/css/font-face-zero-hash-key.html is crashing on the bots
https://bugs.webkit.org/show_bug.cgi?id=61693

Do not try to read the FT_Face from m_scaledFont if it m_scaledFont is
null. A recent change fixing 0-pixel-size fonts means that m_scaledFont
may now be null.

No new tests. This change should cause fast/css/font-face-zero-hash-key.html
to stop crashing.

  • platform/graphics/freetype/FontPlatformDataFreeType.cpp: (WebCore::FontPlatformData::FontPlatformData): Do a null check before accessing m_scaledFont.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87691 r87696  
     12011-05-30  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] fast/css/font-face-zero-hash-key.html is crashing on the bots
     6        https://bugs.webkit.org/show_bug.cgi?id=61693
     7
     8        * platform/gtk/Skipped: Unskip the test which is no longer crashing.
     9
    1102011-05-30  Gavin Peters  <gavinp@chromium.org>
    211
  • trunk/LayoutTests/platform/gtk/Skipped

    r87691 r87696  
    197197# https://bugs.webkit.org/show_bug.cgi?id=60158
    198198fast/dom/Geolocation/argument-types.html
    199 
    200 # Crash related to 0 pixel fonts.
    201 # https://bugs.webkit.org/show_bug.cgi?id=61693
    202 fast/css/font-face-zero-hash-key.html
    203199
    204200###############################################################################
  • trunk/Source/WebCore/ChangeLog

    r87694 r87696  
     12011-05-30  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] fast/css/font-face-zero-hash-key.html is crashing on the bots
     6        https://bugs.webkit.org/show_bug.cgi?id=61693
     7
     8        Do not try to read the FT_Face from m_scaledFont if it m_scaledFont is
     9        null. A recent change fixing 0-pixel-size fonts means that m_scaledFont
     10        may now be null.
     11
     12        No new tests. This change should cause fast/css/font-face-zero-hash-key.html
     13        to stop crashing.
     14
     15        * platform/graphics/freetype/FontPlatformDataFreeType.cpp:
     16        (WebCore::FontPlatformData::FontPlatformData): Do a null check before accessing
     17        m_scaledFont.
     18
    1192011-05-30  Noam Rosenthal  <noam.rosenthal@nokia.com>
    220
  • trunk/Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp

    r87523 r87696  
    153153    , m_syntheticBold(bold)
    154154    , m_syntheticOblique(italic)
     155    , m_fixedWidth(false)
    155156    , m_font(fontFace)
    156157    , m_scaledFont(0)
     
    158159    initializeWithFontFace(fontFace);
    159160
    160     FT_Face fontConfigFace = cairo_ft_scaled_font_lock_face(m_scaledFont);
    161     if (fontConfigFace) {
    162         m_fixedWidth = fontConfigFace->face_flags & FT_FACE_FLAG_FIXED_WIDTH;
    163         cairo_ft_scaled_font_unlock_face(m_scaledFont);
     161    if (m_scaledFont) {
     162        FT_Face fontConfigFace = cairo_ft_scaled_font_lock_face(m_scaledFont);
     163        if (fontConfigFace) {
     164            m_fixedWidth = fontConfigFace->face_flags & FT_FACE_FLAG_FIXED_WIDTH;
     165            cairo_ft_scaled_font_unlock_face(m_scaledFont);
     166        }
    164167    }
    165168}
Note: See TracChangeset for help on using the changeset viewer.