mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 17:16:04 +00:00
LibWeb/HTML: Port Window.screen to IDL
This commit is contained in:
parent
2beb99b76e
commit
0c691087ca
Notes:
sideshowbarker
2024-07-17 10:05:47 +09:00
Author: https://github.com/linusg
Commit: 0c691087ca
Pull-request: https://github.com/SerenityOS/serenity/pull/17752
Reviewed-by: https://github.com/awesomekling
3 changed files with 12 additions and 24 deletions
|
@ -1,5 +1,6 @@
|
|||
#import <Crypto/Crypto.idl>
|
||||
#import <CSS/MediaQueryList.idl>
|
||||
#import <CSS/Screen.idl>
|
||||
#import <DOM/Document.idl>
|
||||
#import <DOM/EventHandler.idl>
|
||||
#import <DOM/EventTarget.idl>
|
||||
|
@ -45,6 +46,7 @@ interface Window : EventTarget {
|
|||
|
||||
// https://w3c.github.io/csswg-drafts/cssom-view/#extensions-to-the-window-interface
|
||||
[NewObject] MediaQueryList matchMedia(CSSOMString query);
|
||||
[SameObject, Replaceable] readonly attribute Screen screen;
|
||||
|
||||
// FIXME: Everything from here on should be shared through WindowOrWorkerGlobalScope
|
||||
// https://w3c.github.io/hr-time/#the-performance-attribute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue