mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
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:
committed by
Andrew Kaster
parent
bce7b24cfb
commit
55c1b5d1f4
@@ -15,7 +15,7 @@
|
||||
namespace Web::HTML {
|
||||
|
||||
struct AnimationFrameCallbackDriver {
|
||||
using Callback = Function<void(i32)>;
|
||||
using Callback = Function<void(double)>;
|
||||
|
||||
AnimationFrameCallbackDriver()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user