Index: third_party/WebKit/Source/core/svg/SVGSVGElement.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp |
index eb3e57ad754fcf4904bb7862a2ebec366cacc232..1ab62db9ba717ac6f33967ce43b46bea8e9bf28b 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp |
@@ -277,7 +277,7 @@ void SVGSVGElement::svgAttributeChanged(const QualifiedName& attrName) |
if (updateRelativeLengthsOrViewBox |
|| SVGZoomAndPan::isKnownAttribute(attrName)) { |
SVGElement::InvalidationGuard invalidationGuard(this); |
- if (layoutObject()) |
+ if (hasLayoutObject()) |
markForLayoutAndParentResourceInvalidation(layoutObject()); |
return; |
} |