WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 213020
[WebXR] unsigned long in IDL should be translated as unsigned in C++ code
https://bugs.webkit.org/show_bug.cgi?id=213020
Summary
[WebXR] unsigned long in IDL should be translated as unsigned in C++ code
Sergio Villar Senin
Reported
2020-06-10 04:24:34 PDT
[WebXR] unsigned long in IDL should be translated as unsigned in C++ code
Attachments
Patch
(5.24 KB, patch)
2020-06-10 04:28 PDT
,
Sergio Villar Senin
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sergio Villar Senin
Comment 1
2020-06-10 04:28:24 PDT
Created
attachment 401533
[details]
Patch
Darin Adler
Comment 2
2020-06-10 10:02:34 PDT
Comment on
attachment 401533
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=401533&action=review
> Source/WebCore/Modules/webxr/WebXRSession.cpp:203 > + unsigned newId = ++m_nextCallbackId;
This makes it clear that m_nextCallbackId is misnamed. Because we can see here that in practice it contains the last already-used callback ID, not the next callback ID to be used.
> Source/WebCore/Modules/webxr/WebXRSession.h:77 > + void cancelAnimationFrame(unsigned handle);
A little inelegant that the header calls this "handle", but the .cpp file calls it "callbackId".
Sergio Villar Senin
Comment 3
2020-06-10 13:03:40 PDT
Comment on
attachment 401533
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=401533&action=review
Thanks for the quick review!
>> Source/WebCore/Modules/webxr/WebXRSession.cpp:203 >> + unsigned newId = ++m_nextCallbackId; > > This makes it clear that m_nextCallbackId is misnamed. Because we can see here that in practice it contains the last already-used callback ID, not the next callback ID to be used.
Right. I'll do the following, initialize m_nextCallbackId to 1 and the replace the ++m_nextCallbackId by m_nextCallbackId++
>> Source/WebCore/Modules/webxr/WebXRSession.h:77 >> + void cancelAnimationFrame(unsigned handle); > > A little inelegant that the header calls this "handle", but the .cpp file calls it "callbackId".
ACK, I'll use a more consistent naming.
Sergio Villar Senin
Comment 4
2020-06-19 00:32:21 PDT
Committed
r263256
: <
https://trac.webkit.org/changeset/263256
>
Radar WebKit Bug Importer
Comment 5
2020-06-19 00:33:19 PDT
<
rdar://problem/64522477
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug