SVGTextPathBox.cpp 569 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2023, MacDue <macdue@dueutil.tech>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/Layout/SVGTextPathBox.h>
  7. #include <LibWeb/Painting/SVGPathPaintable.h>
  8. namespace Web::Layout {
  9. JS_DEFINE_ALLOCATOR(SVGTextPathBox);
  10. SVGTextPathBox::SVGTextPathBox(DOM::Document& document, SVG::SVGTextPathElement& element, CSS::StyleProperties properties)
  11. : SVGGraphicsBox(document, element, properties)
  12. {
  13. }
  14. JS::GCPtr<Painting::Paintable> SVGTextPathBox::create_paintable() const
  15. {
  16. return Painting::SVGPathPaintable::create(*this);
  17. }
  18. }