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

Issue 43143003: Undo of delete/forward-delete of text should not select the deleted text on non-mac platforms (Closed)

Created:
7 years, 2 months ago by vanihegde
Modified:
7 years, 1 month ago
CC:
blink-reviews, vanivhegde, vivekg__
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Undo of delete/forward-delete of a word should not select the deleted word on non-mac platforms Currently on deleting a word(character granularity or by ctrl+backspace) and undoing it,the deleted word gets selected. Instead it should not be selected and the caret should be placed at the position from where the deletion was actually started. This patch introduces this behavior change for non-mac platforms. This is achieved by not setting a new starting selection after every delete. This aligns chrome behavior with that of IE and FF wrt selection of deleted words. R=ojan, yosin Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160868

Patch Set 1 #

Total comments: 1

Patch Set 2 : Function name modified and Tests/Expectations updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -137 lines) Patch
M LayoutTests/editing/deleting/delete-ligature-003-expected.txt View 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/editing/undo/undo-combined-delete.html View 1 3 chunks +7 lines, -7 lines 0 comments Download
M LayoutTests/editing/undo/undo-combined-delete-boundary.html View 1 2 chunks +9 lines, -9 lines 0 comments Download
M LayoutTests/editing/undo/undo-combined-delete-boundary-expected.txt View 1 1 chunk +16 lines, -16 lines 0 comments Download
M LayoutTests/editing/undo/undo-combined-delete-expected.txt View 1 1 chunk +17 lines, -17 lines 0 comments Download
M LayoutTests/editing/undo/undo-delete.html View 1 3 chunks +6 lines, -6 lines 0 comments Download
M LayoutTests/editing/undo/undo-delete-boundary.html View 1 2 chunks +8 lines, -8 lines 0 comments Download
M LayoutTests/editing/undo/undo-delete-boundary-expected.txt View 1 1 chunk +13 lines, -13 lines 0 comments Download
M LayoutTests/editing/undo/undo-delete-expected.txt View 1 1 chunk +14 lines, -14 lines 0 comments Download
M LayoutTests/editing/undo/undo-forward-delete.html View 1 3 chunks +6 lines, -6 lines 0 comments Download
M LayoutTests/editing/undo/undo-forward-delete-boundary.html View 1 2 chunks +8 lines, -8 lines 0 comments Download
M LayoutTests/editing/undo/undo-forward-delete-boundary-expected.txt View 1 1 chunk +13 lines, -13 lines 0 comments Download
M LayoutTests/editing/undo/undo-forward-delete-expected.txt View 1 1 chunk +14 lines, -14 lines 0 comments Download
M Source/core/editing/EditingBehavior.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/editing/TypingCommand.cpp View 1 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
vanihegde
I am little confused as to how to go about layout tests for this change. ...
7 years, 2 months ago (2013-10-25 04:09:57 UTC) #1
yosin_UTC9
ACK for C++ For layout tests, please use fast/js/resrouces/js-test-pre.js framework to use platform independent tests, ...
7 years, 2 months ago (2013-10-25 04:44:48 UTC) #2
yosin_UTC9
7 years, 2 months ago (2013-10-25 04:45:04 UTC) #3
yosin_UTC9
So, I suggest rewrite affected tests into platform independent in another patch. Then, update expected ...
7 years, 2 months ago (2013-10-25 04:47:33 UTC) #4
vanihegde
On 2013/10/25 04:47:33, Yoshifumi Inoue wrote: > So, I suggest rewrite affected tests into platform ...
7 years, 2 months ago (2013-10-25 04:53:47 UTC) #5
yosin_UTC9
On 2013/10/25 04:53:47, vanihegde wrote: > On 2013/10/25 04:47:33, Yoshifumi Inoue wrote: > > So, ...
7 years, 2 months ago (2013-10-25 05:28:59 UTC) #6
vanihegde
On 2013/10/25 05:28:59, Yoshifumi Inoue wrote: > On 2013/10/25 04:53:47, vanihegde wrote: > > On ...
7 years, 2 months ago (2013-10-25 05:49:16 UTC) #7
ojan
https://codereview.chromium.org/43143003/diff/1/Source/core/editing/EditingBehavior.h File Source/core/editing/EditingBehavior.h (right): https://codereview.chromium.org/43143003/diff/1/Source/core/editing/EditingBehavior.h#newcode84 Source/core/editing/EditingBehavior.h:84: bool shouldUndoOfWordDeletionSelectWord() const { return m_type == EditingMacBehavior; } ...
7 years, 1 month ago (2013-10-26 01:36:00 UTC) #8
vanihegde
On 2013/10/26 01:36:00, ojan wrote: > https://codereview.chromium.org/43143003/diff/1/Source/core/editing/EditingBehavior.h > File Source/core/editing/EditingBehavior.h (right): > > https://codereview.chromium.org/43143003/diff/1/Source/core/editing/EditingBehavior.h#newcode84 > ...
7 years, 1 month ago (2013-10-28 04:27:38 UTC) #9
vanihegde
Changed function name to 'shouldUndoOfDeleteSelectText' and updated the tests & expectations as per changed behavior ...
7 years, 1 month ago (2013-10-29 04:38:01 UTC) #10
yosin_UTC9
ACK Thanks!
7 years, 1 month ago (2013-10-29 05:00:01 UTC) #11
vanihegde
If the changes are OK, can someone LGTM this? Thanks in advance.
7 years, 1 month ago (2013-10-29 12:02:57 UTC) #12
ojan
lgtm
7 years, 1 month ago (2013-10-29 18:35:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vani.hegde@samsung.com/43143003/130001
7 years, 1 month ago (2013-10-29 18:56:29 UTC) #14
commit-bot: I haz the power
7 years, 1 month ago (2013-10-29 22:22:43 UTC) #15
Message was sent while issue was closed.
Change committed as 160868

Powered by Google App Engine
This is Rietveld 408576698