Index: Source/core/svg/SVGImageElement.cpp |
diff --git a/Source/core/svg/SVGImageElement.cpp b/Source/core/svg/SVGImageElement.cpp |
index 39aa67442aff27613887e07d993e5c84bc3c30b2..56f6d90bbcecf56ecebf74727a2df97b04e2db8b 100644 |
--- a/Source/core/svg/SVGImageElement.cpp |
+++ b/Source/core/svg/SVGImageElement.cpp |
@@ -159,13 +159,11 @@ void SVGImageElement::svgAttributeChanged(const QualifiedName& attrName) |
if (!renderer) |
return; |
- if (isLengthAttribute) { |
- if (toLayoutSVGImage(renderer)->updateImageViewport()) |
- markForLayoutAndParentResourceInvalidation(renderer); |
- return; |
- } |
- |
- if (attrName == SVGNames::preserveAspectRatioAttr) { |
+ if (isLengthAttribute || attrName == SVGNames::preserveAspectRatioAttr) { |
+ // FIXME: if isLengthAttribute then we should avoid this |
+ // call if the viewport didn't change, however since we don't |
+ // have the computed style yet we can't use updateImageViewport. |
+ // See http://crbug.com/466200. |
markForLayoutAndParentResourceInvalidation(renderer); |
return; |
} |