Changeset 187807 in webkit


Ignore:
Timestamp:
Aug 3, 2015 9:40:13 PM (9 years ago)
Author:
mmaxfield@apple.com
Message:

Fix crashing Mavericks test

Unreviewed.

  • platform/graphics/cocoa/FontPlatformDataCocoa.mm:

(WebCore::FontPlatformData::registeredFont):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r187806 r187807  
     12015-08-03  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Fix crashing Mavericks test
     4
     5        Unreviewed.
     6
     7        * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
     8        (WebCore::FontPlatformData::registeredFont):
     9
    1102015-08-03  Myles C. Maxfield  <mmaxfield@apple.com>
    211
  • trunk/Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm

    r187806 r187807  
    9595{
    9696    CTFontRef platformFont = font();
    97     ASSERT(platformFont);
    98     if (adoptCF(CTFontCopyAttribute(platformFont, kCTFontURLAttribute)))
     97    ASSERT(!CORETEXT_WEB_FONTS || platformFont);
     98    if (platformFont && adoptCF(CTFontCopyAttribute(platformFont, kCTFontURLAttribute)))
    9999        return platformFont;
    100100    return nullptr;
Note: See TracChangeset for help on using the changeset viewer.