| Index: third_party/WebKit/Source/core/svg/SVGGElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGGElement.cpp b/third_party/WebKit/Source/core/svg/SVGGElement.cpp
|
| index 3198284ca099b9109146d58db4c00fe05b9b0d7c..1d5541a8c72008b31a06d6dc792632bc0d45ca21 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGGElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGGElement.cpp
|
| @@ -48,8 +48,7 @@ bool SVGGElement::layoutObjectIsNeeded(const ComputedStyle&) {
|
| // Unlike SVGElement::layoutObjectIsNeeded(), we still create layoutObjects,
|
| // even if display is set to 'none' - which is special to SVG <g> container
|
| // elements.
|
| - return parentOrShadowHostElement() &&
|
| - parentOrShadowHostElement()->isSVGElement() && isValid();
|
| + return isValid() && hasSVGParent();
|
| }
|
|
|
| } // namespace blink
|
|
|