2020-10-05 16:14:36 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020, Matthew Olsson <matthewcolsson@gmail.com>
|
2022-02-27 21:00:04 +01:00
|
|
|
* Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
|
2020-10-05 16:14:36 -07:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-10-05 16:14:36 -07:00
|
|
|
*/
|
|
|
|
|
2022-02-11 12:37:22 +00:00
|
|
|
#include <LibWeb/Layout/SVGGeometryBox.h>
|
2022-03-10 22:38:08 +01:00
|
|
|
#include <LibWeb/Painting/SVGGeometryPaintable.h>
|
2020-10-05 16:14:36 -07:00
|
|
|
#include <LibWeb/SVG/SVGPathElement.h>
|
2022-02-27 21:00:04 +01:00
|
|
|
#include <LibWeb/SVG/SVGSVGElement.h>
|
2020-10-05 16:14:36 -07:00
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
namespace Web::Layout {
|
2020-10-05 16:14:36 -07:00
|
|
|
|
2022-02-11 12:37:22 +00:00
|
|
|
SVGGeometryBox::SVGGeometryBox(DOM::Document& document, SVG::SVGGeometryElement& element, NonnullRefPtr<CSS::StyleProperties> properties)
|
2020-11-22 15:53:01 +01:00
|
|
|
: SVGGraphicsBox(document, element, properties)
|
2020-10-05 16:14:36 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-01-11 12:51:49 +01:00
|
|
|
JS::GCPtr<Painting::Paintable> SVGGeometryBox::create_paintable() const
|
2022-03-10 22:38:08 +01:00
|
|
|
{
|
|
|
|
return Painting::SVGGeometryPaintable::create(*this);
|
|
|
|
}
|
|
|
|
|
2020-10-05 16:14:36 -07:00
|
|
|
}
|