SVGTextPathBox.cpp 546 B

12345678910111213141516171819202122
  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. SVGTextPathBox::SVGTextPathBox(DOM::Document& document, SVG::SVGTextPathElement& element, NonnullRefPtr<CSS::StyleProperties> properties)
  10. : SVGGraphicsBox(document, element, properties)
  11. {
  12. }
  13. JS::GCPtr<Painting::Paintable> SVGTextPathBox::create_paintable() const
  14. {
  15. return Painting::SVGPathPaintable::create(*this);
  16. }
  17. }