LibWeb: Implement performance.now()

This patch introduces the HighResolutionTime namespace which is home to
the Performance object (exposed via window.performance)

performance.now() is currently the only function, and it returns the
number of milliseconds since the window object was constructed. :^)
This commit is contained in:
Andreas Kling 2020-09-29 18:19:18 +02:00
commit 97d0acc5b6
Notes: sideshowbarker 2024-07-19 02:07:50 +09:00
10 changed files with 155 additions and 1 deletions

View file

@ -132,6 +132,10 @@ class HTMLVideoElement;
class ImageData;
}
namespace Web::HighResolutionTime {
class Performance;
}
namespace Web {
class EventHandler;
class Frame;
@ -242,6 +246,7 @@ class ImageDataWrapper;
class LocationObject;
class MouseEventWrapper;
class NodeWrapper;
class PerformanceWrapper;
class ScriptExecutionContext;
class TextWrapper;
class UIEventWrapper;