#ifndef SVGPolyElement_h
#define SVGPolyElement_h
#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGLangSpace.h"
#include "SVGPointList.h"
#include "SVGStyledTransformableElement.h"
#include "SVGTests.h"
namespace WebCore {
class SVGPolyElement : public SVGStyledTransformableElement
, public SVGTests
, public SVGLangSpace
, public SVGExternalResourcesRequired {
public:
SVGListPropertyTearOff<SVGPointList>* points();
SVGListPropertyTearOff<SVGPointList>* animatedPoints();
SVGPointList& pointList() const { return m_points.value; }
static const SVGPropertyInfo* pointsPropertyInfo();
protected:
SVGPolyElement(const QualifiedName&, Document*);
private:
virtual bool isValid() const { return SVGTests::isValid(); }
virtual bool supportsFocus() const { return true; }
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(Attribute*) OVERRIDE;
virtual void svgAttributeChanged(const QualifiedName&);
virtual bool supportsMarkers() const { return true; }
static void synchronizePoints(void* contextElement);
static PassRefPtr<SVGAnimatedProperty> lookupOrCreatePointsWrapper(void* contextElement);
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPolyElement)
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); }
protected:
mutable SVGSynchronizableAnimatedProperty<SVGPointList> m_points;
};
}
#endif // ENABLE(SVG)
#endif