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

Unified Diff: third_party/WebKit/Source/core/loader/resource/MultipartImageResourceParser.cpp

Issue 2766723002: Migrate WTF::Vector::prepend() to ::push_front() (Closed)
Patch Set: Created 3 years, 9 months 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/loader/resource/MultipartImageResourceParser.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/MultipartImageResourceParser.cpp b/third_party/WebKit/Source/core/loader/resource/MultipartImageResourceParser.cpp
index 4f684023fd835f9c312c314832560f547c937aa3..a0f21963a6c16736cae904ad1a02ecf0ab933673 100644
--- a/third_party/WebKit/Source/core/loader/resource/MultipartImageResourceParser.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/MultipartImageResourceParser.cpp
@@ -20,7 +20,7 @@ MultipartImageResourceParser::MultipartImageResourceParser(
// Some servers report a boundary prefixed with "--". See
// https://crbug.com/5786.
if (m_boundary.size() < 2 || m_boundary[0] != '-' || m_boundary[1] != '-')
- m_boundary.prepend("--", 2);
+ m_boundary.push_front("--", 2);
}
void MultipartImageResourceParser::appendData(const char* bytes, size_t size) {
@@ -47,7 +47,7 @@ void MultipartImageResourceParser::appendData(const char* bytes, size_t size) {
// Some servers don't send a boundary token before the first chunk of
// data. We handle this case anyway (Gecko does too).
if (0 != memcmp(m_data.data(), m_boundary.data(), m_boundary.size())) {
- m_data.prepend("\n", 1);
+ m_data.push_front("\n", 1);
m_data.prependVector(m_boundary);
}
m_isParsingTop = false;
« no previous file with comments | « third_party/WebKit/Source/core/layout/ListMarkerText.cpp ('k') | third_party/WebKit/Source/modules/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698