[webkit-reviews] review granted: [Bug 238368] Some Apple internal clients fail to build due to redeclared AppKit types in WebKitLegacy : [Attachment 455742] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 25 13:04:52 PDT 2022


David Kilzer (:ddkilzer) <ddkilzer at webkit.org> has granted Ian Anderson
<iana at apple.com>'s request for review:
Bug 238368: Some Apple internal clients fail to build due to redeclared AppKit
types in WebKitLegacy
https://bugs.webkit.org/show_bug.cgi?id=238368

Attachment 455742: Patch

https://bugs.webkit.org/attachment.cgi?id=455742&action=review




--- Comment #4 from David Kilzer (:ddkilzer) <ddkilzer at webkit.org> ---
Comment on attachment 455742
  --> https://bugs.webkit.org/attachment.cgi?id=455742
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=455742&action=review

r=me, but please swap the logic as noted before landing.

Also, make sure this builds on iOS before landing.

It's unlikely that this patch caused layout test failures, either.

> Source/WebKitLegacy/mac/Misc/WebNSViewExtras.h:48
> +#if !TARGET_OS_IPHONE
>  @interface NSView (WebExtras)
> +#else
> + at interface WAKView (WebExtras)
> +#endif

Would be slightly better to reverse the logic here and use `#if
TARGET_OS_IPHONE/#else/#endif` instead.

> Source/WebKitLegacy/mac/Misc/WebNSViewExtras.h:55
> +#if !TARGET_OS_IPHONE
>  - (NSView *)_web_superviewOfClass:(Class)viewClass;
> +#else
> +- (WAKView *)_web_superviewOfClass:(Class)viewClass;
> +#endif

Ditto.

> Source/WebKitLegacy/mac/WebView/WebDocumentPrivate.h:81
> +#if !TARGET_OS_IPHONE
>  - (NSView *)selectionView;
> +#else
> +- (WAKView *)selectionView;
> +#endif

Ditto.

> Source/WebKitLegacy/mac/WebView/WebFrameView.h:53
> +#if !TARGET_OS_IPHONE
>  @interface WebFrameView : NSView
> +#else
> + at interface WebFrameView : WAKView
> +#endif

Ditto.

> Source/WebKitLegacy/mac/WebView/WebFrameView.h:74
> +#if !TARGET_OS_IPHONE
>  @property (nonatomic, readonly, strong) NSView<WebDocumentView>
*documentView;
> +#else
> + at property (nonatomic, readonly, strong) WAKView<WebDocumentView>
*documentView;
> +#endif

Ditto.

> Source/WebKitLegacy/mac/WebView/WebHTMLViewPrivate.h:118
> +#if !TARGET_OS_IPHONE
>  - (NSView *)_compositingLayersHostingView;
> +#else
> +- (WAKView *)_compositingLayersHostingView;
> +#endif

Ditto.

> Source/WebKitLegacy/mac/WebView/WebView.h:133
> +#if !TARGET_OS_IPHONE
>  @interface WebView : NSView
> +#else
> + at interface WebView : WAKView
> +#endif

Ditto.


More information about the webkit-reviews mailing list