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

Issue 2700913002: Fix undo stack ordering with TypingCommand (Closed)

Created:
3 years, 10 months ago by Xiaocheng
Modified:
3 years, 10 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix undo stack ordering with TypingCommand This patch guards certain parts in TypingCommand by EventQueueScope, so that when adding to an open typing command, if MutationEvent is triggered, the undo stack ordering is still maintained. BUG=685975 TEST=editing/undo/type_with_mutation_event_undo_order.html Review-Url: https://codereview.chromium.org/2700913002 Cr-Commit-Position: refs/heads/master@{#452373} Committed: https://chromium.googlesource.com/chromium/src/+/7a5e5d369147c5ce7977ebf1d5ae97d4c572abb4

Patch Set 1 #

Patch Set 2 : Fri Feb 17 11:03:36 PST 2017 #

Total comments: 7

Patch Set 3 : Also put insert...InQuotedContent in EventQueueScope #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/editing/undo/type_with_mutation_event_undo_order.html View 1 2 1 chunk +121 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 1 2 5 chunks +7 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (12 generated)
Xiaocheng
PTAL.
3 years, 10 months ago (2017-02-18 04:26:35 UTC) #7
yosin_UTC9
https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/LayoutTests/editing/undo/type_with_mutation_event_undo_order.html File third_party/WebKit/LayoutTests/editing/undo/type_with_mutation_event_undo_order.html (right): https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/LayoutTests/editing/undo/type_with_mutation_event_undo_order.html#newcode28 third_party/WebKit/LayoutTests/editing/undo/type_with_mutation_event_undo_order.html:28: document.execCommand('undo'); These tests and similar test are useful since ...
3 years, 10 months ago (2017-02-20 06:22:52 UTC) #8
Xiaocheng
https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (right): https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#newcode381 third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp:381: // No need for EventQueueScope because this function is ...
3 years, 10 months ago (2017-02-22 02:50:30 UTC) #9
yosin_UTC9
https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (right): https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#newcode381 third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp:381: // No need for EventQueueScope because this function is ...
3 years, 10 months ago (2017-02-22 04:18:42 UTC) #10
yosin_UTC9
https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (right): https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#newcode381 third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp:381: // No need for EventQueueScope because this function is ...
3 years, 10 months ago (2017-02-22 04:42:25 UTC) #11
Xiaocheng
https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (right): https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#newcode381 third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp:381: // No need for EventQueueScope because this function is ...
3 years, 10 months ago (2017-02-22 06:02:44 UTC) #12
yosin_UTC9
https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (right): https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#newcode381 third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp:381: // No need for EventQueueScope because this function is ...
3 years, 10 months ago (2017-02-22 06:18:44 UTC) #13
Xiaocheng
On 2017/02/22 at 06:18:44, yosin wrote: > https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp > File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (right): > > https://codereview.chromium.org/2700913002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#newcode381 ...
3 years, 10 months ago (2017-02-23 00:32:06 UTC) #16
yosin_UTC9
lgtm Thanks!
3 years, 10 months ago (2017-02-23 03:00:00 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2700913002/40001
3 years, 10 months ago (2017-02-23 03:00:28 UTC) #20
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 03:26:46 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7a5e5d369147c5ce7977ebf1d5ae...

Powered by Google App Engine
This is Rietveld 408576698