Index: Source/core/svg/SVGPolyElement.cpp |
diff --git a/Source/core/svg/SVGPolyElement.cpp b/Source/core/svg/SVGPolyElement.cpp |
index daed4b76b93495a0a0609dd77b361d063127a49f..e592d4e54edd1f3aa6895b92b9ad6b18b05080a8 100644 |
--- a/Source/core/svg/SVGPolyElement.cpp |
+++ b/Source/core/svg/SVGPolyElement.cpp |
@@ -42,19 +42,19 @@ DEFINE_TRACE(SVGPolyElement) |
void SVGPolyElement::svgAttributeChanged(const QualifiedName& attrName) |
{ |
- if (attrName != SVGNames::pointsAttr) { |
- SVGGeometryElement::svgAttributeChanged(attrName); |
- return; |
- } |
+ if (attrName == SVGNames::pointsAttr) { |
+ SVGElement::InvalidationGuard invalidationGuard(this); |
- SVGElement::InvalidationGuard invalidationGuard(this); |
+ LayoutSVGShape* renderer = toLayoutSVGShape(this->layoutObject()); |
+ if (!renderer) |
+ return; |
- LayoutSVGShape* renderer = toLayoutSVGShape(this->layoutObject()); |
- if (!renderer) |
+ renderer->setNeedsShapeUpdate(); |
+ markForLayoutAndParentResourceInvalidation(renderer); |
return; |
+ } |
- renderer->setNeedsShapeUpdate(); |
- markForLayoutAndParentResourceInvalidation(renderer); |
+ SVGGeometryElement::svgAttributeChanged(attrName); |
} |
} |