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

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

Issue 428533006: Use ContainerNode::hasChildren() instead of firstChild() in conditionals (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: build fix Created 6 years, 5 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/inspector/DOMPatchSupport.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTitleElement.cpp
diff --git a/Source/core/svg/SVGTitleElement.cpp b/Source/core/svg/SVGTitleElement.cpp
index 1f45f85401080613b79120ba48e5afdf71d3b108..bb52dbf03ed8e8224460ce7e72dba08c1ce721c8 100644
--- a/Source/core/svg/SVGTitleElement.cpp
+++ b/Source/core/svg/SVGTitleElement.cpp
@@ -39,7 +39,7 @@ Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode*
SVGElement::insertedInto(rootParent);
if (!rootParent->inDocument())
return InsertionDone;
- if (firstChild() && document().isSVGDocument())
+ if (hasChildren() && document().isSVGDocument())
document().setTitleElement(this);
return InsertionDone;
}
« no previous file with comments | « Source/core/inspector/DOMPatchSupport.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698