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

Unified Diff: third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest 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/html/imports/HTMLImportLoader.cpp
diff --git a/third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp b/third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp
index 84686bbfb047e60e026a75574676cc533b57195d..ea49c627f2f18f963785c854e8ced7c83178e557 100644
--- a/third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp
+++ b/third_party/WebKit/Source/core/html/imports/HTMLImportLoader.cpp
@@ -182,7 +182,7 @@ void HTMLImportLoader::didFinishLoading() {
void HTMLImportLoader::moveToFirst(HTMLImportChild* import) {
size_t position = m_imports.find(import);
DCHECK_NE(kNotFound, position);
- m_imports.remove(position);
+ m_imports.erase(position);
m_imports.insert(0, import);
}
@@ -197,7 +197,7 @@ void HTMLImportLoader::addImport(HTMLImportChild* import) {
void HTMLImportLoader::removeImport(HTMLImportChild* client) {
DCHECK_NE(kNotFound, m_imports.find(client));
- m_imports.remove(m_imports.find(client));
+ m_imports.erase(m_imports.find(client));
}
bool HTMLImportLoader::shouldBlockScriptExecution() const {

Powered by Google App Engine
This is Rietveld 408576698