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

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

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: Created 3 years, 11 months 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 a551d487fba442dbeeca84f3536e108717e2d085..cb16b9001c922aa539d7257a3cb7e0be6ba93ebb 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
@@ -33,7 +33,7 @@ namespace blink {
BaseRenderingContext2D::BaseRenderingContext2D()
: m_clipAntialiasing(NotAntiAliased) {
- m_stateStack.append(CanvasRenderingContext2DState::create());
+ m_stateStack.push_back(CanvasRenderingContext2DState::create());
}
BaseRenderingContext2D::~BaseRenderingContext2D() {}
@@ -50,7 +50,7 @@ void BaseRenderingContext2D::realizeSaves() {
// Reduce the current state's unrealized count by one now,
// to reflect the fact we are saving one state.
m_stateStack.back()->restore();
- m_stateStack.append(CanvasRenderingContext2DState::create(
+ m_stateStack.push_back(CanvasRenderingContext2DState::create(
state(), CanvasRenderingContext2DState::DontCopyClipList));
// Set the new state's unrealized count to 0, because it has no outstanding
// saves.

Powered by Google App Engine
This is Rietveld 408576698