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

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

Issue 2127463002: Revert of Move UndoStack from Page to Editor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.h
diff --git a/third_party/WebKit/Source/core/editing/commands/UndoStack.h b/third_party/WebKit/Source/core/editing/commands/UndoStack.h
index 50ac9a5de29e44dd067467244773fc2c2db3ee31..39615d15d3bac4c46217529dc1f7faf8130ace83 100644
--- a/third_party/WebKit/Source/core/editing/commands/UndoStack.h
+++ b/third_party/WebKit/Source/core/editing/commands/UndoStack.h
@@ -40,8 +40,6 @@
class LocalFrame;
class UndoStep;
-// |UndoStack| is owned by and always 1:1 to |Editor|. Since |Editor| is 1:1 to
-// |LocalFrame|, |UndoStack| is also 1:1 to |LocalFrame|.
class UndoStack final : public GarbageCollected<UndoStack> {
WTF_MAKE_NONCOPYABLE(UndoStack);
public:
@@ -49,6 +47,7 @@
void registerUndoStep(UndoStep*);
void registerRedoStep(UndoStep*);
+ void didUnloadFrame(const LocalFrame&);
bool canUndo() const;
bool canRedo() const;
void undo();
@@ -61,6 +60,8 @@
typedef HeapDeque<Member<UndoStep>> UndoStepStack;
+ void filterOutUndoSteps(UndoStepStack&, const LocalFrame&);
+
bool m_inRedo;
UndoStepStack m_undoStack;
UndoStepStack m_redoStack;
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.cpp ('k') | third_party/WebKit/Source/core/editing/commands/UndoStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698