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

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

Issue 2674173002: Fix undo stack ordering for all-but-typing commands (Closed)
Patch Set: Minimize test Created 3 years, 10 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/CompositeEditCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
index aa29a5f5d9f0af0cf6133eba5bc4228a4f70234a..f7ec6faf53a26fdf16b22098462846bc1f04f465 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -127,10 +127,8 @@ bool CompositeEditCommand::apply() {
LocalFrame* frame = document().frame();
DCHECK(frame);
EditingState editingState;
- {
- EventQueueScope eventQueueScope;
- doApply(&editingState);
- }
+ EventQueueScope eventQueueScope;
+ doApply(&editingState);
// Only need to call appliedEditing for top-level commands, and TypingCommands
// do it on their own (see TypingCommand::typingAddedToOpenCommand).

Powered by Google App Engine
This is Rietveld 408576698