summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-09-25 18:04:39 -0600
committerLinus Groh <mail@linusgroh.de>2022-10-01 21:05:32 +0100
commit320dddde6a382c16a73020e065076909ad61a300 (patch)
tree09aac0172d27458f752b6c99e38ad022c98e68b3 /Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp
parent62a8c26b73e874005c94969da9605fb9fd421b3c (diff)
downloadserenity-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/SVGPolylineElement.cpp')
-rw-r--r--Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp
index 38ff8c81c9..3447f99e74 100644
--- a/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp
+++ b/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <LibWeb/HTML/Window.h>
+#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/SVG/AttributeNames.h>
#include <LibWeb/SVG/AttributeParser.h>
#include <LibWeb/SVG/SVGPolylineElement.h>
@@ -14,7 +14,7 @@ namespace Web::SVG {
SVGPolylineElement::SVGPolylineElement(DOM::Document& document, DOM::QualifiedName qualified_name)
: SVGGeometryElement(document, qualified_name)
{
- set_prototype(&window().cached_web_prototype("SVGPolylineElement"));
+ set_prototype(&Bindings::cached_web_prototype(realm(), "SVGPolylineElement"));
}
void SVGPolylineElement::parse_attribute(FlyString const& name, String const& value)