2020-10-05 20:14:36 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Matthew Olsson <matthewcolsson@gmail.com>
|
2022-02-27 17:00:04 -03:00
|
|
|
* Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
|
2020-10-05 20:14:36 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-10-05 20:14:36 -03:00
|
|
|
*/
|
|
|
|
|
|
2022-02-11 09:37:22 -03:00
|
|
|
#include <LibWeb/Layout/SVGGeometryBox.h>
|
2023-11-04 18:31:35 -03:00
|
|
|
#include <LibWeb/Painting/SVGPathPaintable.h>
|
2020-10-05 20:14:36 -03:00
|
|
|
#include <LibWeb/SVG/SVGPathElement.h>
|
2022-02-27 17:00:04 -03:00
|
|
|
#include <LibWeb/SVG/SVGSVGElement.h>
|
2020-10-05 20:14:36 -03:00
|
|
|
|
2020-11-22 11:53:01 -03:00
|
|
|
namespace Web::Layout {
|
2020-10-05 20:14:36 -03:00
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC_DEFINE_ALLOCATOR(SVGGeometryBox);
|
2024-04-06 14:16:04 -03:00
|
|
|
|
2024-10-26 12:42:27 -03:00
|
|
|
SVGGeometryBox::SVGGeometryBox(DOM::Document& document, SVG::SVGGeometryElement& element, CSS::StyleProperties properties)
|
2020-11-22 11:53:01 -03:00
|
|
|
: SVGGraphicsBox(document, element, properties)
|
2020-10-05 20:14:36 -03:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC::Ptr<Painting::Paintable> SVGGeometryBox::create_paintable() const
|
2022-03-10 18:38:08 -03:00
|
|
|
{
|
2023-11-04 18:31:35 -03:00
|
|
|
return Painting::SVGPathPaintable::create(*this);
|
2022-03-10 18:38:08 -03:00
|
|
|
}
|
|
|
|
|
|
2020-10-05 20:14:36 -03:00
|
|
|
}
|