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:
parent
95ce5735ce
commit
7de9179a6d
5 changed files with 25 additions and 39 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue