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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (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/modules/canvas2d/BaseRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
index ab8bcdf7a2da79494ba0e4885327aff8ee5001ff..7efea9d59568d2999f3fb8de2a5eb1b5a3eae637 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
@@ -121,7 +121,7 @@ void BaseRenderingContext2D::reset() {
validateStateStack();
unwindStateStack();
m_stateStack.resize(1);
- m_stateStack.first() = CanvasRenderingContext2DState::create();
+ m_stateStack.front() = CanvasRenderingContext2DState::create();
m_path.clear();
if (SkCanvas* c = existingDrawingCanvas()) {
// The canvas should always have an initial/unbalanced save frame, which

Powered by Google App Engine
This is Rietveld 408576698