LibWeb: Use double as the argument for AnimationFrameCallbacks
This avoids an unecessary lossy conversion for the current time from double to i32. And avoids an UBSAN failure on macOS that's dependent on the current uptime.
This commit is contained in:
parent
bce7b24cfb
commit
55c1b5d1f4
Notes:
sideshowbarker
2024-07-17 11:33:34 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/55c1b5d1f4 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/335 Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
namespace Web::HTML {
|
||||
|
||||
struct AnimationFrameCallbackDriver {
|
||||
using Callback = Function<void(i32)>;
|
||||
using Callback = Function<void(double)>;
|
||||
|
||||
AnimationFrameCallbackDriver()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue