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

Unified Diff: third_party/WebKit/Source/platform/graphics/ContiguousContainer.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/ContiguousContainer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
index f3c65902d5a9d6836331229a456cf7f4587d5eda..7ec7e759b06fef2c7627140ea006c3a9bcbe92f5 100644
--- a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
@@ -120,7 +120,7 @@ void* ContiguousContainerBase::allocate(size_t objectSize,
if (!bufferForAlloc) {
size_t newBufferSize = m_buffers.isEmpty()
? kDefaultInitialBufferSize * m_maxObjectSize
- : 2 * m_buffers.last()->capacity();
+ : 2 * m_buffers.back()->capacity();
bufferForAlloc =
allocateNewBufferForNextAllocation(newBufferSize, typeName);
}
@@ -131,7 +131,7 @@ void* ContiguousContainerBase::allocate(size_t objectSize,
}
void ContiguousContainerBase::removeLast() {
- void* object = m_elements.last();
+ void* object = m_elements.back();
m_elements.pop_back();
Buffer* endBuffer = m_buffers[m_endIndex].get();
@@ -160,7 +160,7 @@ void ContiguousContainerBase::swap(ContiguousContainerBase& other) {
void ContiguousContainerBase::shrinkToFit() {
while (m_endIndex < m_buffers.size() - 1) {
- DCHECK(m_buffers.last()->isEmpty());
+ DCHECK(m_buffers.back()->isEmpty());
m_buffers.pop_back();
}
}

Powered by Google App Engine
This is Rietveld 408576698