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

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

Issue 65043014: Fix for broken undo functionality (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments incorporated Created 7 years, 1 month 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 | « LayoutTests/platform/win/editing/undo/5378473-expected.txt ('k') | Source/core/editing/TypingCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/TypingCommand.h
diff --git a/Source/core/editing/TypingCommand.h b/Source/core/editing/TypingCommand.h
index 90a86b906c70d2dd639d6032e3c88a7aa19c6113..05032abe59b0380e01f2c56eb7c6820bd4062c64 100644
--- a/Source/core/editing/TypingCommand.h
+++ b/Source/core/editing/TypingCommand.h
@@ -117,6 +117,9 @@ private:
void typingAddedToOpenCommand(ETypingCommand);
bool makeEditableRootEmpty();
+ void updateCommandTypeOfOpenCommand(ETypingCommand typingCommand) { m_commandType = typingCommand; }
+ ETypingCommand commandTypeOfOpenCommand() const { return m_commandType; }
+
ETypingCommand m_commandType;
String m_textToInsert;
bool m_openForMoreTyping;
« no previous file with comments | « LayoutTests/platform/win/editing/undo/5378473-expected.txt ('k') | Source/core/editing/TypingCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698