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..235959e02d8593773da0d0264988034883cc00bf 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 isValidAndInSVGSubtree(); |
} |
} // namespace blink |