RESOLVED FIXED 167006
[WebIDL] Remove custom bindings for DeviceMotionEvent and DeviceOrientationEvent
https://bugs.webkit.org/show_bug.cgi?id=167006
Summary [WebIDL] Remove custom bindings for DeviceMotionEvent and DeviceOrientationEvent
Sam Weinig
Reported 2017-01-13 08:43:21 PST
[WebIDL] Remove custom bindings for DeviceMotionEvent and DeviceOrientationEvent
Attachments
Patch (68.67 KB, patch)
2017-01-13 08:53 PST, Sam Weinig
no flags
Patch (69.75 KB, patch)
2017-01-13 10:00 PST, Sam Weinig
no flags
Archive of layout-test-results from ews124 for ios-simulator-wk2 (11.67 MB, application/zip)
2017-01-13 11:23 PST, Build Bot
no flags
Patch (74.27 KB, patch)
2017-01-13 11:39 PST, Sam Weinig
ggaren: review+
buildbot: commit-queue-
Archive of layout-test-results from ews126 for ios-simulator-wk2 (9.21 MB, application/zip)
2017-01-13 13:01 PST, Build Bot
no flags
Sam Weinig
Comment 1 2017-01-13 08:53:12 PST
Alex Christensen
Comment 2 2017-01-13 09:14:25 PST
Comment on attachment 298761 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=298761&action=review > Source/WebCore/dom/DeviceMotionData.h:47 > + std::optional<double> x() const { return m_x; } Can these return std::optional<double>&? > Source/WebCore/dom/DeviceOrientationEvent.idl:36 > + [ImplementedAs=compassHeading] readonly attribute unrestricted double? webkitCompassHeading; Do we want to add unprefixed versions?
Sam Weinig
Comment 3 2017-01-13 10:00:52 PST
Sam Weinig
Comment 4 2017-01-13 10:03:15 PST
(In reply to comment #2) > Comment on attachment 298761 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=298761&action=review > > > Source/WebCore/dom/DeviceMotionData.h:47 > > + std::optional<double> x() const { return m_x; } > > Can these return std::optional<double>&? I'm not sure it's worth it. The copy is really cheap. > > > Source/WebCore/dom/DeviceOrientationEvent.idl:36 > > + [ImplementedAs=compassHeading] readonly attribute unrestricted double? webkitCompassHeading; > > Do we want to add unprefixed versions? (In reply to comment #2) > Comment on attachment 298761 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=298761&action=review > > > Source/WebCore/dom/DeviceMotionData.h:47 > > + std::optional<double> x() const { return m_x; } > > Can these return std::optional<double>&? > > > Source/WebCore/dom/DeviceOrientationEvent.idl:36 > > + [ImplementedAs=compassHeading] readonly attribute unrestricted double? webkitCompassHeading; > > Do we want to add unprefixed versions? No idea.
Build Bot
Comment 5 2017-01-13 11:23:02 PST
Comment on attachment 298765 [details] Patch Attachment 298765 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/2883591 New failing tests: fast/dom/DeviceMotion/optional-event-properties.html
Build Bot
Comment 6 2017-01-13 11:23:05 PST
Created attachment 298773 [details] Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Sam Weinig
Comment 7 2017-01-13 11:39:33 PST
Geoffrey Garen
Comment 8 2017-01-13 12:43:57 PST
Comment on attachment 298778 [details] Patch r=me
Build Bot
Comment 9 2017-01-13 13:01:37 PST
Comment on attachment 298778 [details] Patch Attachment 298778 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/2883966 New failing tests: fast/dom/DeviceMotion/optional-event-properties.html
Build Bot
Comment 10 2017-01-13 13:01:40 PST
Created attachment 298783 [details] Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Sam Weinig
Comment 11 2017-01-13 13:21:00 PST
Note You need to log in before you can comment on or make changes to this bug.