2023-06-08 15:32:33 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/Layout/SVGTextBox.h>
|
2023-11-04 18:31:35 -03:00
|
|
|
#include <LibWeb/Painting/SVGPathPaintable.h>
|
2023-06-08 15:32:33 -03:00
|
|
|
#include <LibWeb/SVG/SVGSVGElement.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC_DEFINE_ALLOCATOR(SVGTextBox);
|
2024-04-06 14:16:04 -03:00
|
|
|
|
2024-12-20 12:35:12 -03:00
|
|
|
SVGTextBox::SVGTextBox(DOM::Document& document, SVG::SVGTextPositioningElement& element, GC::Ref<CSS::ComputedProperties> style)
|
|
|
|
|
: SVGGraphicsBox(document, element, style)
|
2023-06-08 15:32:33 -03:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC::Ptr<Painting::Paintable> SVGTextBox::create_paintable() const
|
2023-06-08 15:32:33 -03:00
|
|
|
{
|
2023-11-04 18:31:35 -03:00
|
|
|
return Painting::SVGPathPaintable::create(*this);
|
2023-06-08 15:32:33 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|