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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.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/platform/graphics/paint/PaintController.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
index 4d29ac247fe2573a32e375dae57281ceedd6b06e..2134497680fecc9bcdf772db658d1c2369528d6b 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
@@ -144,7 +144,7 @@ void PaintController::removeLastDisplayItem() {
if (it != m_newDisplayItemIndicesByClient.end()) {
Vector<size_t>& indices = it->value;
if (!indices.isEmpty() &&
- indices.last() == (m_newDisplayItemList.size() - 1))
+ indices.back() == (m_newDisplayItemList.size() - 1))
indices.pop_back();
}
#endif
@@ -185,14 +185,14 @@ void PaintController::processNewItem(DisplayItem& displayItem) {
// The status will end when the subsequence owner is invalidated or
// deleted.
displayItem.client().beginShouldKeepAlive(
- m_currentSubsequenceClients.last());
+ m_currentSubsequenceClients.back());
}
}
if (displayItem.getType() == DisplayItem::kSubsequence) {
m_currentSubsequenceClients.append(&displayItem.client());
} else if (displayItem.getType() == DisplayItem::kEndSubsequence) {
- CHECK(m_currentSubsequenceClients.last() == &displayItem.client());
+ CHECK(m_currentSubsequenceClients.back() == &displayItem.client());
m_currentSubsequenceClients.pop_back();
}
}

Powered by Google App Engine
This is Rietveld 408576698