mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibWeb: Remove unecessary dependence on Window from HTML classes
These classes only needed Window to get at its realm. Pass a realm directly to construct HTML classes.
This commit is contained in:
parent
a2ccb00e1d
commit
f0c5f77f99
122 changed files with 334 additions and 317 deletions
|
@ -16,7 +16,7 @@ class Storage : public Bindings::PlatformObject {
|
|||
WEB_PLATFORM_OBJECT(Storage, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<Storage> create(HTML::Window&);
|
||||
static JS::NonnullGCPtr<Storage> create(JS::Realm&);
|
||||
~Storage();
|
||||
|
||||
size_t length() const;
|
||||
|
@ -33,7 +33,7 @@ public:
|
|||
void dump() const;
|
||||
|
||||
private:
|
||||
explicit Storage(HTML::Window&);
|
||||
explicit Storage(JS::Realm&);
|
||||
|
||||
void reorder();
|
||||
void broadcast(String const& key, String const& old_value, String const& new_value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue