Index: Source/core/svg/SVGClipPathElement.cpp |
diff --git a/Source/core/svg/SVGClipPathElement.cpp b/Source/core/svg/SVGClipPathElement.cpp |
index b9b8482dc1570382517200d99e9ea06c1308c364..66c606d2dc8f50f49e05dc0c4650d468096cd1c0 100644 |
--- a/Source/core/svg/SVGClipPathElement.cpp |
+++ b/Source/core/svg/SVGClipPathElement.cpp |
@@ -44,16 +44,16 @@ DEFINE_NODE_FACTORY(SVGClipPathElement) |
void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName) |
{ |
- if (attrName != SVGNames::clipPathUnitsAttr) { |
- SVGGraphicsElement::svgAttributeChanged(attrName); |
+ if (attrName == SVGNames::clipPathUnitsAttr) { |
+ SVGElement::InvalidationGuard invalidationGuard(this); |
+ |
+ LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->layoutObject()); |
+ if (renderer) |
+ renderer->invalidateCacheAndMarkForLayout(); |
return; |
} |
- SVGElement::InvalidationGuard invalidationGuard(this); |
- |
- LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->layoutObject()); |
- if (renderer) |
- renderer->invalidateCacheAndMarkForLayout(); |
+ SVGGraphicsElement::svgAttributeChanged(attrName); |
} |
void SVGClipPathElement::childrenChanged(const ChildrenChange& change) |