mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibWeb: Remove unecessary dependence on Window from SVG classes
These classes only needed Window to get at its realm. Pass a realm directly to construct SCG classes.
This commit is contained in:
parent
62a8c26b73
commit
320dddde6a
20 changed files with 87 additions and 93 deletions
|
@ -15,11 +15,6 @@ JS::NonnullGCPtr<DOMPoint> DOMPoint::construct_impl(JS::Realm& realm, double x,
|
|||
return *realm.heap().allocate<DOMPoint>(realm, realm, x, y, z, w);
|
||||
}
|
||||
|
||||
JS::NonnullGCPtr<DOMPoint> DOMPoint::create_with_global_object(HTML::Window& window, double x, double y, double z, double w)
|
||||
{
|
||||
return construct_impl(window.realm(), x, y, z, w);
|
||||
}
|
||||
|
||||
DOMPoint::DOMPoint(JS::Realm& realm, double x, double y, double z, double w)
|
||||
: DOMPointReadOnly(realm, x, y, z, w)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue