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

Issue 112633003: Handle special case of merging lists in mergeParagraphs() (Closed)

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

Description

Handle special case of merging lists in mergeParagraphs() Consider a html content with two consecutive lists. When cursor is placed at the end of first list and forward delete is executed, we should merge the second list with the first one. Currently, the content of the first <li> of second list is appended to the content of last <li> of first list and two lists are still retained. This is incorrect. Uploaded patch fixes this erroneous behavior. Patch introduces the behavior that aligns with that of both FF and IE. BUG=327624 TEST=LayoutTests/editing/deleting/merge-lists.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165218

Patch Set 1 #

Total comments: 3

Patch Set 2 : Nits fixed #

Patch Set 3 : Got rid of redundant check #

Total comments: 1

Patch Set 4 : Attempt to address the review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
A LayoutTests/editing/deleting/merge-lists.html View 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/editing/deleting/merge-lists-expected.txt View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M Source/core/editing/DeleteSelectionCommand.cpp View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
vanihegde
Please have a look. Thanks!
7 years ago (2013-12-11 11:52:42 UTC) #1
yosin_UTC9
https://codereview.chromium.org/112633003/diff/1/Source/core/editing/DeleteSelectionCommand.cpp File Source/core/editing/DeleteSelectionCommand.cpp (right): https://codereview.chromium.org/112633003/diff/1/Source/core/editing/DeleteSelectionCommand.cpp#newcode643 Source/core/editing/DeleteSelectionCommand.cpp:643: Node* listItemInFirstParagraph = enclosingNodeOfType(m_upstreamStart, &isListItem); nit: You don't need ...
7 years ago (2013-12-12 04:20:44 UTC) #2
vanihegde
Uploaded patch with nits fixed.
7 years ago (2013-12-12 07:44:14 UTC) #3
vanihegde
We can as well git rid of the check (probably you meant the same in ...
7 years ago (2013-12-12 08:29:46 UTC) #4
ojan
7 years ago (2013-12-18 01:34:15 UTC) #5
leviw_travelin_and_unemployed
https://codereview.chromium.org/112633003/diff/40001/LayoutTests/editing/deleting/merge-lists-expected.txt File LayoutTests/editing/deleting/merge-lists-expected.txt (right): https://codereview.chromium.org/112633003/diff/40001/LayoutTests/editing/deleting/merge-lists-expected.txt#newcode13 LayoutTests/editing/deleting/merge-lists-expected.txt:13: | "<#selection-caret>four" Everything about this patch looks good except ...
7 years ago (2013-12-18 19:54:34 UTC) #6
vanihegde
On 2013/12/18 19:54:34, Levi wrote: > https://codereview.chromium.org/112633003/diff/40001/LayoutTests/editing/deleting/merge-lists-expected.txt > File LayoutTests/editing/deleting/merge-lists-expected.txt (right): > > https://codereview.chromium.org/112633003/diff/40001/LayoutTests/editing/deleting/merge-lists-expected.txt#newcode13 > ...
7 years ago (2013-12-19 05:15:04 UTC) #7
vanihegde
The new patch addresses your comment, but I have come across another issue. What do ...
6 years, 11 months ago (2014-01-15 09:21:41 UTC) #8
yosin_UTC9
On 2014/01/15 09:21:41, vanihegde wrote: > The new patch addresses your comment, but I have ...
6 years, 11 months ago (2014-01-15 09:27:27 UTC) #9
vanihegde
In that case, can we conclude on this patch and take up the other issue ...
6 years, 11 months ago (2014-01-15 09:37:44 UTC) #10
leviw_travelin_and_unemployed
lgtm
6 years, 11 months ago (2014-01-15 17:58:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vani.hegde@samsung.com/112633003/60001
6 years, 11 months ago (2014-01-16 06:32:24 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) wtf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink&number=7686
6 years, 11 months ago (2014-01-16 07:23:37 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/112633003/60001
6 years, 11 months ago (2014-01-16 09:36:16 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) wtf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink&number=7738
6 years, 11 months ago (2014-01-16 10:11:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vani.hegde@samsung.com/112633003/60001
6 years, 11 months ago (2014-01-16 12:38:41 UTC) #16
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 13:10:36 UTC) #17
Message was sent while issue was closed.
Change committed as 165218

Powered by Google App Engine
This is Rietveld 408576698