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

Unified Diff: third_party/WebKit/Source/platform/testing/TestPaintArtifact.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/testing/TestPaintArtifact.cpp
diff --git a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
index 579525936b15fd53eb2b77577aeeee9c861f6af2..5a26c8ca832b6b2b06483a8b0a6496391caca6b7 100644
--- a/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
+++ b/third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp
@@ -63,7 +63,7 @@ TestPaintArtifact& TestPaintArtifact::chunk(
TestPaintArtifact& TestPaintArtifact::chunk(
const PaintChunkProperties& properties) {
if (!m_paintChunks.isEmpty())
- m_paintChunks.last().endIndex = m_displayItemList.size();
+ m_paintChunks.back().endIndex = m_displayItemList.size();
PaintChunk chunk;
chunk.beginIndex = m_displayItemList.size();
chunk.properties = properties;
@@ -100,7 +100,7 @@ const PaintArtifact& TestPaintArtifact::build() {
return m_paintArtifact;
if (!m_paintChunks.isEmpty())
- m_paintChunks.last().endIndex = m_displayItemList.size();
+ m_paintChunks.back().endIndex = m_displayItemList.size();
m_paintArtifact = PaintArtifact(std::move(m_displayItemList),
std::move(m_paintChunks), true);
m_built = true;

Powered by Google App Engine
This is Rietveld 408576698