Changeset 283197 in webkit


Ignore:
Timestamp:
Sep 28, 2021 3:03:46 PM (10 months ago)
Author:
mmaxfield@apple.com
Message:

Negative integers in @font-palette-values are invalid
https://bugs.webkit.org/show_bug.cgi?id=230788

Reviewed by Simon Fraser.
<rdar://problem/83528806>

Addressing post-commit review.

No new tests because there is no behavior change.

  • platform/graphics/cocoa/FontCacheCoreText.cpp:

(WebCore::addAttributesForFontPalettes):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r283193 r283197  
     12021-09-28  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Negative integers in @font-palette-values are invalid
     4        https://bugs.webkit.org/show_bug.cgi?id=230788
     5
     6        Reviewed by Simon Fraser.
     7        <rdar://problem/83528806>
     8
     9        Addressing post-commit review.
     10
     11        No new tests because there is no behavior change.
     12
     13        * platform/graphics/cocoa/FontCacheCoreText.cpp:
     14        (WebCore::addAttributesForFontPalettes):
     15
    1162021-09-28  Cameron McCormack  <heycam@apple.com>
    217
  • trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp

    r283188 r283197  
    453453        break;
    454454    case FontPalette::Type::Light: {
    455         auto light = kCTFontPaletteLight;
     455        CFIndex light = kCTFontPaletteLight;
    456456        auto number = adoptCF(CFNumberCreate(kCFAllocatorDefault, kCFNumberCFIndexType, &light));
    457457        CFDictionaryAddValue(attributes, kCTFontPaletteAttribute, number.get());
     
    459459    }
    460460    case FontPalette::Type::Dark: {
    461         auto dark = kCTFontPaletteDark;
     461        CFIndex dark = kCTFontPaletteDark;
    462462        auto number = adoptCF(CFNumberCreate(kCFAllocatorDefault, kCFNumberCFIndexType, &dark));
    463463        CFDictionaryAddValue(attributes, kCTFontPaletteAttribute, number.get());
Note: See TracChangeset for help on using the changeset viewer.