mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:27:35 +00:00
LibWeb: Return milliseconds from unsafe_shared_current_time()
This was incorrectly changed to returning seconds in fc5cab5
, which
meant the time passed to the callbacks of requestAnimationFrame() was
wrong.
This commit is contained in:
parent
38855de829
commit
1d999fa780
3 changed files with 6 additions and 5 deletions
|
@ -55,7 +55,8 @@ DOMHighResTimeStamp coarsened_shared_current_time(bool cross_origin_isolated_cap
|
|||
DOMHighResTimeStamp unsafe_shared_current_time()
|
||||
{
|
||||
// The unsafe shared current time must return the current value of the shared monotonic clock.
|
||||
return MonotonicTime::now().truncated_seconds();
|
||||
// Note: This is in milliseconds (stored as a double).
|
||||
return MonotonicTime::now().nanoseconds() / 1.0e6;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue