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

Unified Diff: Source/core/editing/UndoStack.h

Issue 299353004: Oilpan: move editing objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make test wrapper class finalized Created 6 years, 7 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
« no previous file with comments | « Source/core/editing/TypingCommand.cpp ('k') | Source/core/editing/UndoStack.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/UndoStack.h
diff --git a/Source/core/editing/UndoStack.h b/Source/core/editing/UndoStack.h
index 6b996cc355499313ff6d1b71a92eefddcd34d88a..588e98c32eb3fb6eb2b6e8fd8aa189be70951348 100644
--- a/Source/core/editing/UndoStack.h
+++ b/Source/core/editing/UndoStack.h
@@ -31,6 +31,7 @@
#ifndef UndoStack_h
#define UndoStack_h
+#include "platform/heap/Handle.h"
#include "wtf/Deque.h"
#include "wtf/Forward.h"
@@ -45,8 +46,8 @@ public:
~UndoStack();
- void registerUndoStep(PassRefPtr<UndoStep>);
- void registerRedoStep(PassRefPtr<UndoStep>);
+ void registerUndoStep(PassRefPtrWillBeRawPtr<UndoStep>);
+ void registerRedoStep(PassRefPtrWillBeRawPtr<UndoStep>);
void didUnloadFrame(const LocalFrame&);
bool canUndo() const;
bool canRedo() const;
@@ -56,12 +57,14 @@ public:
private:
UndoStack();
- bool m_inRedo;
+ typedef WillBeHeapDeque<RefPtrWillBeMember<UndoStep> > UndoStepStack;
+ typedef WillBePersistentHeapDeque<RefPtrWillBeMember<UndoStep> > WillBePersistentUndoStepStack;
+
+ void filterOutUndoSteps(WillBePersistentUndoStepStack&, const LocalFrame&);
- typedef Deque<RefPtr<UndoStep> > UndoStepStack;
- void filterOutUndoSteps(UndoStepStack&, const LocalFrame&);
- UndoStepStack m_undoStack;
- UndoStepStack m_redoStack;
+ bool m_inRedo;
+ WillBePersistentUndoStepStack m_undoStack;
+ WillBePersistentUndoStepStack m_redoStack;
};
} // namespace WebCore
« no previous file with comments | « Source/core/editing/TypingCommand.cpp ('k') | Source/core/editing/UndoStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698