SVGCursorElement.h [plain text]
#ifndef SVGCursorElement_h
#define SVGCursorElement_h
#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedLength.h"
#include "SVGAnimatedString.h"
#include "SVGElement.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGTests.h"
#include "SVGURIReference.h"
namespace WebCore {
class SVGCursorElement : public SVGElement,
public SVGTests,
public SVGExternalResourcesRequired,
public SVGURIReference {
public:
static PassRefPtr<SVGCursorElement> create(const QualifiedName&, Document*);
virtual ~SVGCursorElement();
void addClient(SVGElement*);
void removeClient(SVGElement*);
void removeReferencedElement(SVGElement*);
private:
SVGCursorElement(const QualifiedName&, Document*);
virtual bool isValid() const { return SVGTests::isValid(); }
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(Attribute*) OVERRIDE;
virtual void svgAttributeChanged(const QualifiedName&);
virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCursorElement)
DECLARE_ANIMATED_LENGTH(X, x)
DECLARE_ANIMATED_LENGTH(Y, y)
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); }
HashSet<SVGElement*> m_clients;
};
}
#endif // ENABLE(SVG)
#endif