Changeset 227995 in webkit


Ignore:
Timestamp:
Feb 1, 2018 8:46:23 PM (6 years ago)
Author:
mmaxfield@apple.com
Message:

Test fix after r227848.
https://bugs.webkit.org/show_bug.cgi?id=180951

Unreviewed.

Using kCTFontNameAttribute on an in-memory font causes CTFontDescriptorCreateMatchingFontDescriptor()
to return nullptr. Luckily, we weren't using that attribute anyway.

Covered by existing tests.

  • platform/graphics/cocoa/FontCacheCoreText.cpp:

(WebCore::mandatoryAttributesForUserInstalledFonts):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r227989 r227995  
     12018-02-01  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Test fix after r227848.
     4        https://bugs.webkit.org/show_bug.cgi?id=180951
     5
     6        Unreviewed.
     7
     8        Using kCTFontNameAttribute on an in-memory font causes CTFontDescriptorCreateMatchingFontDescriptor()
     9        to return nullptr. Luckily, we weren't using that attribute anyway.
     10
     11        Covered by existing tests.
     12
     13        * platform/graphics/cocoa/FontCacheCoreText.cpp:
     14        (WebCore::mandatoryAttributesForUserInstalledFonts):
     15
    1162018-02-01  Youenn Fablet  <youenn@apple.com>
    217
  • trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp

    r227848 r227995  
    14331433#if CAN_DISALLOW_USER_INSTALLED_FONTS
    14341434    if (allowUserInstalledFonts == AllowUserInstalledFonts::No) {
    1435         CFTypeRef mandatoryAttributesValues[] = { kCTFontFamilyNameAttribute, kCTFontPostScriptNameAttribute, kCTFontNameAttribute, kCTFontEnabledAttribute, kCTFontUserInstalledAttribute, kCTFontFallbackOptionAttribute };
     1435        CFTypeRef mandatoryAttributesValues[] = { kCTFontFamilyNameAttribute, kCTFontPostScriptNameAttribute, kCTFontEnabledAttribute, kCTFontUserInstalledAttribute, kCTFontFallbackOptionAttribute };
    14361436        return adoptCF(CFSetCreate(kCFAllocatorDefault, mandatoryAttributesValues, WTF_ARRAY_LENGTH(mandatoryAttributesValues), &kCFTypeSetCallBacks));
    14371437    }
Note: See TracChangeset for help on using the changeset viewer.