mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +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 DOMPointReadOnly : public Bindings::PlatformObject {
|
|||
WEB_PLATFORM_OBJECT(DOMPointReadOnly, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<DOMPointReadOnly> create_with_global_object(HTML::Window&, double x = 0, double y = 0, double z = 0, double w = 0);
|
||||
static JS::NonnullGCPtr<DOMPointReadOnly> construct_impl(JS::Realm&, double x = 0, double y = 0, double z = 0, double w = 0);
|
||||
|
||||
virtual ~DOMPointReadOnly() override;
|
||||
|
||||
|
@ -27,7 +27,7 @@ public:
|
|||
double w() const { return m_w; }
|
||||
|
||||
protected:
|
||||
DOMPointReadOnly(HTML::Window&, double x, double y, double z, double w);
|
||||
DOMPointReadOnly(JS::Realm&, double x, double y, double z, double w);
|
||||
|
||||
double m_x;
|
||||
double m_y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue