2023-07-22 19:24:55 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2023, MacDue <macdue@dueutil.tech>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/SVG/SVGTextPositioningElement.h>
|
|
|
|
|
#include <LibWeb/WebIDL/ExceptionOr.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::SVG {
|
|
|
|
|
|
|
|
|
|
// https://svgwg.org/svg2-draft/text.html#InterfaceSVGTextElement
|
|
|
|
|
class SVGTextElement : public SVGTextPositioningElement {
|
|
|
|
|
WEB_PLATFORM_OBJECT(SVGTextElement, SVGTextPositioningElement);
|
2023-11-19 19:47:52 +01:00
|
|
|
JS_DECLARE_ALLOCATOR(SVGTextElement);
|
2023-07-22 19:24:55 +01:00
|
|
|
|
|
|
|
|
public:
|
2024-10-26 17:42:27 +02:00
|
|
|
virtual JS::GCPtr<Layout::Node> create_layout_node(CSS::StyleProperties) override;
|
2023-07-22 19:24:55 +01:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
SVGTextElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
|
|
2023-08-07 08:41:28 +02:00
|
|
|
virtual void initialize(JS::Realm&) override;
|
2023-07-22 19:24:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|