2023-12-17 15:35:21 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2023, MacDue <macdue@dueutil.tech>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/Layout/SVGTextPathBox.h>
|
|
|
|
|
#include <LibWeb/Painting/SVGPathPaintable.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC_DEFINE_ALLOCATOR(SVGTextPathBox);
|
2024-04-06 14:16:04 -03:00
|
|
|
|
2024-10-26 12:42:27 -03:00
|
|
|
SVGTextPathBox::SVGTextPathBox(DOM::Document& document, SVG::SVGTextPathElement& element, CSS::StyleProperties properties)
|
2023-12-17 15:35:21 -03:00
|
|
|
: SVGGraphicsBox(document, element, properties)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC::Ptr<Painting::Paintable> SVGTextPathBox::create_paintable() const
|
2023-12-17 15:35:21 -03:00
|
|
|
{
|
|
|
|
|
return Painting::SVGPathPaintable::create(*this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|