Skip to content

Commit

Permalink
Cherry-pick 262840@main (1563228). https://bugs.webkit.org/show_bug.c…
Browse files Browse the repository at this point in the history
…gi?id=255297

    Update SPI availability declarations for iOS 16.5 and macOS 13.4
    https://bugs.webkit.org/show_bug.cgi?id=255297

    Reviewed by Alexey Proskuryakov.

    Replace TBA macros with the OS versions these declarations are available
    in.

    * Source/WebKit/UIProcess/API/Cocoa/WKContentRuleListPrivate.h:
    * Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h:

    Canonical link: https://commits.webkit.org/262840@main
Canonical link: https://commits.webkit.org/259548.633@safari-7615-branch
  • Loading branch information
emw-apple committed Apr 12, 2023
1 parent e727241 commit 5c45d4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -28,6 +28,6 @@
@interface WKContentRuleList (WKPrivate)

+ (BOOL)_supportsRegularExpression:(NSString *)regex WK_API_AVAILABLE(macos(12.0), ios(15.0));
+ (NSError *)_parseRuleList:(NSString *)ruleList WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
+ (NSError *)_parseRuleList:(NSString *)ruleList WK_API_AVAILABLE(macos(13.4), ios(16.5));

@end
2 changes: 1 addition & 1 deletion Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h
Expand Up @@ -279,7 +279,7 @@ struct UIEdgeInsets;

- (BOOL)_webViewCanBecomeFocused:(WKWebView *)webView WK_API_AVAILABLE(ios(15.0));
- (BOOL)_webView:(WKWebView *)webView touchEventsMustRequireGestureRecognizerToFail:(UIGestureRecognizer *)gestureRecognizer WK_API_AVAILABLE(ios(15.0));
- (BOOL)_webView:(WKWebView *)webView gestureRecognizerCanBePreventedByTouchEvents:(UIGestureRecognizer *)gestureRecognizer WK_API_AVAILABLE(ios(WK_IOS_TBA));
- (BOOL)_webView:(WKWebView *)webView gestureRecognizerCanBePreventedByTouchEvents:(UIGestureRecognizer *)gestureRecognizer WK_API_AVAILABLE(ios(16.5));

#else // !TARGET_OS_IPHONE

Expand Down

0 comments on commit 5c45d4e

Please sign in to comment.