mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
24 lines
584 B
C++
24 lines
584 B
C++
/*
|
|
* 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 {
|
|
|
|
JS_DEFINE_ALLOCATOR(SVGTextPathBox);
|
|
|
|
SVGTextPathBox::SVGTextPathBox(DOM::Document& document, SVG::SVGTextPathElement& element, NonnullRefPtr<CSS::StyleProperties> properties)
|
|
: SVGGraphicsBox(document, element, properties)
|
|
{
|
|
}
|
|
|
|
JS::GCPtr<Painting::Paintable> SVGTextPathBox::create_paintable() const
|
|
{
|
|
return Painting::SVGPathPaintable::create(*this);
|
|
}
|
|
|
|
}
|