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

Unified Diff: third_party/WebKit/Source/core/editing/commands/UndoStack.cpp

Issue 2749753002: Migrate WTF::Deque::removeFirst() to ::pop_front() (Closed)
Patch Set: Created 3 years, 9 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/core/editing/commands/UndoStack.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp b/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp
index 51de7da95da2d8c65569c7103e14d2349ca876ff..10db110a7531ab2cf3ef12d567c773761036f94a 100644
--- a/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp
@@ -48,7 +48,7 @@ void UndoStack::registerUndoStep(UndoStep* step) {
if (m_undoStack.size())
DCHECK_GE(step->sequenceNumber(), m_undoStack.back()->sequenceNumber());
if (m_undoStack.size() == maximumUndoStackDepth)
- m_undoStack.removeFirst(); // drop oldest item off the far end
+ m_undoStack.pop_front(); // drop oldest item off the far end
if (!m_inRedo)
m_redoStack.clear();
m_undoStack.push_back(step);

Powered by Google App Engine
This is Rietveld 408576698