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:
MacDue
2024-02-04 21:14:08 +00:00
committed by Andreas Kling
parent 38855de829
commit 1d999fa780
Notes: sideshowbarker 2024-07-16 22:54:10 +09:00
3 changed files with 6 additions and 5 deletions

View File

@@ -17,8 +17,8 @@
printlnBuffered(`allEntries instanceof Array: ${allEntries instanceof Array}`);
printlnBuffered(`allEntries.length === 3: ${allEntries.length === 3}`);
printlnBuffered(`allEntries[0] === startMark: ${allEntries[0] === startMark}`);
printlnBuffered(`allEntries[1] === endMark: ${allEntries[1] === endMark}`);
printlnBuffered(`allEntries[2] === measureMark: ${allEntries[2] === measureMark}`);
printlnBuffered(`allEntries[1] === measureMark: ${allEntries[1] === measureMark}`);
printlnBuffered(`allEntries[2] === endMark: ${allEntries[2] === endMark}`);
const markEntries = list.getEntriesByType("mark");
printlnBuffered(`markEntries instanceof Array: ${markEntries instanceof Array}`);