Changeset 285744 in webkit
- Timestamp:
- Nov 12, 2021, 2:47:21 PM (5 years ago)
- Location:
- trunk/Source/WebCore/PAL
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
pal/spi/cocoa/NSAttributedStringSPI.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/PAL/ChangeLog
r285654 r285744 1 2021-11-12 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 Stop statically declaring various UIFoundation constants in NSAttributedStringSPI.h 4 https://bugs.webkit.org/show_bug.cgi?id=233064 5 rdar://85341122 6 7 Reviewed by Tim Horton. 8 9 Replace these static NSString definitions with soft-linked constants instead. 10 11 * pal/spi/cocoa/NSAttributedStringSPI.h: 12 1 13 2021-11-11 Adrian Perez de Castro <aperez@igalia.com> 2 14 -
trunk/Source/WebCore/PAL/pal/spi/cocoa/NSAttributedStringSPI.h
r261138 r285744 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.