|
|
Chromium Code Reviews|
Created:
4 years ago by yosin_UTC9 Modified:
4 years ago CC:
blink-reviews, chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMake 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 #
Messages
Total messages: 31 (20 generated)
The CQ bit was checked by yosin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by yosin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by yosin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== 2016-11-29T16:56:30 BUG= ========== to ========== 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 ==========
yosin@chromium.org changed reviewers: + xiaochengh@chromium.org, yoichio@chromium.org
PTAL
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2532393002/diff/20001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html (right): https://codereview.chromium.org/2532393002/diff/20001/third_party/WebKit/Layo... 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/Layo... third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html:25: console.log(div.outerHTML); ditto.
The CQ bit was checked by yosin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
PTAL https://codereview.chromium.org/2532393002/diff/20001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html (right): https://codereview.chromium.org/2532393002/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html:18: console.log(currentCommand); On 2016/11/29 at 11:50:44, Xiaocheng wrote: > This shouldn't be in a layout test. Done. Oops. https://codereview.chromium.org/2532393002/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/editing/undo/redo_correct_selection.html:25: console.log(div.outerHTML); On 2016/11/29 at 11:50:44, Xiaocheng wrote: > ditto. Done. Oops.
lgtm
The CQ bit was unchecked by yosin@chromium.org
The CQ bit was checked by yosin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by yosin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by yosin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 40001, "attempt_start_ts": 1480492316032980,
"parent_rev": "d47e1fbda552648bfa9dc7589eb98dc1bd37a00b", "commit_rev":
"a271477541441ac0f6eaec8fa85eacefce7593f0"}
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/c5d325233d9e3e7b35aa65ee4a6b78261fb9c94c Cr-Commit-Position: refs/heads/master@{#435191} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
