2021-09-18 01:04:19 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <AK/StringBuilder.h>
|
|
|
|
#include <LibWeb/DOM/Document.h>
|
|
|
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
|
|
|
#include <LibWeb/SVG/SVGGElement.h>
|
|
|
|
|
|
|
|
namespace Web::SVG {
|
|
|
|
|
2023-11-19 21:47:52 +03:00
|
|
|
JS_DEFINE_ALLOCATOR(SVGGElement);
|
|
|
|
|
2022-02-18 23:00:52 +03:00
|
|
|
SVGGElement::SVGGElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
2021-09-18 01:04:19 +03:00
|
|
|
: SVGGraphicsElement(document, move(qualified_name))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-10-17 15:41:50 +03:00
|
|
|
JS::GCPtr<Layout::Node> SVGGElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
|
2021-09-18 01:04:19 +03:00
|
|
|
{
|
2022-10-17 15:41:50 +03:00
|
|
|
return heap().allocate_without_realm<Layout::SVGGraphicsBox>(document(), *this, move(style));
|
2021-09-18 01:04:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|