Title: [261452] trunk/Source/WebKit
Revision
261452
Author
[email protected]
Date
2020-05-09 20:08:06 -0700 (Sat, 09 May 2020)

Log Message

Attemp to fix internal iOS build

* Platform/spi/ios/UIKitSPI.h:
- Define @class UIHoverEvent using header if available, else
  fall back to local class definition.
- Define methods separately from class definition.
* UIProcess/ios/WKMouseGestureRecognizer.mm:
(-[WKMouseGestureRecognizer setView:]):
- Use new method if it is available.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (261451 => 261452)


--- trunk/Source/WebKit/ChangeLog	2020-05-10 03:08:00 UTC (rev 261451)
+++ trunk/Source/WebKit/ChangeLog	2020-05-10 03:08:06 UTC (rev 261452)
@@ -1,3 +1,15 @@
+2020-05-09  David Kilzer  <[email protected]>
+
+        Attemp to fix internal iOS build
+
+        * Platform/spi/ios/UIKitSPI.h:
+        - Define @class UIHoverEvent using header if available, else
+          fall back to local class definition.
+        - Define methods separately from class definition.
+        * UIProcess/ios/WKMouseGestureRecognizer.mm:
+        (-[WKMouseGestureRecognizer setView:]):
+        - Use new method if it is available.
+
 2020-05-09  Commit Queue  <[email protected]>
 
         Unreviewed, reverting r261389.

Modified: trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h (261451 => 261452)


--- trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h	2020-05-10 03:08:00 UTC (rev 261451)
+++ trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h	2020-05-10 03:08:06 UTC (rev 261452)
@@ -133,6 +133,13 @@
 #import <UIKit/_UICursorStyle_Private.h>
 #endif
 
+#if __has_include(<UIKit/UIHoverEvent_Private.h>)
+#import <UIKit/UIHoverEvent_Private.h>
+#else
+@interface UIHoverEvent : UIEvent
+@end
+#endif
+
 #else // USE(APPLE_INTERNAL_SDK)
 
 #if ENABLE(DRAG_SUPPORT)
@@ -1208,6 +1215,9 @@
 - (BOOL)_isPointerTouch;
 @end
 
+@interface UIHoverEvent : UIEvent
+@end
+
 #endif // USE(APPLE_INTERNAL_SDK)
 
 #define UIWKDocumentRequestMarkedTextRects (1 << 5)
@@ -1289,8 +1299,12 @@
 @property (nonatomic, readonly, getter=_modifierFlags) UIKeyModifierFlags modifierFlags;
 @end
 
-@interface UIHoverEvent : UIEvent
+@interface UIHoverEvent (IPI)
+#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED < 140000 || PLATFORM(MACCATALYST)
 - (void)setNeedsHitTestReset;
+#else
+- (void)setNeedsHitTestResetForWindow:(UIWindow *)window;
+#endif
 @end
 
 @interface UIApplication (IPI)

Modified: trunk/Source/WebKit/UIProcess/ios/WKMouseGestureRecognizer.mm (261451 => 261452)


--- trunk/Source/WebKit/UIProcess/ios/WKMouseGestureRecognizer.mm	2020-05-10 03:08:00 UTC (rev 261451)
+++ trunk/Source/WebKit/UIProcess/ios/WKMouseGestureRecognizer.mm	2020-05-10 03:08:06 UTC (rev 261452)
@@ -80,7 +80,11 @@
 
     if (view.window) {
         UIHoverEvent *hoverEvent = [UIApp _hoverEventForWindow:view.window];
+#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED < 140000 || PLATFORM(MACCATALYST)
         [hoverEvent setNeedsHitTestReset];
+#else
+        [hoverEvent setNeedsHitTestResetForWindow:view.window];
+#endif
     }
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to