summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGImageElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGImageElement.cpp')
-rw-r--r--WebCore/svg/SVGImageElement.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/WebCore/svg/SVGImageElement.cpp b/WebCore/svg/SVGImageElement.cpp
index f6fa013..fcfa54f 100644
--- a/WebCore/svg/SVGImageElement.cpp
+++ b/WebCore/svg/SVGImageElement.cpp
@@ -108,8 +108,13 @@ void SVGImageElement::svgAttributeChanged(const QualifiedName& attrName)
return;
}
- if (isLengthAttribute
- || attrName == SVGNames::preserveAspectRatioAttr
+ if (isLengthAttribute) {
+ renderer->updateFromElement();
+ RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer, false);
+ return;
+ }
+
+ if (attrName == SVGNames::preserveAspectRatioAttr
|| SVGTests::isKnownAttribute(attrName)
|| SVGLangSpace::isKnownAttribute(attrName)
|| SVGExternalResourcesRequired::isKnownAttribute(attrName))