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

Issue 2532393002: Make redo command to correct selection in undo stack (Closed)

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

Description

Make redo command to correct selection in undo stack This patch makes |Editor::reappliedEditing()|, which is the last step of "redo" command, to use |correctVisibleSelection()| to validate selection in undo stack like |Editor::unappliedEditing()|, which is the last step of "undo" command. The root cause of issue 669127 is "redo" command attempt to set selection anchored with SELECT element in OPTION element out of SELECT element. Since this SELECT element isn't appeared in flat tree, |SelectionAdjuster::adjustSelectionInFlatTree()| is failed with |nullptr| of parent of that. BUG=669127 TEST=LayoutTests/editing/undo/redo_correct_selection.html Committed: https://crrev.com/c5d325233d9e3e7b35aa65ee4a6b78261fb9c94c Cr-Commit-Position: refs/heads/master@{#435191}

Patch Set 1 : 2016-11-29T16:56:30 #

Patch Set 2 : 2016-11-29T18:23:07 #

Total comments: 4

Patch Set 3 : 2016-11-30T11:28:33 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -7 lines) Patch
A third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 2 1 chunk +10 lines, -7 lines 0 comments Download

Messages

Total messages: 31 (20 generated)
yosin_UTC9
PTAL
4 years ago (2016-11-29 09:43:54 UTC) #9
Xiaocheng
https://codereview.chromium.org/2532393002/diff/20001/third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html File third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html (right): https://codereview.chromium.org/2532393002/diff/20001/third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html#newcode18 third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html:18: console.log(currentCommand); This shouldn't be in a layout test. https://codereview.chromium.org/2532393002/diff/20001/third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html#newcode25 ...
4 years ago (2016-11-29 11:50:44 UTC) #12
yosin_UTC9
PTAL https://codereview.chromium.org/2532393002/diff/20001/third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html File third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html (right): https://codereview.chromium.org/2532393002/diff/20001/third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html#newcode18 third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html:18: console.log(currentCommand); On 2016/11/29 at 11:50:44, Xiaocheng wrote: > ...
4 years ago (2016-11-30 02:30:19 UTC) #15
Xiaocheng
lgtm
4 years ago (2016-11-30 02:31:37 UTC) #16
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/2532393002/40001
4 years ago (2016-11-30 03:19:41 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) cast_shell_linux on ...
4 years ago (2016-11-30 04:32:41 UTC) #21
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/2532393002/40001
4 years ago (2016-11-30 04:34:14 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-11-30 05:20:55 UTC) #25
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/2532393002/40001
4 years ago (2016-11-30 07:53:00 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-30 09:07:39 UTC) #29
commit-bot: I haz the power
4 years ago (2016-11-30 09:10:34 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c5d325233d9e3e7b35aa65ee4a6b78261fb9c94c
Cr-Commit-Position: refs/heads/master@{#435191}

Powered by Google App Engine
This is Rietveld 408576698