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:
Andrew Kaster 2024-07-01 12:21:16 -06:00 committed by Andrew Kaster
parent bce7b24cfb
commit 55c1b5d1f4
Notes: sideshowbarker 2024-07-17 11:33:34 +09:00

View File

@ -15,7 +15,7 @@
namespace Web::HTML {
struct AnimationFrameCallbackDriver {
using Callback = Function<void(i32)>;
using Callback = Function<void(double)>;
AnimationFrameCallbackDriver()
{