| Index: Source/core/svg/SVGImageElement.cpp
|
| diff --git a/Source/core/svg/SVGImageElement.cpp b/Source/core/svg/SVGImageElement.cpp
|
| index 39aa67442aff27613887e07d993e5c84bc3c30b2..71aec23345889ab97d7317cd17915369d7e38f84 100644
|
| --- a/Source/core/svg/SVGImageElement.cpp
|
| +++ b/Source/core/svg/SVGImageElement.cpp
|
| @@ -159,13 +159,10 @@ 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.
|
| markForLayoutAndParentResourceInvalidation(renderer);
|
| return;
|
| }
|
|
|