#ifndef SVGAElement_h
#define SVGAElement_h
#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGLangSpace.h"
#include "SVGStyledTransformableElement.h"
#include "SVGTests.h"
#include "SVGURIReference.h"
namespace WebCore {
class SVGAElement : public SVGStyledTransformableElement,
public SVGURIReference,
public SVGTests,
public SVGLangSpace,
public SVGExternalResourcesRequired {
public:
static PassRefPtr<SVGAElement> create(const QualifiedName&, Document*);
protected:
virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
private:
SVGAElement(const QualifiedName&, Document*);
virtual bool isValid() const { return SVGTests::isValid(); }
virtual String title() const;
virtual String target() const { return svgTarget(); }
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(Attribute*) OVERRIDE;
virtual void svgAttributeChanged(const QualifiedName&);
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
virtual void defaultEventHandler(Event*);
virtual bool supportsFocus() const;
virtual bool isMouseFocusable() const;
virtual bool isKeyboardFocusable(KeyboardEvent*) const;
virtual bool isFocusable() const;
virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const;
virtual bool willRespondToMouseClickEvents() OVERRIDE;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGAElement)
DECLARE_ANIMATED_STRING(SVGTarget, svgTarget)
DECLARE_ANIMATED_STRING(Href, href)
DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFeatures(this); }
virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequiredExtensions(this); }
virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLanguage(this); }
};
}
#endif // ENABLE(SVG)
#endif // SVGAElement_h