diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG/SVGPolygonElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/SVG/SVGPolygonElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGPolygonElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGPolygonElement.cpp index 00d2644b6d..05d9004d46 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGPolygonElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGPolygonElement.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/SVGPolygonElement.h> @@ -14,7 +14,7 @@ namespace Web::SVG { SVGPolygonElement::SVGPolygonElement(DOM::Document& document, DOM::QualifiedName qualified_name) : SVGGeometryElement(document, qualified_name) { - set_prototype(&window().cached_web_prototype("SVGPolygonElement")); + set_prototype(&Bindings::cached_web_prototype(realm(), "SVGPolygonElement")); } void SVGPolygonElement::parse_attribute(FlyString const& name, String const& value) |