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

Unified Diff: third_party/WebKit/Source/platform/graphics/Gradient.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/Gradient.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Gradient.cpp b/third_party/WebKit/Source/platform/graphics/Gradient.cpp
index 11affcf6209ae4646e0604839af0ffac71f9c618..72fc7c2c79e451c836245ff6c6231489602dd4c6 100644
--- a/third_party/WebKit/Source/platform/graphics/Gradient.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Gradient.cpp
@@ -78,7 +78,7 @@ void Gradient::addColorStop(const Gradient::ColorStop& stop) {
if (m_stops.isEmpty()) {
m_stopsSorted = true;
} else {
- m_stopsSorted = m_stopsSorted && compareStops(m_stops.last(), stop);
+ m_stopsSorted = m_stopsSorted && compareStops(m_stops.back(), stop);
}
m_stops.append(stop);

Powered by Google App Engine
This is Rietveld 408576698