1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibWeb/HTML: Port Window.performance to IDL

This commit is contained in:
Linus Groh 2023-03-06 19:50:46 +00:00
parent 95ce5735ce
commit 7de9179a6d
5 changed files with 25 additions and 39 deletions

View file

@ -1,6 +1,7 @@
#import <DOM/Document.idl>
#import <DOM/EventHandler.idl>
#import <DOM/EventTarget.idl>
#import <HighResolutionTime/Performance.idl>
#import <HTML/Navigator.idl>
#import <HTML/WindowOrWorkerGlobalScope.idl>
@ -39,6 +40,10 @@ interface Window : EventTarget {
// https://dom.spec.whatwg.org/#interface-window-extensions
[Replaceable] readonly attribute (Event or undefined) event; // legacy
// FIXME: Everything from here on should be shared through WindowOrWorkerGlobalScope
// https://w3c.github.io/hr-time/#the-performance-attribute
[Replaceable] readonly attribute Performance performance;
};
Window includes GlobalEventHandlers;
Window includes WindowEventHandlers;