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

Unified Diff: Source/core/svg/SVGTSpanElement.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/SVGSVGElement.cpp ('k') | Source/core/svg/SVGTextPathElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTSpanElement.cpp
diff --git a/Source/core/svg/SVGTSpanElement.cpp b/Source/core/svg/SVGTSpanElement.cpp
index 9aa1a9390f4a80bca5b0d844255062ef81390583..f8e2f69e461f72a71464d8f52b8b650f4903b9a6 100644
--- a/Source/core/svg/SVGTSpanElement.cpp
+++ b/Source/core/svg/SVGTSpanElement.cpp
@@ -46,13 +46,13 @@ RenderObject* SVGTSpanElement::createRenderer(RenderStyle*)
bool SVGTSpanElement::rendererIsNeeded(const RenderStyle& style)
{
if (parentNode()
- && (parentNode()->hasTagName(SVGNames::aTag)
+ && (isSVGAElement(*parentNode())
#if ENABLE(SVG_FONTS)
- || parentNode()->hasTagName(SVGNames::altGlyphTag)
+ || isSVGAltGlyphElement(*parentNode())
#endif
- || parentNode()->hasTagName(SVGNames::textTag)
- || parentNode()->hasTagName(SVGNames::textPathTag)
- || parentNode()->hasTagName(SVGNames::tspanTag)))
+ || isSVGTextElement(*parentNode())
+ || isSVGTextPathElement(*parentNode())
+ || isSVGTSpanElement(*parentNode())))
return Element::rendererIsNeeded(style);
return false;
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | Source/core/svg/SVGTextPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698