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);
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DECLARE_ALLOCATOR(SVGTextElement);
|
2023-07-22 19:24:55 +01:00
|
|
|
|
|
|
|
public:
|
2024-12-20 16:35:12 +01:00
|
|
|
virtual GC::Ptr<Layout::Node> create_layout_node(GC::Ref<CSS::ComputedProperties>) 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
|
|
|
};
|
|
|
|
|
|
|
|
}
|