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

LibWeb: Implement window.matchMedia()

This commit is contained in:
Linus Groh 2021-09-12 17:10:27 +01:00 committed by Andreas Kling
parent 4155cc7ed5
commit 51da5d03da
4 changed files with 21 additions and 0 deletions

View file

@ -12,6 +12,7 @@
#include <AK/RefPtr.h>
#include <LibWeb/Bindings/WindowObject.h>
#include <LibWeb/Bindings/Wrappable.h>
#include <LibWeb/CSS/MediaQueryList.h>
#include <LibWeb/CSS/Screen.h>
#include <LibWeb/DOM/Event.h>
#include <LibWeb/DOM/EventTarget.h>
@ -73,6 +74,7 @@ public:
void set_current_event(Event* event) { m_current_event = event; }
NonnullRefPtr<CSS::CSSStyleDeclaration> get_computed_style(DOM::Element&) const;
NonnullRefPtr<CSS::MediaQueryList> match_media(String);
private:
explicit Window(Document&);