Changeset 89933 in webkit


Ignore:
Timestamp:
Jun 28, 2011 8:56:42 AM (13 years ago)
Author:
mitz@apple.com
Message:

REGRESSION (r89733): fast/text/zero-font-size.html is failing on Leopard
https://bugs.webkit.org/show_bug.cgi?id=63512

Reviewed by Darin Adler.

  • platform/graphics/mac/SimpleFontDataMac.mm:

(WebCore::SimpleFontData::platformWidthForGlyph): Initialize the advance local variable, because
on Leopard wkGetGlyphTransformedAdvances can return successfully yet not update the variable when
the font size is 0. Presumably, r89733 exposed this by changing the values put on the stack just
before this function is called.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r89922 r89933  
     12011-06-28  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        REGRESSION (r89733): fast/text/zero-font-size.html is failing on Leopard
     6        https://bugs.webkit.org/show_bug.cgi?id=63512
     7
     8        * platform/graphics/mac/SimpleFontDataMac.mm:
     9        (WebCore::SimpleFontData::platformWidthForGlyph): Initialize the advance local variable, because
     10        on Leopard wkGetGlyphTransformedAdvances can return successfully yet not update the variable when
     11        the font size is 0. Presumably, r89733 exposed this by changing the values put on the stack just
     12        before this function is called.
     13
    1142011-06-27  Alexander Pavlov  <apavlov@chromium.org>
    215
  • trunk/Source/WebCore/platform/graphics/mac/SimpleFontDataMac.mm

    r89732 r89933  
    400400float SimpleFontData::platformWidthForGlyph(Glyph glyph) const
    401401{
    402     CGSize advance;
     402    CGSize advance = CGSizeZero;
    403403    if (platformData().orientation() == Horizontal || m_isBrokenIdeographFallback) {
    404404        NSFont* font = platformData().font();
Note: See TracChangeset for help on using the changeset viewer.