Changeset 285820 in webkit
- Timestamp:
- Nov 15, 2021, 12:15:22 PM (5 years ago)
- Location:
- branches/safari-613.1.8-branch/Source/WebCore/PAL
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
pal/spi/cocoa/NSAttributedStringSPI.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-613.1.8-branch/Source/WebCore/PAL/ChangeLog
r285319 r285820 1 2021-11-15 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r285744. rdar://problem/85422144 4 5 Stop statically declaring various UIFoundation constants in NSAttributedStringSPI.h 6 https://bugs.webkit.org/show_bug.cgi?id=233064 7 rdar://85341122 8 9 Reviewed by Tim Horton. 10 11 Replace these static NSString definitions with soft-linked constants instead. 12 13 * pal/spi/cocoa/NSAttributedStringSPI.h: 14 15 16 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285744 268f45cc-cd09-0410-ab3c-d52691b4dbfc 17 18 2021-11-12 Wenson Hsieh <wenson_hsieh@apple.com> 19 20 Stop statically declaring various UIFoundation constants in NSAttributedStringSPI.h 21 https://bugs.webkit.org/show_bug.cgi?id=233064 22 rdar://85341122 23 24 Reviewed by Tim Horton. 25 26 Replace these static NSString definitions with soft-linked constants instead. 27 28 * pal/spi/cocoa/NSAttributedStringSPI.h: 29 1 30 2021-11-04 Dean Jackson <dino@apple.com> 2 31 -
branches/safari-613.1.8-branch/Source/WebCore/PAL/pal/spi/cocoa/NSAttributedStringSPI.h
r261138 r285820 96 96 SOFT_LINK_CONSTANT(UIFoundation, NSTextAlternativesAttributeName, NSString *) 97 97 #define NSTextAlternativesAttributeName getNSTextAlternativesAttributeName() 98 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerCircle, NSString *) 99 #define NSTextListMarkerCircle getNSTextListMarkerCircle() 100 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerDisc, NSString *) 101 #define NSTextListMarkerDisc getNSTextListMarkerDisc() 102 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerSquare, NSString *) 103 #define NSTextListMarkerSquare getNSTextListMarkerSquare() 104 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerLowercaseHexadecimal, NSString *) 105 #define NSTextListMarkerLowercaseHexadecimal getNSTextListMarkerLowercaseHexadecimal() 106 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerUppercaseHexadecimal, NSString *) 107 #define NSTextListMarkerUppercaseHexadecimal getNSTextListMarkerUppercaseHexadecimal() 108 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerOctal, NSString *) 109 #define NSTextListMarkerOctal getNSTextListMarkerOctal() 110 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerLowercaseAlpha, NSString *) 111 #define NSTextListMarkerLowercaseAlpha getNSTextListMarkerLowercaseAlpha() 112 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerUppercaseAlpha, NSString *) 113 #define NSTextListMarkerUppercaseAlpha getNSTextListMarkerUppercaseAlpha() 114 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerLowercaseLatin, NSString *) 115 #define NSTextListMarkerLowercaseLatin getNSTextListMarkerLowercaseLatin() 116 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerUppercaseLatin, NSString *) 117 #define NSTextListMarkerUppercaseLatin getNSTextListMarkerUppercaseLatin() 118 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerLowercaseRoman, NSString *) 119 #define NSTextListMarkerLowercaseRoman getNSTextListMarkerLowercaseRoman() 120 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerUppercaseRoman, NSString *) 121 #define NSTextListMarkerUppercaseRoman getNSTextListMarkerUppercaseRoman() 122 SOFT_LINK_CONSTANT(UIFoundation, NSTextListMarkerDecimal, NSString *) 123 #define NSTextListMarkerDecimal getNSTextListMarkerDecimal() 98 124 99 125 // We don't softlink NSSuperscriptAttributeName because UIFoundation stopped exporting it. … … 112 138 @end 113 139 114 static NSString *const NSTextListMarkerCircle = @"{circle}";115 static NSString *const NSTextListMarkerDisc = @"{disc}";116 static NSString *const NSTextListMarkerSquare = @"{square}";117 static NSString *const NSTextListMarkerLowercaseHexadecimal = @"{lower-hexadecimal}";118 static NSString *const NSTextListMarkerUppercaseHexadecimal = @"{upper-hexadecimal}";119 static NSString *const NSTextListMarkerOctal = @"{octal}";120 static NSString *const NSTextListMarkerLowercaseAlpha = @"{lower-alpha}";121 static NSString *const NSTextListMarkerUppercaseAlpha = @"{upper-alpha}";122 static NSString *const NSTextListMarkerLowercaseLatin = @"{lower-latin}";123 static NSString *const NSTextListMarkerUppercaseLatin = @"{upper-latin}";124 static NSString *const NSTextListMarkerLowercaseRoman = @"{lower-roman}";125 static NSString *const NSTextListMarkerUppercaseRoman = @"{upper-roman}";126 static NSString *const NSTextListMarkerDecimal = @"{decimal}";127 128 140 #endif // PLATFORM(IOS_FAMILY)
Note:
See TracChangeset
for help on using the changeset viewer.