Index: Source/core/svg/SVGSVGElement.cpp |
diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp |
index d883e79b316069430e0393eaf58b7609d7cb92f4..eb104580b970a59a9783bf1276eef58018ab866a 100644 |
--- a/Source/core/svg/SVGSVGElement.cpp |
+++ b/Source/core/svg/SVGSVGElement.cpp |
@@ -529,6 +529,8 @@ bool SVGSVGElement::rendererIsNeeded(const RenderStyle& style) |
// but many things in FrameView and SVGImage depend on the RenderSVGRoot when |
// they should instead depend on the RenderView. |
// https://bugs.webkit.org/show_bug.cgi?id=103493 |
+ if (!isValid()) |
+ return false; |
if (document().documentElement() == this) |
return true; |
return Element::rendererIsNeeded(style); |