Index: Source/core/svg/SVGGElement.cpp |
diff --git a/Source/core/svg/SVGGElement.cpp b/Source/core/svg/SVGGElement.cpp |
index b9cc50355f2ca895fc93f5e49c5ef77468f1c942..c2e1d965952357f095f3f950234b3392977923c0 100644 |
--- a/Source/core/svg/SVGGElement.cpp |
+++ b/Source/core/svg/SVGGElement.cpp |
@@ -82,7 +82,7 @@ bool SVGGElement::rendererIsNeeded(const RenderStyle&) |
{ |
// Unlike SVGElement::rendererIsNeeded(), we still create renderers, even if |
// display is set to 'none' - which is special to SVG <g> container elements. |
- return parentOrShadowHostElement() && parentOrShadowHostElement()->isSVGElement(); |
+ return ((parentOrShadowHostElement() && parentOrShadowHostElement()->isSVGElement()) && isValid()); |
esprehn
2014/06/17 23:09:40
Remove parens, it's all &&.
|
} |
} |