#ifndef KSVG_SVGPolyElementImpl_H
#define KSVG_SVGPolyElementImpl_H
#if SVG_SUPPORT
#include "SVGTests.h"
#include "svgpathparser.h"
#include "SVGLangSpace.h"
#include "SVGStyledTransformableElement.h"
#include "SVGAnimatedPoints.h"
#include "SVGExternalResourcesRequired.h"
namespace WebCore
{
class SVGPolyElement : public SVGStyledTransformableElement,
public SVGTests,
public SVGLangSpace,
public SVGExternalResourcesRequired,
public SVGAnimatedPoints,
public SVGPolyParser
{
public:
SVGPolyElement(const QualifiedName&, Document*);
virtual ~SVGPolyElement();
virtual bool isValid() const { return SVGTests::isValid(); }
virtual SVGPointList *points() const;
virtual SVGPointList *animatedPoints() const;
virtual void parseMappedAttribute(MappedAttribute *attr);
virtual bool rendererIsNeeded(RenderStyle *style) { return StyledElement::rendererIsNeeded(style); }
virtual void notifyAttributeChange() const;
private:
mutable RefPtr<SVGPointList> m_points;
virtual void svgPolyTo(double x1, double y1, int nr) const;
};
};
#endif // SVG_SUPPORT
#endif