mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:27:39 +00:00
LibWeb: Remove unecessary dependence on Window from CSS classes
These classes only needed Window to get at its realm. Pass a realm directly to construct CSS classes.
This commit is contained in:
parent
8de7e49a56
commit
a2ccb00e1d
37 changed files with 159 additions and 146 deletions
|
@ -20,7 +20,7 @@ class MediaList final : public Bindings::LegacyPlatformObject {
|
|||
WEB_PLATFORM_OBJECT(MediaList, Bindings::LegacyPlatformObject);
|
||||
|
||||
public:
|
||||
static MediaList* create(HTML::Window&, NonnullRefPtrVector<MediaQuery>&& media);
|
||||
static MediaList* create(JS::Realm&, NonnullRefPtrVector<MediaQuery>&& media);
|
||||
~MediaList() = default;
|
||||
|
||||
String media_text() const;
|
||||
|
@ -37,7 +37,7 @@ public:
|
|||
bool matches() const;
|
||||
|
||||
private:
|
||||
explicit MediaList(HTML::Window&, NonnullRefPtrVector<MediaQuery>&&);
|
||||
MediaList(JS::Realm&, NonnullRefPtrVector<MediaQuery>&&);
|
||||
|
||||
NonnullRefPtrVector<MediaQuery> m_media;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue