mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibWeb: Remove unecessary dependence on Window from Geometry classes
These classes only needed Window to get at its realm. Pass a realm directly to construct Geometry classes.
This commit is contained in:
parent
f0c5f77f99
commit
62a8c26b73
11 changed files with 51 additions and 44 deletions
|
@ -17,7 +17,7 @@ class DOMRectList final : public Bindings::LegacyPlatformObject {
|
|||
WEB_PLATFORM_OBJECT(DOMRectList, Bindings::LegacyPlatformObject);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<DOMRectList> create(HTML::Window&, Vector<JS::Handle<DOMRect>>);
|
||||
static JS::NonnullGCPtr<DOMRectList> create(JS::Realm&, Vector<JS::Handle<DOMRect>>);
|
||||
|
||||
virtual ~DOMRectList() override;
|
||||
|
||||
|
@ -28,7 +28,7 @@ public:
|
|||
virtual JS::Value item_value(size_t index) const override;
|
||||
|
||||
private:
|
||||
DOMRectList(HTML::Window&, Vector<JS::NonnullGCPtr<DOMRect>>);
|
||||
DOMRectList(JS::Realm&, Vector<JS::NonnullGCPtr<DOMRect>>);
|
||||
|
||||
Vector<JS::NonnullGCPtr<DOMRect>> m_rects;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue