Limit user-agent interactions based on the touch-action property on iOS
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Jan 2019 17:33:38 +0000 (17:33 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 28 Jan 2019 17:33:38 +0000 (17:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=193447

Unreviewed build fix.

* UIProcess/ios/WKContentViewInteraction.mm:

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

index 93ed07c..e90a49d 100644 (file)
@@ -1,3 +1,12 @@
+2019-01-28  Antoine Quint  <graouts@apple.com>
+
+        Limit user-agent interactions based on the touch-action property on iOS
+        https://bugs.webkit.org/show_bug.cgi?id=193447
+
+        Unreviewed build fix.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+
 2019-01-28  Brent Fulgham  <bfulgham@apple.com>
 
         Remove the UIProcess components of the ResourceLoadStatistics code
index 86c3d43..3f42587 100644 (file)
@@ -1163,6 +1163,7 @@ static inline bool hasFocusedElement(WebKit::FocusedElementInformation focusedEl
 }
 
 #if ENABLE(POINTER_EVENTS)
+#if ENABLE(TOUCH_EVENTS)
 - (void)_handleTouchActionsForTouchEvent:(const WebKit::NativeWebTouchEvent&)touchEvent
 {
     auto* scrollingCoordinator = _page->scrollingCoordinatorProxy();
@@ -1191,6 +1192,7 @@ static inline bool hasFocusedElement(WebKit::FocusedElementInformation focusedEl
             scrollingCoordinator->clearTouchDataForTouchIdentifier(touchPoint.identifier());
     }
 }
+#endif
 
 - (void)_resetPanningPreventionFlags
 {