#ifndef SVGTRefElement_h
#define SVGTRefElement_h
#if ENABLE(SVG)
#include "SVGTextPositioningElement.h"
#include "SVGURIReference.h"
namespace WebCore {
class SVGTRefTargetEventListener;
class SVGTRefElement FINAL : public SVGTextPositioningElement,
public SVGURIReference {
public:
static PassRefPtr<SVGTRefElement> create(const QualifiedName&, Document*);
private:
friend class SVGTRefTargetEventListener;
SVGTRefElement(const QualifiedName&, Document*);
virtual ~SVGTRefElement();
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual void svgAttributeChanged(const QualifiedName&);
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const;
virtual bool rendererIsNeeded(const NodeRenderingContext&);
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
virtual void removedFrom(ContainerNode*) OVERRIDE;
void updateReferencedText(Element*);
void detachTarget();
virtual void buildPendingResource();
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTRefElement)
DECLARE_ANIMATED_STRING(Href, href)
END_DECLARE_ANIMATED_PROPERTIES
RefPtr<SVGTRefTargetEventListener> m_targetListener;
};
}
#endif // ENABLE(SVG)
#endif