SVGTextPathElement.h 764 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2023, MacDue <macdue@dueutil.tech>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/SVG/SVGGeometryElement.h>
  8. #include <LibWeb/SVG/SVGTextContentElement.h>
  9. namespace Web::SVG {
  10. // https://svgwg.org/svg2-draft/text.html#TextPathElement
  11. class SVGTextPathElement : public SVGTextContentElement {
  12. WEB_PLATFORM_OBJECT(SVGTextPathElement, SVGTextContentElement);
  13. JS_DECLARE_ALLOCATOR(SVGTextPathElement);
  14. public:
  15. virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
  16. JS::GCPtr<SVGGeometryElement const> path_or_shape() const;
  17. protected:
  18. SVGTextPathElement(DOM::Document&, DOM::QualifiedName);
  19. virtual void initialize(JS::Realm&) override;
  20. };
  21. }