mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +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
20 changed files with 87 additions and 93 deletions
|
@ -13,7 +13,7 @@ SVGElement::SVGElement(DOM::Document& document, DOM::QualifiedName qualified_nam
|
|||
: Element(document, move(qualified_name))
|
||||
, m_dataset(HTML::DOMStringMap::create(*this))
|
||||
{
|
||||
set_prototype(&window().cached_web_prototype("SVGElement"));
|
||||
set_prototype(&Bindings::cached_web_prototype(realm(), "SVGElement"));
|
||||
}
|
||||
|
||||
void SVGElement::visit_edges(Cell::Visitor& visitor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue