mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20: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
|
@ -22,7 +22,7 @@ class MessagePort final : public DOM::EventTarget {
|
|||
WEB_PLATFORM_OBJECT(MessagePort, DOM::EventTarget);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<MessagePort> create(HTML::Window&);
|
||||
static JS::NonnullGCPtr<MessagePort> create(JS::Realm&);
|
||||
|
||||
virtual ~MessagePort() override;
|
||||
|
||||
|
@ -44,7 +44,7 @@ public:
|
|||
#undef __ENUMERATE
|
||||
|
||||
private:
|
||||
explicit MessagePort(HTML::Window&);
|
||||
explicit MessagePort(JS::Realm&);
|
||||
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue