mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +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 MessageChannel final : public Bindings::PlatformObject {
|
|||
WEB_PLATFORM_OBJECT(MessageChannel, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<MessageChannel> create_with_global_object(HTML::Window&);
|
||||
static JS::NonnullGCPtr<MessageChannel> construct_impl(JS::Realm&);
|
||||
virtual ~MessageChannel() override;
|
||||
|
||||
MessagePort* port1();
|
||||
|
@ -26,7 +26,7 @@ public:
|
|||
MessagePort const* port2() const;
|
||||
|
||||
private:
|
||||
explicit MessageChannel(HTML::Window&);
|
||||
explicit MessageChannel(JS::Realm&);
|
||||
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue