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

Unified Diff: third_party/WebKit/Source/core/paint/ObjectPainter.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/core/paint/ObjectPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/ObjectPainter.cpp b/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
index b2011d2eb5caf320f12a3904464a86aa0f5b8498..d51dbd3c0c76ac0868a6b0d4a12cf1335b6e4750 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
@@ -135,7 +135,7 @@ void paintComplexOutline(GraphicsContext& graphicsContext,
continue;
edges.grow(++count);
- OutlineEdgeInfo& edge = edges.last();
+ OutlineEdgeInfo& edge = edges.back();
edge.x1 = SkScalarTruncToInt(points[0].x());
edge.y1 = SkScalarTruncToInt(points[0].y());
edge.x2 = SkScalarTruncToInt(points[1].x());
@@ -174,7 +174,7 @@ void paintComplexOutline(GraphicsContext& graphicsContext,
}
DCHECK(count >= 4 && edges.size() == count);
- int firstAdjacentWidth = adjustJoint(width, edges.last(), edges.first());
+ int firstAdjacentWidth = adjustJoint(width, edges.back(), edges.first());
// The width of the angled part of starting and ending joint of the current
// edge.
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp ('k') | third_party/WebKit/Source/core/style/QuotesData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698