1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibWeb: Add DOMHighResTimeStamp typedef

This commit is contained in:
Linus Groh 2022-10-04 21:13:35 +01:00
parent 398e44b27b
commit 5c4eb90d65
Notes: sideshowbarker 2024-07-17 06:21:34 +09:00
3 changed files with 18 additions and 3 deletions

View file

@ -9,7 +9,7 @@
namespace Web::HighResolutionTime {
// https://w3c.github.io/hr-time/#dfn-coarsen-time
double coarsen_time(double timestamp, bool cross_origin_isolated_capability)
DOMHighResTimeStamp coarsen_time(DOMHighResTimeStamp timestamp, bool cross_origin_isolated_capability)
{
// FIXME: Implement this.
(void)cross_origin_isolated_capability;

View file

@ -6,9 +6,10 @@
#pragma once
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
namespace Web::HighResolutionTime {
// https://w3c.github.io/hr-time/#dfn-coarsen-time
double coarsen_time(double timestamp, bool cross_origin_isolated_capability = false);
DOMHighResTimeStamp coarsen_time(DOMHighResTimeStamp timestamp, bool cross_origin_isolated_capability = false);
}

View file

@ -0,0 +1,14 @@
/*
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace Web::HighResolutionTime {
// https://w3c.github.io/hr-time/#dom-domhighrestimestamp
using DOMHighResTimeStamp = double;
}