Title: [270778] branches/safari-611.1.9-branch/Source/WebKit
Revision
270778
Author
[email protected]
Date
2020-12-14 10:23:32 -0800 (Mon, 14 Dec 2020)

Log Message

Cherry-pick r270754. rdar://problem/72301723

    Fix the watchOS build after r270712
    <rdar://problem/72265227>

    * Shared/ios/WebIOSEventFactory.h:
    * Shared/ios/WebIOSEventFactory.mm:
    (WebIOSEventFactory::createWebWheelEvent):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270754 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-611.1.9-branch/Source/WebKit/ChangeLog (270777 => 270778)


--- branches/safari-611.1.9-branch/Source/WebKit/ChangeLog	2020-12-14 18:11:43 UTC (rev 270777)
+++ branches/safari-611.1.9-branch/Source/WebKit/ChangeLog	2020-12-14 18:23:32 UTC (rev 270778)
@@ -1,3 +1,26 @@
+2020-12-14  Russell Epstein  <[email protected]>
+
+        Cherry-pick r270754. rdar://problem/72301723
+
+    Fix the watchOS build after r270712
+    <rdar://problem/72265227>
+    
+    * Shared/ios/WebIOSEventFactory.h:
+    * Shared/ios/WebIOSEventFactory.mm:
+    (WebIOSEventFactory::createWebWheelEvent):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2020-12-13  Tim Horton  <[email protected]>
+
+            Fix the watchOS build after r270712
+            <rdar://problem/72265227>
+
+            * Shared/ios/WebIOSEventFactory.h:
+            * Shared/ios/WebIOSEventFactory.mm:
+            (WebIOSEventFactory::createWebWheelEvent):
+
 2020-12-12  Jiewen Tan  <[email protected]>
 
         [WebAuthn][iOS] Turn on modern WebAuthn for default browsers

Modified: branches/safari-611.1.9-branch/Source/WebKit/Shared/ios/WebIOSEventFactory.h (270777 => 270778)


--- branches/safari-611.1.9-branch/Source/WebKit/Shared/ios/WebIOSEventFactory.h	2020-12-14 18:11:43 UTC (rev 270777)
+++ branches/safari-611.1.9-branch/Source/WebKit/Shared/ios/WebIOSEventFactory.h	2020-12-14 18:23:32 UTC (rev 270778)
@@ -39,7 +39,10 @@
 public:
     static WebKit::WebKeyboardEvent createWebKeyboardEvent(::WebEvent *, bool handledByInputMethod);
     static WebKit::WebMouseEvent createWebMouseEvent(::WebEvent *);
+
+#if HAVE(UISCROLLVIEW_ASYNCHRONOUS_SCROLL_EVENT_HANDLING)
     static WebKit::WebWheelEvent createWebWheelEvent(UIScrollEvent *, UIView *contentView);
+#endif
 
     static UIKeyModifierFlags toUIKeyModifierFlags(OptionSet<WebKit::WebEvent::Modifier>);
 };

Modified: branches/safari-611.1.9-branch/Source/WebKit/Shared/ios/WebIOSEventFactory.mm (270777 => 270778)


--- branches/safari-611.1.9-branch/Source/WebKit/Shared/ios/WebIOSEventFactory.mm	2020-12-14 18:11:43 UTC (rev 270777)
+++ branches/safari-611.1.9-branch/Source/WebKit/Shared/ios/WebIOSEventFactory.mm	2020-12-14 18:23:32 UTC (rev 270778)
@@ -152,15 +152,12 @@
     }
 }
 
+#if HAVE(UISCROLLVIEW_ASYNCHRONOUS_SCROLL_EVENT_HANDLING)
 WebKit::WebWheelEvent WebIOSEventFactory::createWebWheelEvent(UIScrollEvent *event, UIView *contentView)
 {
     WebCore::IntPoint scrollLocation = WebCore::roundedIntPoint([event locationInView:contentView]);
-#if HAVE(UISCROLLVIEW_ASYNCHRONOUS_SCROLL_EVENT_HANDLING)
     CGVector deltaVector = [event _adjustedAcceleratedDeltaInView:contentView];
     WebCore::FloatSize delta(deltaVector.dx, deltaVector.dy);
-#else
-    WebCore::FloatSize delta;
-#endif
 
     return {
         WebKit::WebEvent::Wheel,
@@ -179,5 +176,6 @@
         MonotonicTime::fromRawSeconds(event.timestamp).approximateWallTime()
     };
 }
+#endif
 
 #endif // PLATFORM(IOS_FAMILY)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to