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

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

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TemporaryChange -> AutoReset Created 4 years, 5 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 2be0babc7f97466b6837beff9eec08d260a8e0f1..50ad25e1b54b39b992aa298f0d64022ee8522043 100644
--- a/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp
@@ -28,7 +28,7 @@
#include "core/dom/ContainerNode.h"
#include "core/editing/commands/UndoStep.h"
-#include "wtf/TemporaryChange.h"
+#include "wtf/AutoReset.h"
namespace blink {
@@ -91,7 +91,7 @@ void UndoStack::redo()
m_redoStack.remove(back);
DCHECK(!m_inRedo);
- TemporaryChange<bool> redoScope(m_inRedo, true);
+ AutoReset<bool> redoScope(&m_inRedo, true);
step->reapply();
// reapply will call us back to push this command onto the undo stack.
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/SelectionController.cpp ('k') | third_party/WebKit/Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698