mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +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
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/ADKaster
Commit: 320dddde6a
Pull-request: https://github.com/SerenityOS/serenity/pull/15349
Reviewed-by: https://github.com/linusg ✅
20 changed files with 87 additions and 93 deletions
|
@ -20,7 +20,7 @@ namespace Web::SVG {
|
|||
SVGSVGElement::SVGSVGElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||||
: SVGGraphicsElement(document, qualified_name)
|
||||
{
|
||||
set_prototype(&window().cached_web_prototype("SVGSVGElement"));
|
||||
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGSVGElement"));
|
||||
}
|
||||
|
||||
RefPtr<Layout::Node> SVGSVGElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue