1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibWeb: Add SVGURIReference

This commit is contained in:
Luke Wilde 2023-11-14 00:20:44 +00:00 committed by Andreas Kling
parent 55646893d8
commit 968bec9844
4 changed files with 65 additions and 2 deletions

View file

@ -8,11 +8,14 @@
#include <LibWeb/SVG/SVGGeometryElement.h>
#include <LibWeb/SVG/SVGTextContentElement.h>
#include <LibWeb/SVG/SVGURIReference.h>
namespace Web::SVG {
// https://svgwg.org/svg2-draft/text.html#TextPathElement
class SVGTextPathElement : public SVGTextContentElement {
class SVGTextPathElement
: public SVGTextContentElement
, public SVGURIReferenceMixin<SupportsXLinkHref::Yes> {
WEB_PLATFORM_OBJECT(SVGTextPathElement, SVGTextContentElement);
JS_DECLARE_ALLOCATOR(SVGTextPathElement);
@ -25,6 +28,7 @@ protected:
SVGTextPathElement(DOM::Document&, DOM::QualifiedName);
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;
};
}