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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.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/editing/markers/DocumentMarkerController.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
index f76a22b37cb8f1d9ffce213a976438a412427ee2..34506d1809171ca1ef41fdc04d995e252f4aa773 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -285,7 +285,7 @@ void DocumentMarkerController::mergeOverlapping(
std::min((*inserted)->startOffset(), (*i)->startOffset()));
(*inserted)->setEndOffset(
std::max((*inserted)->endOffset(), (*i)->endOffset()));
- list->remove(i - list->begin());
+ list->erase(i - list->begin());
}
}
@@ -392,7 +392,7 @@ void DocumentMarkerController::removeMarkers(
docDirty = true;
// pitch the old marker
- list->remove(i - list->begin());
+ list->erase(i - list->begin());
if (shouldRemovePartiallyOverlappingMarker) {
// Stop here. Don't add resulting slices back.
@@ -625,7 +625,7 @@ void DocumentMarkerController::removeMarkers(
for (size_t j = list->size(); j > 0; --j) {
if (shouldRemoveMarker(*list->at(j - 1),
static_cast<const Text&>(node))) {
- list->remove(j - 1);
+ list->erase(j - 1);
removedMarkers = true;
}
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingStyle.cpp ('k') | third_party/WebKit/Source/core/events/EventListenerMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698