Changeset 262898 in webkit
- Timestamp:
- Jun 11, 2020 1:09:33 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r262897 r262898 1 2020-06-10 Sergio Villar Senin <svillar@igalia.com> 2 3 [WebXR] Pass an unsigned long to cancelAnimationCallback() as handle 4 https://bugs.webkit.org/show_bug.cgi?id=212529 5 6 Reviewed by Youenn Fablet. 7 8 The type of the handle returned by XRSession::requestAnimationFrame() was recently changed 9 to unsigned long from long as there was no point in using signed integers for that. However 10 we forgot to update the cancelAnimationFrame() in the specs as well as it receives the handle 11 returned by requestAnimationFrame(). 12 13 We landed https://github.com/immersive-web/webxr/pull/1069 in the WebXR specs so we can now 14 safely also replace signed by unsigned integers in our implementation. 15 16 No new tests as there is no change in functionality. 17 18 Reland r262718. 19 20 * Modules/webxr/WebXRSession.cpp: 21 (WebCore::WebXRSession::cancelAnimationFrame): Use unsigned ids. 22 * Modules/webxr/WebXRSession.h: Ditto. 23 * Modules/webxr/WebXRSession.idl: Ditto. 24 1 25 2020-06-11 Antoine Quint <graouts@webkit.org> 2 26 -
trunk/Source/WebCore/Modules/webxr/WebXRSession.cpp
r262857 r262898 215 215 216 216 // https://immersive-web.github.io/webxr/#dom-xrsession-cancelanimationframe 217 void WebXRSession::cancelAnimationFrame( intcallbackId)217 void WebXRSession::cancelAnimationFrame(XRFrameRequestCallback::Id callbackId) 218 218 { 219 219 // 1. Let session be the target XRSession object. -
trunk/Source/WebCore/Modules/webxr/WebXRSession.h
r262857 r262898 75 75 76 76 XRFrameRequestCallback::Id requestAnimationFrame(Ref<XRFrameRequestCallback>&&); 77 void cancelAnimationFrame( inthandle);77 void cancelAnimationFrame(XRFrameRequestCallback::Id handle); 78 78 79 79 void end(EndPromise&&); -
trunk/Source/WebCore/Modules/webxr/WebXRSession.idl
r262857 r262898 44 44 45 45 unsigned long requestAnimationFrame(XRFrameRequestCallback callback); 46 void cancelAnimationFrame( long handle);46 void cancelAnimationFrame(unsigned long handle); 47 47 48 48 Promise<void> end();
Note: See TracChangeset
for help on using the changeset viewer.