-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS Sonoma] Update SPI headers now that -[NSView clipsToBounds] is API #15254
[macOS Sonoma] Update SPI headers now that -[NSView clipsToBounds] is API #15254
Conversation
EWS run on previous version of this PR (hash 1515225) |
@@ -49,7 +49,9 @@ typedef NS_ENUM(NSInteger, NSViewSemanticContext) { | |||
@property (nonatomic, setter=_setSemanticContext:) NSViewSemanticContext _semanticContext; | |||
#endif | |||
|
|||
#if !HAVE(NSVIEW_CLIPSTOBOUNDS_API) | |||
@property BOOL clipsToBounds; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason this property wasn't guarded before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clipsToBounds has been SPI for a long time, but was just promoted to API. See https://developer.apple.com/documentation/appkit/nsview/4236466-clipstobounds?language=objc&changes=latest_minor: available since 10.9, but added to the SDK in this release.
Source/WTF/wtf/PlatformHave.h
Outdated
@@ -1567,3 +1567,7 @@ | |||
#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 130000) | |||
#define HAVE_LS_SERVER_CONNECTION_STATUS_RELEASE_NOTIFICATIONS_MASK 1 | |||
#endif | |||
|
|||
#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 140000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be MAX_ALLOWED? So that we don't unnecessarily complicate building for 10.13 using 10.14 SDK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch. It's declared in the 14 SDK, so we should be checking SDK version and not deployment target.
1515225
to
42a723b
Compare
β¦ API https://bugs.webkit.org/show_bug.cgi?id=258473 Reviewed by Alexey Proskuryakov and Jonathan Bedard. Work towards making the build functional on macOS Sonoma. * Source/WTF/wtf/PlatformHave.h: Add a HAVE_NSVIEW_CLIPSTOBOUNDS_API flag. * Source/WebCore/PAL/pal/spi/mac/NSViewSPI.h: Only declare clipsToBounds on older SDK versions. Canonical link: https://commits.webkit.org/265490@main
42a723b
to
48d9a42
Compare
Committed 265490@main (48d9a42): https://commits.webkit.org/265490@main Reviewed commits have been landed. Closing PR #15254 and removing active labels. |
48d9a42
42a723b
π§ͺ mac-wk2