RESOLVED FIXED 212529
[WebXR] Pass an unsigned long to cancelAnimationCallback() as handle
https://bugs.webkit.org/show_bug.cgi?id=212529
Summary [WebXR] Pass an unsigned long to cancelAnimationCallback() as handle
Sergio Villar Senin
Reported 2020-05-29 09:51:07 PDT
[WebXR] Pass an unsigned long to cancelAnimationCallback() as handle
Attachments
Patch (3.40 KB, patch)
2020-05-29 09:55 PDT, Sergio Villar Senin
youennf: review+
Sergio Villar Senin
Comment 1 2020-05-29 09:55:23 PDT
Sergio Villar Senin
Comment 2 2020-06-05 08:51:56 PDT
Gentle ping
youenn fablet
Comment 3 2020-06-08 01:07:28 PDT
Comment on attachment 400595 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=400595&action=review > Source/WebCore/Modules/webxr/WebXRSession.cpp:212 > +void WebXRSession::cancelAnimationFrame(XRFrameRequestCallback::Id callbackId) I would call it XRFrameRequestCallback::Identifier
Sergio Villar Senin
Comment 4 2020-06-08 08:59:44 PDT
Radar WebKit Bug Importer
Comment 5 2020-06-08 09:00:22 PDT
Darin Adler
Comment 6 2020-06-08 11:39:09 PDT
Comment on attachment 400595 [details] Patch IDL "unsigned long" is the same as C++ "unsigned" in WebKit, so all the "unsigned long" and "long" should be changed to "unsigned" and "int" in the C headers.
Sergio Villar Senin
Comment 7 2020-06-10 04:30:54 PDT
(In reply to Darin Adler from comment #6) > Comment on attachment 400595 [details] > Patch > > IDL "unsigned long" is the same as C++ "unsigned" in WebKit, so all the > "unsigned long" and "long" should be changed to "unsigned" and "int" in the > C headers. OK, I've seen unsigned long is some other headers in Modules/ so I was not really sure.(In reply to Darin Adler from comment #6) > Comment on attachment 400595 [details] > Patch > > IDL "unsigned long" is the same as C++ "unsigned" in WebKit, so all the > "unsigned long" and "long" should be changed to "unsigned" and "int" in the > C headers. Thanks for this, I've seen "unsigned long" in some other modules so I thought it was also OK. I've just filled bug 213020 to address WebXR changes.
Darin Adler
Comment 8 2020-06-10 09:53:40 PDT
(In reply to Sergio Villar Senin from comment #7) > Thanks for this, I've seen "unsigned long" in some other modules so I > thought it was also OK. I've just filled bug 213020 to address WebXR changes. It’s worthwhile to fix those to consistently not use the "long" C types. Should be fairly simple task. Using "long" for 32-bit integers isn't super-actively harmful but can lead to problems where two types are involved where the types should be the same, even possibly leading to template code bloat or need to have two functions where we'd like to have only one. And it’s basically a difference where there should be no difference. The fact that 32-bit is named "long" in IDL is, in effect, unrelated to the "long" in C.
Yusuke Suzuki
Comment 9 2020-06-10 13:43:49 PDT
Re-opened since this is blocked by bug 213047
Sergio Villar Senin
Comment 10 2020-06-11 01:09:41 PDT
Note You need to log in before you can comment on or make changes to this bug.