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

LibWeb: Make factory method of CSS::MediaList fallible

This commit is contained in:
Kenneth Myhra 2023-02-13 10:50:45 +01:00 committed by Linus Groh
parent a49ea467ad
commit 5d9bc378c3
3 changed files with 10 additions and 6 deletions

View file

@ -20,7 +20,7 @@ class MediaList final : public Bindings::LegacyPlatformObject {
WEB_PLATFORM_OBJECT(MediaList, Bindings::LegacyPlatformObject);
public:
static MediaList* create(JS::Realm&, NonnullRefPtrVector<MediaQuery>&& media);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<MediaList>> create(JS::Realm&, NonnullRefPtrVector<MediaQuery>&& media);
~MediaList() = default;
DeprecatedString media_text() const;