Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
old mode 100644 |
new mode 100755 |
index 6a3565cc284c8394a2d41b352058d9ab2e26320a..4fd05f07038345b59fdd54b33fc797f3e7b8bab1 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -1457,10 +1457,8 @@ PassRefPtr<TypeBuilder::DOM::Node> InspectorDOMAgent::buildObjectForNode(Node* n |
case Node::COMMENT_NODE: |
case Node::CDATA_SECTION_NODE: |
nodeValue = node->nodeValue(); |
- if (nodeValue.length() > maxTextSize) { |
- nodeValue = nodeValue.left(maxTextSize); |
- nodeValue.append(ellipsisUChar); |
- } |
+ if (nodeValue.length() > maxTextSize) |
+ nodeValue = nodeValue.left(maxTextSize) + ellipsisUChar; |
break; |
case Node::ATTRIBUTE_NODE: |
localName = node->localName(); |