Index: Source/core/svg/SVGTextPathElement.cpp |
diff --git a/Source/core/svg/SVGTextPathElement.cpp b/Source/core/svg/SVGTextPathElement.cpp |
index 8c42b33d570485456e7da5375ac6faadee618543..49e1bf137e3cfe5cf689e94d5ecc04168fea9a1f 100644 |
--- a/Source/core/svg/SVGTextPathElement.cpp |
+++ b/Source/core/svg/SVGTextPathElement.cpp |
@@ -135,10 +135,12 @@ RenderObject* SVGTextPathElement::createRenderer(RenderStyle*) |
bool SVGTextPathElement::rendererIsNeeded(const RenderStyle& style) |
{ |
- if (parentNode() && (isSVGAElement(*parentNode()) || isSVGTextElement(*parentNode()))) |
- return Element::rendererIsNeeded(style); |
+ if (!parentNode() || !(isSVGAElement(*parentNode()) || isSVGTextElement(*parentNode()))) |
esprehn
2014/06/20 07:58:26
It shouldn't be possible to get in here without a
|
+ return false; |
- return false; |
+ if (!isValid()) |
+ return false; |
+ return Element::rendererIsNeeded(style); |
} |
void SVGTextPathElement::buildPendingResource() |