mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Linus Groh
parent
62a8c26b73
commit
320dddde6a
@@ -12,7 +12,7 @@ namespace Web::SVG {
|
||||
SVGClipPathElement::SVGClipPathElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||||
: SVGElement(document, move(qualified_name))
|
||||
{
|
||||
set_prototype(&window().cached_web_prototype("SVGClipPathElement"));
|
||||
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGClipPathElement"));
|
||||
}
|
||||
|
||||
SVGClipPathElement::~SVGClipPathElement()
|
||||
|
||||
Reference in New Issue
Block a user