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

Unified Diff: third_party/WebKit/Source/core/editing/Editor.h

Issue 2110543008: Move UndoStack from Page to Editor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout test Created 4 years, 6 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/Editor.h
diff --git a/third_party/WebKit/Source/core/editing/Editor.h b/third_party/WebKit/Source/core/editing/Editor.h
index e2bd766a26d295c6f3010f3a02cfe89e87d24b9d..a80bae98d764c9001859b9fedf02156bde765477 100644
--- a/third_party/WebKit/Source/core/editing/Editor.h
+++ b/third_party/WebKit/Source/core/editing/Editor.h
@@ -233,6 +233,8 @@ public:
EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaultParagraphSeparator; }
void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_defaultParagraphSeparator = separator; }
+ UndoStack& undoStack() const;
+
static void tidyUpHTMLStructure(Document&);
class RevealSelectionScope {
@@ -253,6 +255,7 @@ public:
private:
Member<LocalFrame> m_frame;
Member<CompositeEditCommand> m_lastEditCommand;
+ Member<UndoStack> m_undoStack;
int m_preventRevealSelection;
bool m_shouldStartNewKillRingSequence;
bool m_shouldStyleWithCSS;
@@ -273,8 +276,6 @@ private:
bool canDeleteRange(const EphemeralRange&) const;
bool shouldDeleteRange(const EphemeralRange&) const;
- UndoStack* undoStack() const;
-
bool tryDHTMLCopy();
bool tryDHTMLCut();
bool tryDHTMLPaste(PasteMode);

Powered by Google App Engine
This is Rietveld 408576698