#ifndef SVGPolyElement_h
#define SVGPolyElement_h
#include "SVGAnimatedBoolean.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGGraphicsElement.h"
#include "SVGNames.h"
#include "SVGPointList.h"
namespace WebCore {
class SVGPolyElement : public SVGGraphicsElement, 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 override { return SVGTests::isValid(); }
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual void svgAttributeChanged(const QualifiedName&) override;
virtual bool supportsMarkers() const override { return true; }
static void synchronizePoints(SVGElement* contextElement);
static PassRefPtr<SVGAnimatedProperty> lookupOrCreatePointsWrapper(SVGElement* contextElement);
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPolyElement)
DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
protected:
mutable SVGSynchronizableAnimatedProperty<SVGPointList> m_points;
};
void isSVGPolyElement(const SVGPolyElement&); bool isSVGPolyElement(const Node&);
NODE_TYPE_CASTS(SVGPolyElement)
}
#endif