24 #include "wtf/Platform.h"
31 #include "RenderPath.h"
38 SVGPolyElement::SVGPolyElement(
const QualifiedName& tagName, Document* doc)
39 : SVGStyledTransformableElement(tagName, doc)
42 , SVGExternalResourcesRequired()
44 , m_ignoreAttributeChanges(false)
48 SVGPolyElement::~SVGPolyElement()
52 SVGPointList* SVGPolyElement::points()
const
57 return m_points.get();
60 SVGPointList* SVGPolyElement::animatedPoints()
const
66 void SVGPolyElement::parseMappedAttribute(MappedAttribute* attr)
68 const AtomicString& value = attr->value();
73 if (!pointsListFromSVGData(points(), value)) {
78 if (SVGTests::parseMappedAttribute(attr))
80 if (SVGLangSpace::parseMappedAttribute(attr))
82 if (SVGExternalResourcesRequired::parseMappedAttribute(attr))
84 SVGStyledTransformableElement::parseMappedAttribute(attr);
88 void SVGPolyElement::svgAttributeChanged(
const QualifiedName& attrName)
90 if (m_ignoreAttributeChanges)
93 SVGStyledTransformableElement::svgAttributeChanged(attrName);
99 m_ignoreAttributeChanges =
true;
100 renderer()->setNeedsLayout(
true);
107 kDebug() <<
"fixme!!!!!!!!!" << endl;
120 m_ignoreAttributeChanges =
false;
124 if (SVGTests::isKnownAttribute(attrName) ||
125 SVGLangSpace::isKnownAttribute(attrName) ||
126 SVGExternalResourcesRequired::isKnownAttribute(attrName) ||
127 SVGStyledTransformableElement::isKnownAttribute(attrName))
128 renderer()->setNeedsLayout(
true);
133 #endif // ENABLE(SVG)