Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Unified Diff: third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp

Issue 2583233002: Migrate WTF::Vector::append() to ::push_back() [part 7 of N] (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp
index dfcc058058572c18553b1853962556d05558e6e2..a5e6a25fef1da2ec5d687de1c67b02e749555220 100644
--- a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp
+++ b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLInputStream.cpp
@@ -34,7 +34,7 @@ BackgroundHTMLInputStream::BackgroundHTMLInputStream()
void BackgroundHTMLInputStream::append(const String& input) {
m_current.append(SegmentedString(input));
- m_segments.append(input);
+ m_segments.push_back(input);
}
void BackgroundHTMLInputStream::close() {
@@ -44,8 +44,8 @@ void BackgroundHTMLInputStream::close() {
HTMLInputCheckpoint BackgroundHTMLInputStream::createCheckpoint(
size_t tokensExtractedSincePreviousCheckpoint) {
HTMLInputCheckpoint checkpoint = m_checkpoints.size();
- m_checkpoints.append(Checkpoint(m_current, m_segments.size(),
- tokensExtractedSincePreviousCheckpoint));
+ m_checkpoints.push_back(Checkpoint(m_current, m_segments.size(),
+ tokensExtractedSincePreviousCheckpoint));
m_totalCheckpointTokenCount += tokensExtractedSincePreviousCheckpoint;
return checkpoint;
}

Powered by Google App Engine
This is Rietveld 408576698