|
@@ -6,12 +6,13 @@
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
+#include <AK/FlyString.h>
|
|
|
#include <LibWeb/DOM/Event.h>
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
|
struct MediaQueryListEventInit : public DOM::EventInit {
|
|
|
- DeprecatedString media { "" };
|
|
|
+ String media;
|
|
|
bool matches { false };
|
|
|
};
|
|
|
|
|
@@ -19,19 +20,19 @@ class MediaQueryListEvent final : public DOM::Event {
|
|
|
WEB_PLATFORM_OBJECT(MediaQueryListEvent, DOM::Event);
|
|
|
|
|
|
public:
|
|
|
- static WebIDL::ExceptionOr<JS::NonnullGCPtr<MediaQueryListEvent>> construct_impl(JS::Realm&, DeprecatedFlyString const& event_name, MediaQueryListEventInit const& event_init = {});
|
|
|
+ static WebIDL::ExceptionOr<JS::NonnullGCPtr<MediaQueryListEvent>> construct_impl(JS::Realm&, FlyString const& event_name, MediaQueryListEventInit const& event_init = {});
|
|
|
|
|
|
virtual ~MediaQueryListEvent() override;
|
|
|
|
|
|
- DeprecatedString const& media() const { return m_media; }
|
|
|
+ String const& media() const { return m_media; }
|
|
|
bool matches() const { return m_matches; }
|
|
|
|
|
|
private:
|
|
|
- MediaQueryListEvent(JS::Realm&, DeprecatedFlyString const& event_name, MediaQueryListEventInit const& event_init);
|
|
|
+ MediaQueryListEvent(JS::Realm&, FlyString const& event_name, MediaQueryListEventInit const& event_init);
|
|
|
|
|
|
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|
|
|
|
|
|
- DeprecatedString m_media;
|
|
|
+ String m_media;
|
|
|
bool m_matches;
|
|
|
};
|
|
|
}
|