SVGTextElement.h 700 B

12345678910111213141516171819202122232425262728
  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/SVGTextPositioningElement.h>
  8. #include <LibWeb/WebIDL/ExceptionOr.h>
  9. namespace Web::SVG {
  10. // https://svgwg.org/svg2-draft/text.html#InterfaceSVGTextElement
  11. class SVGTextElement : public SVGTextPositioningElement {
  12. WEB_PLATFORM_OBJECT(SVGTextElement, SVGTextPositioningElement);
  13. JS_DECLARE_ALLOCATOR(SVGTextElement);
  14. public:
  15. virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
  16. protected:
  17. SVGTextElement(DOM::Document&, DOM::QualifiedName);
  18. virtual void initialize(JS::Realm&) override;
  19. };
  20. }