Changeset 255219 in webkit


Ignore:
Timestamp:
Jan 27, 2020 6:07:06 PM (4 years ago)
Author:
Jonathan Bedard
Message:

WebCore: Remove iOS 11 macros from RenderThemeIOS.mm
https://bugs.webkit.org/show_bug.cgi?id=206787

Reviewed by Darin Adler.

Source/WebCore:

No functional changes, covered by existing tests.

  • rendering/RenderThemeIOS.mm:

(WebCore::RenderThemeIOS::cachedSystemFontDescription const):
(WebCore::RenderThemeIOS::updateCachedSystemFontDescription const):

Source/WTF:

  • wtf/PlatformHave.h: Add HAVE(SYSTEM_FONT_STYLE_TITLE_0) and HAVE(SYSTEM_FONT_STYLE_TITLE_4).
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r255216 r255219  
     12020-01-27  Jonathan Bedard  <jbedard@apple.com>
     2
     3        WebCore: Remove iOS 11 macros from RenderThemeIOS.mm
     4        https://bugs.webkit.org/show_bug.cgi?id=206787
     5
     6        Reviewed by Darin Adler.
     7
     8        * wtf/PlatformHave.h: Add HAVE(SYSTEM_FONT_STYLE_TITLE_0) and HAVE(SYSTEM_FONT_STYLE_TITLE_4).
     9
    1102020-01-27  Jonathan Bedard  <jbedard@apple.com>
    211
  • trunk/Source/WTF/wtf/PlatformHave.h

    r255073 r255219  
    566566#define HAVE_OS_SIGNPOST 1
    567567#endif
     568
     569#if PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
     570#define HAVE_SYSTEM_FONT_STYLE_TITLE_0 1
     571#define HAVE_SYSTEM_FONT_STYLE_TITLE_4 1
     572#endif
  • trunk/Source/WebCore/ChangeLog

    r255212 r255219  
     12020-01-27  Jonathan Bedard  <jbedard@apple.com>
     2
     3        WebCore: Remove iOS 11 macros from RenderThemeIOS.mm
     4        https://bugs.webkit.org/show_bug.cgi?id=206787
     5
     6        Reviewed by Darin Adler.
     7
     8        No functional changes, covered by existing tests.
     9
     10        * rendering/RenderThemeIOS.mm:
     11        (WebCore::RenderThemeIOS::cachedSystemFontDescription const):
     12        (WebCore::RenderThemeIOS::updateCachedSystemFontDescription const):
     13
    1142020-01-27  Devin Rousso  <drousso@apple.com>
    215
  • trunk/Source/WebCore/rendering/RenderThemeIOS.mm

    r254373 r255219  
    11641164    static NeverDestroyed<FontCascadeDescription> shortCaption1Font;
    11651165    static NeverDestroyed<FontCascadeDescription> tallBodyFont;
    1166 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
     1166#if HAVE(SYSTEM_FONT_STYLE_TITLE_0)
    11671167    static NeverDestroyed<FontCascadeDescription> title0Font;
    11681168#endif
     
    11701170    static NeverDestroyed<FontCascadeDescription> title2Font;
    11711171    static NeverDestroyed<FontCascadeDescription> title3Font;
    1172 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
     1172#if HAVE(SYSTEM_FONT_STYLE_TITLE_4)
    11731173    static NeverDestroyed<FontCascadeDescription> title4Font;
    11741174#endif
     
    11981198    case CSSValueAppleSystemBody:
    11991199        return bodyFont;
    1200 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
     1200#if HAVE(SYSTEM_FONT_STYLE_TITLE_0)
    12011201    case CSSValueAppleSystemTitle0:
    12021202        return title0Font;
     
    12081208    case CSSValueAppleSystemTitle3:
    12091209        return title3Font;
    1210 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
     1210#if HAVE(SYSTEM_FONT_STYLE_TITLE_4)
    12111211    case CSSValueAppleSystemTitle4:
    12121212        return title4Font;
     
    12671267        fontDescriptor = adoptCF(CTFontDescriptorCreateWithTextStyle(textStyle, contentSizeCategory(), nullptr));
    12681268        break;
    1269 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
     1269#if HAVE(SYSTEM_FONT_STYLE_TITLE_0)
    12701270    case CSSValueAppleSystemTitle0:
    12711271        textStyle = kCTUIFontTextStyleTitle0;
     
    12851285        fontDescriptor = adoptCF(CTFontDescriptorCreateWithTextStyle(textStyle, contentSizeCategory(), nullptr));
    12861286        break;
    1287 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
     1287#if HAVE(SYSTEM_FONT_STYLE_TITLE_4)
    12881288    case CSSValueAppleSystemTitle4:
    12891289        textStyle = kCTUIFontTextStyleTitle4;
Note: See TracChangeset for help on using the changeset viewer.