| Index: Source/core/editing/markup.cpp
|
| diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp
|
| old mode 100644
|
| new mode 100755
|
| index ae592d8c2fc3efd5d8410c0aec8aab344705277c..30b8a47bb97ebb7aca484e012b0200519b6483bf
|
| --- a/Source/core/editing/markup.cpp
|
| +++ b/Source/core/editing/markup.cpp
|
| @@ -754,7 +754,7 @@ static void fillContainerFromString(ContainerNode* paragraph, const String& stri
|
|
|
| Vector<String> tabList;
|
| string.split('\t', true, tabList);
|
| - String tabText = emptyString();
|
| + StringBuilder tabText;
|
| bool first = true;
|
| size_t numEntries = tabList.size();
|
| for (size_t i = 0; i < numEntries; ++i) {
|
| @@ -763,8 +763,8 @@ static void fillContainerFromString(ContainerNode* paragraph, const String& stri
|
| // append the non-tab textual part
|
| if (!s.isEmpty()) {
|
| if (!tabText.isEmpty()) {
|
| - paragraph->appendChild(createTabSpanElement(document, tabText));
|
| - tabText = emptyString();
|
| + paragraph->appendChild(createTabSpanElement(document, tabText.toString()));
|
| + tabText.clear();
|
| }
|
| RefPtr<Node> textNode = document.createTextNode(stringWithRebalancedWhitespace(s, first, i + 1 == numEntries));
|
| paragraph->appendChild(textNode.release());
|
| @@ -775,7 +775,7 @@ static void fillContainerFromString(ContainerNode* paragraph, const String& stri
|
| if (i + 1 != numEntries)
|
| tabText.append('\t');
|
| else if (!tabText.isEmpty())
|
| - paragraph->appendChild(createTabSpanElement(document, tabText));
|
| + paragraph->appendChild(createTabSpanElement(document, tabText.toString()));
|
|
|
| first = false;
|
| }
|
|
|