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

Unified Diff: Source/core/svg/SVGElement.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/SVGAnimationElement.cpp ('k') | Source/core/svg/SVGFEImageElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index d1463b2fa3c88c606a28f1fa0b958aef6cd5e0fe..96e73bd1ca8882b7c9d7d6b69d196b75a8ea4e91 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -184,7 +184,7 @@ SVGElementRareData* SVGElement::ensureSVGRareData()
bool SVGElement::isOutermostSVGSVGElement() const
{
- if (!hasTagName(SVGNames::svgTag))
+ if (!isSVGSVGElement(*this))
return false;
// Element may not be in the document, pretend we're outermost for viewport(), getCTM(), etc.
@@ -192,7 +192,7 @@ bool SVGElement::isOutermostSVGSVGElement() const
return true;
// We act like an outermost SVG element, if we're a direct child of a <foreignObject> element.
- if (parentNode()->hasTagName(SVGNames::foreignObjectTag))
+ if (isSVGForeignObjectElement(*parentNode()))
return true;
// If we're living in a shadow tree, we're a <svg> element that got created as replacement
« no previous file with comments | « Source/core/svg/SVGAnimationElement.cpp ('k') | Source/core/svg/SVGFEImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698