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

Issue 2639483002: Add sequence number to undo steps (Closed)

Created:
3 years, 11 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

Add sequence number to undo steps This patch adds a monotonically increasing sequence number to each undo steps, to better identify the undo steps according to the execution history. The sequence number will be utilized by idle time spell checker [1]. [1] https://docs.google.com/document/d/1vo71cnlGOqOuXyy1zjzXSlUIjG7GsWgRjqmkrq1g5hk/edit BUG=517298 TEST=n/a; no behavior change Review-Url: https://codereview.chromium.org/2639483002 Cr-Commit-Position: refs/heads/master@{#452377} Committed: https://chromium.googlesource.com/chromium/src/+/6228190e1f23752ec1dd6530b59ce77235ec5b01

Patch Set 1 #

Total comments: 6

Patch Set 2 : Wed Jan 18 19:11:59 JST 2017 #

Total comments: 4

Patch Set 3 : Fri Jan 27 16:39:05 JST 2017 #

Patch Set 4 : 201702061732 #

Patch Set 5 : Fri Feb 17 11:49:59 PST 2017 #

Patch Set 6 : Fri Feb 17 13:05:26 PST 2017 #

Patch Set 7 : Fri Feb 17 13:12:45 PST 2017 #

Total comments: 6

Patch Set 8 : Fix style #

Patch Set 9 : Fix style #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/commands/UndoStack.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/UndoStep.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/UndoStep.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 59 (42 generated)
Xiaocheng
PTAL.
3 years, 11 months ago (2017-01-17 07:46:57 UTC) #7
yosin_UTC9
https://codereview.chromium.org/2639483002/diff/1/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp File third_party/WebKit/Source/core/editing/commands/UndoStack.cpp (right): https://codereview.chromium.org/2639483002/diff/1/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp#newcode52 third_party/WebKit/Source/core/editing/commands/UndoStack.cpp:52: step->setSequence(++m_maxSequence); Usage of |m_maxSequence| isn't clear. Why increment here? ...
3 years, 11 months ago (2017-01-17 08:13:29 UTC) #8
Xiaocheng
https://codereview.chromium.org/2639483002/diff/1/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp File third_party/WebKit/Source/core/editing/commands/UndoStack.cpp (right): https://codereview.chromium.org/2639483002/diff/1/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp#newcode52 third_party/WebKit/Source/core/editing/commands/UndoStack.cpp:52: step->setSequence(++m_maxSequence); On 2017/01/17 at 08:13:29, Yosi_UTC9 wrote: > Usage ...
3 years, 11 months ago (2017-01-17 09:04:02 UTC) #9
Xiaocheng
Discussed offline. We should get rid of UndoStep and use EditCommandComposition directly.
3 years, 11 months ago (2017-01-18 05:20:15 UTC) #10
yosin_UTC9
>This patch adds an ascending sequence number to undo steps, so that >undo steps are ...
3 years, 11 months ago (2017-01-19 06:40:52 UTC) #14
Xiaocheng
Thanks for the review. Changed patch description accordingly. https://codereview.chromium.org/2639483002/diff/20001/third_party/WebKit/Source/core/editing/commands/UndoStep.h File third_party/WebKit/Source/core/editing/commands/UndoStep.h (right): https://codereview.chromium.org/2639483002/diff/20001/third_party/WebKit/Source/core/editing/commands/UndoStep.h#newcode68 third_party/WebKit/Source/core/editing/commands/UndoStep.h:68: uint64_t ...
3 years, 11 months ago (2017-01-19 07:52:30 UTC) #18
yosin_UTC9
On 2017/01/19 at 07:52:30, xiaochengh wrote: > Thanks for the review. Changed patch description accordingly. ...
3 years, 11 months ago (2017-01-19 08:14:02 UTC) #19
Xiaocheng
On 2017/01/19 at 08:14:02, yosin wrote: > On 2017/01/19 at 07:52:30, xiaochengh wrote: > > ...
3 years, 11 months ago (2017-01-19 08:31:47 UTC) #20
Xiaocheng
Investigation done. Conclusion: for undo steps, the creation order and enstack order can be different, ...
3 years, 10 months ago (2017-01-27 07:19:46 UTC) #21
Xiaocheng
Discussed offline. In the above example, the enstack order is wrong --- in any case, ...
3 years, 10 months ago (2017-01-27 09:13:12 UTC) #24
yosin_UTC9
https://codereview.chromium.org/2639483002/diff/120001/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp File third_party/WebKit/Source/core/editing/commands/UndoStack.cpp (right): https://codereview.chromium.org/2639483002/diff/120001/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp#newcode52 third_party/WebKit/Source/core/editing/commands/UndoStack.cpp:52: if (!m_inRedo) { nit: No need to have braces. ...
3 years, 10 months ago (2017-02-20 06:17:50 UTC) #37
Xiaocheng
Updated. PTAL. https://codereview.chromium.org/2639483002/diff/120001/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp File third_party/WebKit/Source/core/editing/commands/UndoStack.cpp (right): https://codereview.chromium.org/2639483002/diff/120001/third_party/WebKit/Source/core/editing/commands/UndoStack.cpp#newcode52 third_party/WebKit/Source/core/editing/commands/UndoStack.cpp:52: if (!m_inRedo) { On 2017/02/20 at 06:17:50, ...
3 years, 10 months ago (2017-02-22 02:47:32 UTC) #42
yosin_UTC9
On 2017/02/22 at 02:47:32, xiaochengh wrote: > > > > The another way is > ...
3 years, 10 months ago (2017-02-22 05:04:07 UTC) #45
yosin_UTC9
lgtm
3 years, 10 months ago (2017-02-22 05:04:45 UTC) #46
commit-bot: I haz the power
This CL has an open dependency (Issue 2674173002 Patch 60001). Please resolve the dependency and ...
3 years, 10 months ago (2017-02-22 05:06:20 UTC) #49
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/2639483002/180001
3 years, 10 months ago (2017-02-23 03:33:04 UTC) #56
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 03:39:10 UTC) #59
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/6228190e1f23752ec1dd6530b59c...

Powered by Google App Engine
This is Rietveld 408576698