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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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 94658af9d97f33442bf3f185c3163eabe6245d1c..018674b69bf29463b61bd4211d593ef71e939a3d 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -251,7 +251,7 @@ void DocumentMarkerController::addMarker(Node* node,
RenderedDocumentMarker* newRenderedMarker =
RenderedDocumentMarker::create(newMarker);
updateMarkerRenderedRect(*node, *newRenderedMarker);
- if (list->isEmpty() || list->last()->endOffset() < newMarker.startOffset()) {
+ if (list->isEmpty() || list->back()->endOffset() < newMarker.startOffset()) {
list->append(newRenderedMarker);
} else {
if (newMarker.type() != DocumentMarker::TextMatch &&

Powered by Google App Engine
This is Rietveld 408576698