| 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 a2198a974293076c81200c779182c640c3e28e1f..efa37c21e179e2c134c620d4f52f7caa279bb62c
|
| --- a/Source/core/editing/markup.cpp
|
| +++ b/Source/core/editing/markup.cpp
|
| @@ -757,7 +757,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) {
|
| @@ -766,8 +766,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());
|
| @@ -778,7 +778,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;
|
| }
|
|
|