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

Unified Diff: third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp

Issue 2459003003: WTF/std normalization: replace WTF::Vector::removeLast with ::pop_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 89d86b6cc5b4bdf44c1e0a20e8e91e0297d4e952..5c94d9356b5524a54e5bdd8243213ff41f95cd7d 100644
--- a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
@@ -132,7 +132,7 @@ void* ContiguousContainerBase::allocate(size_t objectSize,
void ContiguousContainerBase::removeLast() {
void* object = m_elements.last();
- m_elements.removeLast();
+ m_elements.pop_back();
Buffer* endBuffer = m_buffers[m_endIndex].get();
endBuffer->deallocateLastObject(object);
@@ -141,7 +141,7 @@ void ContiguousContainerBase::removeLast() {
if (m_endIndex > 0)
m_endIndex--;
if (m_endIndex + 2 < m_buffers.size())
- m_buffers.removeLast();
+ m_buffers.pop_back();
}
}
@@ -161,7 +161,7 @@ void ContiguousContainerBase::swap(ContiguousContainerBase& other) {
void ContiguousContainerBase::shrinkToFit() {
while (m_endIndex < m_buffers.size() - 1) {
DCHECK(m_buffers.last()->isEmpty());
- m_buffers.removeLast();
+ m_buffers.pop_back();
}
}

Powered by Google App Engine
This is Rietveld 408576698