Index: third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp |
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp |
index c9c59b570c48147f98865e82359aaf243697f2cf..e14d0d08ee49b742a20bf8ea32c02570b1ccb58e 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLEntityParser.cpp |
@@ -110,7 +110,7 @@ static bool consumeNamedEntity(SegmentedString& source, |
entitySearch.advance(cc); |
if (!entitySearch.isEntityPrefix()) |
break; |
- consumedCharacters.append(cc); |
+ consumedCharacters.push_back(cc); |
source.advanceAndASSERT(cc); |
} |
notEnoughCharacters = source.isEmpty(); |
@@ -136,7 +136,7 @@ static bool consumeNamedEntity(SegmentedString& source, |
for (int i = 0; i < length; ++i) { |
cc = source.currentChar(); |
DCHECK_EQ(cc, static_cast<UChar>(*reference++)); |
- consumedCharacters.append(cc); |
+ consumedCharacters.push_back(cc); |
source.advanceAndASSERT(cc); |
ASSERT(!source.isEmpty()); |
} |
@@ -266,7 +266,7 @@ bool consumeHTMLEntity(SegmentedString& source, |
if (result > UCHAR_MAX_VALUE) |
result = kInvalidUnicode; |
- consumedCharacters.append(cc); |
+ consumedCharacters.push_back(cc); |
source.advanceAndASSERT(cc); |
} |
ASSERT(source.isEmpty()); |