mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue