mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-10-03 16:48:40 +03: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:
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 ✅
@ -15,7 +15,7 @@
|
||||
namespace Web::HTML {
|
||||
|
||||
struct AnimationFrameCallbackDriver {
|
||||
using Callback = Function<void(i32)>;
|
||||
using Callback = Function<void(double)>;
|
||||
|
||||
AnimationFrameCallbackDriver()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user