#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; }
protected:
SVGPolyElement(const QualifiedName&, Document*);
private:
virtual bool isValid() const { return SVGTests::isValid(); }
virtual void parseMappedAttribute(Attribute*);
virtual void svgAttributeChanged(const QualifiedName&);
virtual void synchronizeProperty(const QualifiedName&);
virtual void fillAttributeToPropertyTypeMap();
virtual AttributeToPropertyTypeMap& attributeToPropertyTypeMap();
virtual bool supportsMarkers() const { return true; }
DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
void synchronizePoints();
protected:
mutable SVGSynchronizableAnimatedProperty<SVGPointList> m_points;
RefPtr<SVGAnimatedListPropertyTearOff<SVGPointList> > m_animatablePointsList;
};
}
#endif // ENABLE(SVG)
#endif