#pragma once
#include "SVGExternalResourcesRequired.h"
#include "SVGGraphicsElement.h"
#include "SVGURIReference.h"
namespace WebCore {
class SVGAElement final : public SVGGraphicsElement, public SVGExternalResourcesRequired, public SVGURIReference {
WTF_MAKE_ISO_ALLOCATED(SVGAElement);
public:
static Ref<SVGAElement> create(const QualifiedName&, Document&);
String target() const final { return m_target.currentValue(attributeOwnerProxy()); }
RefPtr<SVGAnimatedString> targetAnimated() { return m_target.animatedProperty(attributeOwnerProxy()); }
private:
SVGAElement(const QualifiedName&, Document&);
using AttributeOwnerProxy = SVGAttributeOwnerProxyImpl<SVGAElement, SVGGraphicsElement, SVGExternalResourcesRequired, SVGURIReference>;
static AttributeOwnerProxy::AttributeRegistry& attributeRegistry() { return AttributeOwnerProxy::attributeRegistry(); }
static void registerAttributes();
const SVGAttributeOwnerProxy& attributeOwnerProxy() const final { return m_attributeOwnerProxy; }
void parseAttribute(const QualifiedName&, const AtomicString&) final;
void svgAttributeChanged(const QualifiedName&) final;
RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final;
bool childShouldCreateRenderer(const Node&) const final;
bool isValid() const final { return SVGTests::isValid(); }
String title() const final;
void defaultEventHandler(Event&) final;
bool supportsFocus() const final;
bool isMouseFocusable() const final;
bool isKeyboardFocusable(KeyboardEvent*) const final;
bool isURLAttribute(const Attribute&) const final;
bool canStartSelection() const final;
int tabIndex() const final;
bool willRespondToMouseClickEvents() final;
AttributeOwnerProxy m_attributeOwnerProxy { *this };
SVGAnimatedStringAttribute m_target;
};
}