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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h

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/PaintChunker.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h b/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h
index acf1558d740c5802e7738f94d8969b15be51bbfa..098edcd43f73603f01cbdd79ba40c56f538b419b 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h
@@ -46,7 +46,7 @@ class PLATFORM_EXPORT PaintChunker final {
size_t lastChunkIndex() const {
return m_chunks.isEmpty() ? kNotFound : m_chunks.size() - 1;
}
- PaintChunk& lastChunk() { return m_chunks.last(); }
+ PaintChunk& lastChunk() { return m_chunks.back(); }
PaintChunk& findChunkByDisplayItemIndex(size_t index) {
auto chunk = findChunkInVectorByDisplayItemIndex(m_chunks, index);

Powered by Google App Engine
This is Rietveld 408576698