Changeset 193484 in webkit


Ignore:
Timestamp:
Dec 4, 2015, 3:52:28 PM (10 years ago)
Author:
mmaxfield@apple.com
Message:

[Cocoa] Some fonts cause CTFontCopyAvailableTables() to return nullptr
https://bugs.webkit.org/show_bug.cgi?id=151884
<rdar://problem/23752253>

Reviewed by Brian Burg.

No new tests.

  • platform/graphics/opentype/OpenTypeCG.cpp:

(WebCore::OpenType::fontHasMathTable):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r193482 r193484  
     12015-12-04  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        [Cocoa] Some fonts cause CTFontCopyAvailableTables() to return nullptr
     4        https://bugs.webkit.org/show_bug.cgi?id=151884
     5        <rdar://problem/23752253>
     6
     7        Reviewed by Brian Burg.
     8
     9        No new tests.
     10
     11        * platform/graphics/opentype/OpenTypeCG.cpp:
     12        (WebCore::OpenType::fontHasMathTable):
     13
    1142015-12-04  Jer Noble  <jer.noble@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/opentype/OpenTypeCG.cpp

    r192017 r193484  
    4040{
    4141    RetainPtr<CFArrayRef> tableTags = adoptCF(CTFontCopyAvailableTables(ctFont, kCTFontTableOptionNoOptions));
     42    if (!tableTags)
     43        return false;
    4244    CFIndex numTables = CFArrayGetCount(tableTags.get());
    4345    for (CFIndex index = 0; index < numTables; ++index) {
Note: See TracChangeset for help on using the changeset viewer.