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

Unified Diff: Source/core/svg/SVGFontFaceFormatElement.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/SVGFontFaceElement.cpp ('k') | Source/core/svg/SVGFontFaceSrcElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFontFaceFormatElement.cpp
diff --git a/Source/core/svg/SVGFontFaceFormatElement.cpp b/Source/core/svg/SVGFontFaceFormatElement.cpp
index 5468bdb240e49de02a0d0803db8c326453c8d15d..5aaef55580a589e9121e7bb4d728afbd1c7fedd7 100644
--- a/Source/core/svg/SVGFontFaceFormatElement.cpp
+++ b/Source/core/svg/SVGFontFaceFormatElement.cpp
@@ -44,15 +44,15 @@ void SVGFontFaceFormatElement::childrenChanged(bool changedByParser, Node* befor
{
SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
- if (!parentNode() || !parentNode()->hasTagName(font_face_uriTag))
+ if (!isSVGFontFaceUriElement(parentNode()))
return;
ContainerNode* ancestor = parentNode()->parentNode();
- if (!ancestor || !ancestor->hasTagName(font_face_srcTag))
+ if (!isSVGFontFaceSrcElement(ancestor))
return;
ancestor = ancestor->parentNode();
- if (ancestor && ancestor->hasTagName(font_faceTag))
+ if (isSVGFontFaceElement(ancestor))
toSVGFontFaceElement(ancestor)->rebuildFontFace();
}
« no previous file with comments | « Source/core/svg/SVGFontFaceElement.cpp ('k') | Source/core/svg/SVGFontFaceSrcElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698