LibWeb: Implement window.matchMedia()

This commit is contained in:
Linus Groh 2021-09-12 17:10:27 +01:00 committed by Andreas Kling
commit 51da5d03da
Notes: sideshowbarker 2024-07-18 04:07:21 +09:00
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&);