2021-09-18 00:04:19 +02:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2021, Andreas Kling <andreas@ladybird.org>
|
2021-09-18 00:04:19 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <AK/StringBuilder.h>
|
2024-08-16 16:30:06 +01:00
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
|
|
|
#include <LibWeb/Bindings/SVGGElementPrototype.h>
|
2021-09-18 00:04:19 +02:00
|
|
|
#include <LibWeb/DOM/Document.h>
|
|
|
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
|
|
|
#include <LibWeb/SVG/SVGGElement.h>
|
|
|
|
|
|
|
|
namespace Web::SVG {
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DEFINE_ALLOCATOR(SVGGElement);
|
2023-11-19 19:47:52 +01:00
|
|
|
|
2022-02-18 21:00:52 +01:00
|
|
|
SVGGElement::SVGGElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
2021-09-18 00:04:19 +02:00
|
|
|
: SVGGraphicsElement(document, move(qualified_name))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-08-16 16:30:06 +01:00
|
|
|
void SVGGElement::initialize(JS::Realm& realm)
|
|
|
|
{
|
|
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGGElement);
|
2025-04-20 16:22:57 +02:00
|
|
|
Base::initialize(realm);
|
2024-08-16 16:30:06 +01:00
|
|
|
}
|
|
|
|
|
2024-12-20 16:35:12 +01:00
|
|
|
GC::Ptr<Layout::Node> SVGGElement::create_layout_node(GC::Ref<CSS::ComputedProperties> style)
|
2021-09-18 00:04:19 +02:00
|
|
|
{
|
2024-11-14 06:13:46 +13:00
|
|
|
return heap().allocate<Layout::SVGGraphicsBox>(document(), *this, move(style));
|
2021-09-18 00:04:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|