Index: Source/core/svg/SVGGElement.cpp |
diff --git a/Source/core/svg/SVGGElement.cpp b/Source/core/svg/SVGGElement.cpp |
index b9cc50355f2ca895fc93f5e49c5ef77468f1c942..eb25fabb054ed0802d76e574ff9c75cbc97d9fdc 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(); |
pdr.
2014/06/19 21:33:48
No need for parenthesis, these are all &&'s
|
} |
} |