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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintChunker.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/PaintChunker.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp
index 1a64e54946f81f11bef07606ec7f56855b48b2ab..c4f087aa853f5d02c1edbc12f71591d18fe7d2d3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp
@@ -72,10 +72,10 @@ bool PaintChunker::incrementDisplayItemIndex(const DisplayItem& item) {
return true;
}
- auto& lastChunk = m_chunks.last();
+ auto& lastChunk = m_chunks.back();
bool canContinueChunk = m_currentProperties == lastChunk.properties &&
behavior != RequiresSeparateChunk &&
- m_chunkBehavior.last() != RequiresSeparateChunk;
+ m_chunkBehavior.back() != RequiresSeparateChunk;
if (canContinueChunk) {
lastChunk.endIndex++;
return false;
@@ -92,7 +92,7 @@ bool PaintChunker::decrementDisplayItemIndex() {
DCHECK(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
DCHECK(!m_chunks.isEmpty());
- auto& lastChunk = m_chunks.last();
+ auto& lastChunk = m_chunks.back();
if ((lastChunk.endIndex - lastChunk.beginIndex) > 1) {
lastChunk.endIndex--;
return false;

Powered by Google App Engine
This is Rietveld 408576698