RESOLVED FIXED 162787
[WK2][iOS] Add radiusX / radiusY / rotationAngle to WebPlatformTouchPoint
https://bugs.webkit.org/show_bug.cgi?id=162787
Summary [WK2][iOS] Add radiusX / radiusY / rotationAngle to WebPlatformTouchPoint
Chris Dumez
Reported 2016-09-30 08:49:13 PDT
Add radiusX / radiusY / rotationAngle to WebPlatformTouchPoint.
Attachments
Patch (10.20 KB, patch)
2016-09-30 08:54 PDT, Chris Dumez
no flags
Patch (10.68 KB, patch)
2016-09-30 09:01 PDT, Chris Dumez
no flags
Patch (10.77 KB, patch)
2016-09-30 12:14 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-09-30 08:49:22 PDT
Chris Dumez
Comment 2 2016-09-30 08:54:20 PDT
Chris Dumez
Comment 3 2016-09-30 09:01:12 PDT
David Kilzer (:ddkilzer)
Comment 4 2016-09-30 09:36:01 PDT
Comment on attachment 290333 [details] Patch r=me...if I were a WK2 reviewer.
Benjamin Poulain
Comment 5 2016-09-30 12:04:57 PDT
Comment on attachment 290333 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=290333&action=review > Source/WebKit2/Platform/spi/ios/UIKitSPI.h:657 > + CGFloat majorRadiusInScreenCoordinates; Be careful with bincompat. > Source/WebKit2/Shared/WebEvent.h:333 > + void setRadiusX(float radiusX) { m_radiusX = radiusX; } > + float radiusX() const { return m_radiusX; } > + void setRadiusY(float radiusY) { m_radiusY = radiusY; } > + float radiusY() const { return m_radiusY; } > + void setRotationAngle(float rotationAngle) { m_rotationAngle = rotationAngle; } > + float rotationAngle() const { return m_rotationAngle; } float->double > Source/WebKit2/Shared/WebEvent.h:354 > + float m_radiusX { 0 }; > + float m_radiusY { 0 }; > + float m_rotationAngle { 0 }; Let's use double. We can round to float when we expose the value to the API. We should not lose precision internally.
Chris Dumez
Comment 6 2016-09-30 12:14:43 PDT
Chris Dumez
Comment 7 2016-09-30 12:22:08 PDT
Comment on attachment 290361 [details] Patch Clearing flags on attachment: 290361 Committed r206651: <http://trac.webkit.org/changeset/206651>
Chris Dumez
Comment 8 2016-09-30 12:22:14 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.