Changeset 272322 in webkit


Ignore:
Timestamp:
Feb 3, 2021 9:38:54 AM (3 years ago)
Author:
achristensen@apple.com
Message:

Fix watch and tv build after r272228
https://bugs.webkit.org/show_bug.cgi?id=220683

UIEventAttribution is special in that the symbol is declared as unavailable on watchOS and tvOS.
To fix the build, we need to not use this symbol on those operating systems.

  • UIProcess/API/Cocoa/WKWebViewPrivate.h:
  • UIProcess/API/ios/WKWebViewIOS.mm:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r272313 r272322  
     12021-02-03  Alex Christensen  <achristensen@webkit.org>
     2
     3        Fix watch and tv build after r272228
     4        https://bugs.webkit.org/show_bug.cgi?id=220683
     5
     6        UIEventAttribution is special in that the symbol is declared as unavailable on watchOS and tvOS.
     7        To fix the build, we need to not use this symbol on those operating systems.
     8
     9        * UIProcess/API/Cocoa/WKWebViewPrivate.h:
     10        * UIProcess/API/ios/WKWebViewIOS.mm:
     11
    1122021-02-03  Antoine Quint  <graouts@webkit.org>
    213
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h

    r272237 r272322  
    394394@interface WKWebView (WKPrivateIOS)
    395395
     396#if !TARGET_OS_TV && !TARGET_OS_WATCH
    396397@property (nonatomic, copy, setter=_setUIEventAttribution:) UIEventAttribution *_uiEventAttribution WK_API_AVAILABLE(ios(WK_IOS_TBA));
     398#endif
    397399
    398400@property (nonatomic, readonly) CGRect _contentVisibleRect WK_API_AVAILABLE(ios(10.0));
  • trunk/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm

    r272237 r272322  
    25252525@implementation WKWebView (WKPrivateIOS)
    25262526
     2527#if !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
    25272528- (void)_setUIEventAttribution:(UIEventAttribution *)attribution
    25282529{
     
    25552556#endif
    25562557}
     2558#endif // !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
    25572559
    25582560- (CGRect)_contentVisibleRect
Note: See TracChangeset for help on using the changeset viewer.