Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1858)

Unified Diff: Source/core/svg/SVGTextPathElement.cpp

Issue 343443003: Remove SVGElement::rendererIsNeeded (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add remaining rendererIsNeeded changes Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« Source/core/svg/SVGTSpanElement.cpp ('K') | « Source/core/svg/SVGTSpanElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« Source/core/svg/SVGTSpanElement.cpp ('K') | « Source/core/svg/SVGTSpanElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698