diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-09-25 18:04:39 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-01 21:05:32 +0100 |
commit | 320dddde6a382c16a73020e065076909ad61a300 (patch) | |
tree | 09aac0172d27458f752b6c99e38ad022c98e68b3 /Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.h | |
parent | 62a8c26b73e874005c94969da9605fb9fd421b3c (diff) | |
download | serenity-320dddde6a382c16a73020e065076909ad61a300.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.h')
-rw-r--r-- | Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.h b/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.h index 59f709996a..452d8b65e7 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.h +++ b/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.h @@ -16,14 +16,14 @@ class SVGAnimatedLength final : public Bindings::PlatformObject { WEB_PLATFORM_OBJECT(SVGAnimatedLength, Bindings::PlatformObject); public: - static JS::NonnullGCPtr<SVGAnimatedLength> create(HTML::Window&, JS::NonnullGCPtr<SVGLength> base_val, JS::NonnullGCPtr<SVGLength> anim_val); + static JS::NonnullGCPtr<SVGAnimatedLength> create(JS::Realm&, JS::NonnullGCPtr<SVGLength> base_val, JS::NonnullGCPtr<SVGLength> anim_val); virtual ~SVGAnimatedLength() override; JS::NonnullGCPtr<SVGLength> base_val() const { return m_base_val; } JS::NonnullGCPtr<SVGLength> anim_val() const { return m_anim_val; } private: - SVGAnimatedLength(HTML::Window&, JS::NonnullGCPtr<SVGLength> base_val, JS::NonnullGCPtr<SVGLength> anim_val); + SVGAnimatedLength(JS::Realm&, JS::NonnullGCPtr<SVGLength> base_val, JS::NonnullGCPtr<SVGLength> anim_val); virtual void visit_edges(Cell::Visitor&) override; |