Changeset 91229 in webkit


Ignore:
Timestamp:
Jul 18, 2011 6:21:02 PM (13 years ago)
Author:
mitz@apple.com
Message:

REGRESSION(91209?): fast/css/custom-font-xheight.html is failing on Leopard
https://bugs.webkit.org/show_bug.cgi?id=64767

Reviewed by Sam Weinig.

  • platform/graphics/Font.h:
  • platform/graphics/cocoa/FontPlatformDataCocoa.mm:

(WebCore::FontPlatformData::ctFont): Undo the cascade list optimization on Leopard for custom
fonts, because adding a cascade list apparently breaks the font.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r91228 r91229  
     12011-07-18  Dan Bernstein  <mitz@apple.com>
     2
     3        REGRESSION(91209?): fast/css/custom-font-xheight.html is failing on Leopard
     4        https://bugs.webkit.org/show_bug.cgi?id=64767
     5
     6        Reviewed by Sam Weinig.
     7
     8        * platform/graphics/Font.h:
     9        * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
     10        (WebCore::FontPlatformData::ctFont): Undo the cascade list optimization on Leopard for custom
     11        fonts, because adding a cascade list apparently breaks the font.
     12
    1132011-07-18  Matthew Delaney  <mdelaney@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm

    r91209 r91229  
    201201    if (m_CTFont)
    202202        m_CTFont.adoptCF(CTFontCreateCopyWithAttributes(m_CTFont.get(), m_size, 0, cascadeToLastResortFontDescriptor()));
    203     else
     203    else {
     204#if !defined(BUILDING_ON_LEOPARD)
    204205        m_CTFont.adoptCF(CTFontCreateWithGraphicsFont(m_cgFont.get(), m_size, 0, cascadeToLastResortFontDescriptor()));
     206#else
     207        m_CTFont.adoptCF(CTFontCreateWithGraphicsFont(m_cgFont.get(), m_size, 0, 0);
     208#endif
     209    }
    205210
    206211    if (m_widthVariant != RegularWidth) {
Note: See TracChangeset for help on using the changeset viewer.