| Index: third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp b/third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp
|
| index ef6163ef7b2b9d0e1f6ad0e7b482d05612fe6a0b..f81bded9c0b4b05b1a3dddb95ee176194925049a 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp
|
| @@ -136,20 +136,16 @@ void SVGGraphicsElement::svgAttributeChanged(const QualifiedName& attrName) {
|
| }
|
|
|
| if (attrName == SVGNames::transformAttr) {
|
| - LayoutObject* object = layoutObject();
|
| - if (!object)
|
| - return;
|
| -
|
| - invalidateSVGPresentationAttributeStyle();
|
| -
|
| SVGElement::InvalidationGuard invalidationGuard(this);
|
| + invalidateSVGPresentationAttributeStyle();
|
| // TODO(fs): The InvalidationGuard will make sure all instances are
|
| // invalidated, but the style recalc will propagate to instances too. So
|
| // there is some redundant operations being performed here. Could we get
|
| // away with removing the InvalidationGuard?
|
| setNeedsStyleRecalc(LocalStyleChange,
|
| StyleChangeReasonForTracing::fromAttribute(attrName));
|
| - markForLayoutAndParentResourceInvalidation(object);
|
| + if (LayoutObject* object = layoutObject())
|
| + markForLayoutAndParentResourceInvalidation(object);
|
| return;
|
| }
|
|
|
|
|