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:
parent
398e44b27b
commit
5c4eb90d65
Notes:
sideshowbarker
2024-07-17 06:21:34 +09:00
Author: https://github.com/linusg
Commit: 5c4eb90d65
Pull-request: https://github.com/SerenityOS/serenity/pull/15477
3 changed files with 18 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue