1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

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
parent 8cb789d061
commit 97d0acc5b6
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;