[iOS] Hook up WebPlatformTouchPoint's radiusX / radiusY to _UIWebTouchPoint.majorRadi...
[WebKit-https.git] / Source / WebKit2 / Shared / ios / NativeWebTouchEventIOS.mm
index 19dc104..68e0e6c 100644 (file)
@@ -103,9 +103,8 @@ Vector<WebPlatformTouchPoint> NativeWebTouchEvent::extractWebTouchPoint(const _U
         WebPlatformTouchPoint::TouchPointState phase = convertTouchPhase(touchPoint.phase);
         WebPlatformTouchPoint platformTouchPoint = WebPlatformTouchPoint(identifier, location, phase);
 #if ENABLE(IOS_TOUCH_EVENTS)
-        // FIXME: We should use touchPoint.majorRadiusInScreenCoordinates for radiusX / radiusY once it is available (rdar://problem/28555313).
-        platformTouchPoint.setRadiusX(0);
-        platformTouchPoint.setRadiusY(0);
+        platformTouchPoint.setRadiusX(touchPoint.majorRadiusInScreenCoordinates);
+        platformTouchPoint.setRadiusY(touchPoint.majorRadiusInScreenCoordinates);
         platformTouchPoint.setRotationAngle(0); // Not available in _UIWebTouchEvent yet.
         platformTouchPoint.setForce(touchPoint.force);
 #if defined UI_WEB_TOUCH_EVENT_HAS_STYLUS_DATA && UI_WEB_TOUCH_EVENT_HAS_STYLUS_DATA