mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 10:03:21 +00:00
27 lines
639 B
C++
27 lines
639 B
C++
|
|
/*
|
||
|
|
* Copyright (c) 2024, Andreas Kling <andreas@ladybird.org>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
||
|
|
#include <LibWeb/SVG/SVGAElement.h>
|
||
|
|
|
||
|
|
namespace Web::SVG {
|
||
|
|
|
||
|
|
JS_DEFINE_ALLOCATOR(SVGAElement);
|
||
|
|
|
||
|
|
SVGAElement::SVGAElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||
|
|
: SVGGraphicsElement(document, move(qualified_name))
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
SVGAElement::~SVGAElement() = default;
|
||
|
|
|
||
|
|
JS::GCPtr<Layout::Node> SVGAElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
|
||
|
|
{
|
||
|
|
return heap().allocate_without_realm<Layout::SVGGraphicsBox>(document(), *this, move(style));
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|