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

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

Issue 192133002: Use isSVG*Element() helpers more in SVG code (Part 1) (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/SVGAltGlyphDefElement.cpp ('k') | Source/core/svg/SVGAltGlyphItemElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAltGlyphElement.cpp
diff --git a/Source/core/svg/SVGAltGlyphElement.cpp b/Source/core/svg/SVGAltGlyphElement.cpp
index 17b6ea9766ca91b3e4d65854ba365353fdfc0d6b..7686d1d82f96e3d0087641e9b7b3473e6d511fda 100644
--- a/Source/core/svg/SVGAltGlyphElement.cpp
+++ b/Source/core/svg/SVGAltGlyphElement.cpp
@@ -79,13 +79,12 @@ bool SVGAltGlyphElement::hasValidGlyphElements(Vector<AtomicString>& glyphNames)
if (!element)
return false;
- if (element->hasTagName(SVGNames::glyphTag)) {
+ if (isSVGGlyphElement(*element)) {
glyphNames.append(target);
return true;
}
- if (element->hasTagName(SVGNames::altGlyphDefTag)
- && toSVGAltGlyphDefElement(element)->hasValidGlyphElements(glyphNames))
+ if (isSVGAltGlyphDefElement(*element) && toSVGAltGlyphDefElement(*element).hasValidGlyphElements(glyphNames))
return true;
return false;
« no previous file with comments | « Source/core/svg/SVGAltGlyphDefElement.cpp ('k') | Source/core/svg/SVGAltGlyphItemElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698