Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / xml / XPathUtil.cpp
index 22740a1..5f6707e 100644 (file)
@@ -53,9 +53,9 @@ String stringValue(Node* node)
             StringBuilder result;
             result.reserveCapacity(1024);
 
-            for (Node* n = node->firstChild(); n; n = NodeTraversal::next(*n, node)) {
-                if (n->isTextNode()) {
-                    const String& nodeValue = n->nodeValue();
+            for (Node& n : NodeTraversal::descendantsOf(*node)) {
+                if (n.isTextNode()) {
+                    const String& nodeValue = n.nodeValue();
                     result.append(nodeValue);
                 }
             }