Serenity Operating System
1/*
2 * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include <AK/StringBuilder.h>
8#include <LibWeb/DOM/Document.h>
9#include <LibWeb/Layout/SVGGraphicsBox.h>
10#include <LibWeb/SVG/SVGGElement.h>
11
12namespace Web::SVG {
13
14SVGGElement::SVGGElement(DOM::Document& document, DOM::QualifiedName qualified_name)
15 : SVGGraphicsElement(document, move(qualified_name))
16{
17}
18
19JS::GCPtr<Layout::Node> SVGGElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
20{
21 return heap().allocate_without_realm<Layout::SVGGraphicsBox>(document(), *this, move(style));
22}
23
24}