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

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

Issue 2631743002: Revert of [Editing] Introduce |EditCommandComposition::willUn/Reapply()| in prepare for (2/3) (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/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 c3340747fcd6da37b76df0f256ce87b100773297..7f435982f87767a5c40c03c6590b17436a7cefc5 100644
--- a/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp
@@ -64,17 +64,17 @@
return !m_redoStack.isEmpty();
}
-void UndoStack::undo(EditCommandSource source) {
+void UndoStack::undo() {
if (canUndo()) {
UndoStepStack::iterator back = --m_undoStack.end();
UndoStep* step(back->get());
m_undoStack.remove(back);
- step->unapply(source);
+ step->unapply();
// unapply will call us back to push this command onto the redo stack.
}
}
-void UndoStack::redo(EditCommandSource source) {
+void UndoStack::redo() {
if (canRedo()) {
UndoStepStack::iterator back = --m_redoStack.end();
UndoStep* step(back->get());
@@ -82,7 +82,7 @@
DCHECK(!m_inRedo);
AutoReset<bool> redoScope(&m_inRedo, true);
- step->reapply(source);
+ step->reapply();
// reapply will call us back to push this command onto the undo stack.
}
}

Powered by Google App Engine
This is Rietveld 408576698