Upstream version 9.37.195.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGTitleElement.cpp
index 9905018..757bdef 100644 (file)
@@ -40,7 +40,7 @@ Node::InsertionNotificationRequest SVGTitleElement::insertedInto(ContainerNode*
     if (!rootParent->inDocument())
         return InsertionDone;
     if (firstChild() && document().isSVGDocument())
-        document().setTitleElement(textContent(), this);
+        document().setTitleElement(this);
     return InsertionDone;
 }
 
@@ -55,7 +55,7 @@ void SVGTitleElement::childrenChanged(bool changedByParser, Node* beforeChange,
 {
     SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
     if (inDocument() && document().isSVGDocument())
-        document().setTitleElement(textContent(), this);
+        document().setTitleElement(this);
 }
 
 }