Changeset 58474 in webkit


Ignore:
Timestamp:
Apr 28, 2010 9:23:52 PM (14 years ago)
Author:
mitz@apple.com
Message:

Try to fix test failures seen on the Leopard build bot after r58467

Rubber-stamped by Maciej Stachowiak.

  • platform/graphics/SimpleFontData.cpp:

(WebCore::SimpleFontData::platformGlyphInit): Initialize m_zeroWidthSpaceGlyph before
calling widthForGlyph(), as the latter uses the former.

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58470 r58474  
     12010-04-28  Dan Bernstein  <mitz@apple.com>
     2
     3        Rubber-stamped by Maciej Stachowiak.
     4
     5        Try to fix test failures seen on the Leopard build bot after r58467
     6
     7        * platform/graphics/SimpleFontData.cpp:
     8        (WebCore::SimpleFontData::platformGlyphInit): Initialize m_zeroWidthSpaceGlyph before
     9        calling widthForGlyph(), as the latter uses the former.
     10
    1112010-04-28  Martin Robinson  <mrobinson@webkit.org>
    212
  • trunk/WebCore/platform/graphics/SimpleFontData.cpp

    r58467 r58474  
    144144    }
    145145
     146    m_zeroWidthSpaceGlyph = glyphPageZero->glyphDataForCharacter(0).glyph;
     147
    146148    // Nasty hack to determine if we should round or ceil space widths.
    147149    // If the font is monospace or fake monospace we ceil to ensure that
     
    158160    // Ask for the glyph for 0 to avoid paging in ZERO WIDTH SPACE. Control characters, including 0,
    159161    // are mapped to the ZERO WIDTH SPACE glyph.
    160     m_zeroWidthSpaceGlyph = glyphPageZero->glyphDataForCharacter(0).glyph;
    161162    if (m_zeroWidthSpaceGlyph == m_spaceGlyph) {
    162163        m_zeroWidthSpaceGlyph = 0;
Note: See TracChangeset for help on using the changeset viewer.