-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Sync RequestAnimationFrameCallback
with WebIDL interface
#46786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync RequestAnimationFrameCallback
with WebIDL interface
#46786
Conversation
EWS run on current version of this PR (hash 5f4dad7) |
Your commit message makes it sound like this change is observable, but is it? I suspect it's not as the engine is responsible for invoking this callback we probably never invoke it with a value it's not supposed to have. It then raises the question as to whether this incurs some kind of additional branching cost at the binding layer. And as I have a hard time reading the binding code I'm not sure I can answer that. |
This is not observable, I created test to see if it is working pre and post to simulate NaN, +Inf, -Inf and it seems to work fine in current implementation as well. It is now just to align 'idl' part with specification. |
https://bugs.webkit.org/show_bug.cgi?id=283862 Reviewed by Chris Dumez. This patch aligns WebKit with Web Specification [1]: [1] https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames It fixes where 'highResTime' was 'unrestricted double', which is not same as 'double', since earlier can allow values like non-finite, and special "not a number" values (NaNs). This matches what specification says and also other browser implementation as well. * Source/WebCore/dom/RequestAnimationFrameCallback.idl: Canonical link: https://commits.webkit.org/296745@main
5f4dad7
to
cad7439
Compare
Committed 296745@main (cad7439): https://commits.webkit.org/296745@main Reviewed commits have been landed. Closing PR #46786 and removing active labels. |
cad7439
5f4dad7