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

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

Issue 190793011: Use isSVG*Element() helpers more in SVG code (Part 4) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/svg/SVGTSpanElement.cpp ('k') | Source/core/svg/SVGTextPositioningElement.cpp » ('j') | 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 b3b1e5762f777feac3e285bcf4c8d9071da5962e..8b9b4e05f852a304dc2fe87e710be5b466696f8d 100644
--- a/Source/core/svg/SVGTextPathElement.cpp
+++ b/Source/core/svg/SVGTextPathElement.cpp
@@ -139,9 +139,7 @@ RenderObject* SVGTextPathElement::createRenderer(RenderStyle*)
bool SVGTextPathElement::rendererIsNeeded(const RenderStyle& style)
{
- if (parentNode()
- && (parentNode()->hasTagName(SVGNames::aTag)
- || parentNode()->hasTagName(SVGNames::textTag)))
+ if (parentNode() && (isSVGAElement(*parentNode()) || isSVGTextElement(*parentNode())))
return Element::rendererIsNeeded(style);
return false;
« no previous file with comments | « Source/core/svg/SVGTSpanElement.cpp ('k') | Source/core/svg/SVGTextPositioningElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698