2024-06-23 17:05:47 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2024, Andreas Kling <andreas@ladybird.org>
|
2024-07-16 12:08:34 +01:00
|
|
|
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
2024-06-23 17:05:47 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibWeb/SVG/SVGGraphicsElement.h>
|
2024-07-16 13:43:42 +01:00
|
|
|
#include <LibWeb/SVG/SVGURIReference.h>
|
2024-06-23 17:05:47 +02:00
|
|
|
|
|
|
|
namespace Web::SVG {
|
|
|
|
|
2024-07-16 13:43:42 +01:00
|
|
|
class SVGAElement final
|
|
|
|
: public SVGGraphicsElement
|
|
|
|
, public SVGURIReferenceMixin<SupportsXLinkHref::Yes> {
|
2024-06-23 17:05:47 +02:00
|
|
|
WEB_PLATFORM_OBJECT(SVGAElement, SVGGraphicsElement);
|
|
|
|
JS_DECLARE_ALLOCATOR(SVGAElement);
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual ~SVGAElement() override;
|
|
|
|
|
2024-07-16 12:08:34 +01:00
|
|
|
JS::NonnullGCPtr<DOM::DOMTokenList> rel_list();
|
|
|
|
|
2024-10-26 17:42:27 +02:00
|
|
|
virtual JS::GCPtr<Layout::Node> create_layout_node(CSS::StyleProperties) override;
|
2024-06-28 14:51:57 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
SVGAElement(DOM::Document&, DOM::QualifiedName);
|
2024-07-16 12:08:34 +01:00
|
|
|
|
2024-06-28 14:51:57 +02:00
|
|
|
virtual void initialize(JS::Realm&) override;
|
2024-07-16 12:08:34 +01:00
|
|
|
virtual void visit_edges(Cell::Visitor&) override;
|
|
|
|
|
|
|
|
// ^DOM::Element
|
|
|
|
virtual void attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value) override;
|
2024-08-14 18:45:18 +01:00
|
|
|
virtual i32 default_tab_index_value() const override;
|
2024-07-16 12:08:34 +01:00
|
|
|
|
|
|
|
JS::GCPtr<DOM::DOMTokenList> m_rel_list;
|
2024-06-23 17:05:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|