mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibWeb: Add SVGURIReference
This commit is contained in:
parent
55646893d8
commit
968bec9844
4 changed files with 65 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue