Chromium Code Reviews| Index: Source/core/svg/SVGTextPathElement.cpp |
| diff --git a/Source/core/svg/SVGTextPathElement.cpp b/Source/core/svg/SVGTextPathElement.cpp |
| index 8c42b33d570485456e7da5375ac6faadee618543..5a72697610668b086eb0829c98eaf95e6a830faa 100644 |
| --- a/Source/core/svg/SVGTextPathElement.cpp |
| +++ b/Source/core/svg/SVGTextPathElement.cpp |
| @@ -135,7 +135,7 @@ RenderObject* SVGTextPathElement::createRenderer(RenderStyle*) |
| bool SVGTextPathElement::rendererIsNeeded(const RenderStyle& style) |
| { |
| - if (parentNode() && (isSVGAElement(*parentNode()) || isSVGTextElement(*parentNode()))) |
| + if (parentNode() && (isSVGAElement(*parentNode()) || isSVGTextElement(*parentNode())) && isValid()) |
|
esprehn
2014/06/17 23:09:41
Use separate if statements and early returns.
if
|
| return Element::rendererIsNeeded(style); |
| return false; |