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

Issue 113663003: Keep br while replacing plain texts with content ending with newline (Closed)

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

Description

Keep br while replacing plain texts with content ending with newline. The <br> after the insert position was removed while inserting a text ending with a newline. This caused the loss of the newline at the end of the inserted text. This fix adds extra condition checking for this scenario and keeps the <br> while replacing plain texts with content ending with newline. BUG=121627 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165565

Patch Set 1 #

Patch Set 2 : Add test case for paste newline in a all selected textarea #

Total comments: 11

Patch Set 3 : update as per review comments #

Patch Set 4 : remove wrongly name test file #

Total comments: 4

Patch Set 5 : Update code as per second review comments #

Total comments: 2

Patch Set 6 : Keep br after the insert positioin when replacing plain texts with #

Patch Set 7 : Add test description and adjust format #

Total comments: 5

Patch Set 8 : Use consistent command names #

Patch Set 9 : Use "" for html code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -2 lines) Patch
A LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download
A + LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/ReplaceSelectionCommand.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
yosin_UTC9
Please populate "Reviewers" field for asking reviewing. It automatically send email to reviewers. You don't ...
7 years ago (2013-12-20 01:23:05 UTC) #1
ziran.sun
On 2013/12/20 01:23:05, Yoshi wrote: > Please populate "Reviewers" field for asking reviewing. It automatically ...
6 years, 11 months ago (2014-01-02 09:50:31 UTC) #2
ziran.sun
Code update as per review comments. is it okay to check if they are okay? ...
6 years, 11 months ago (2014-01-02 16:03:30 UTC) #3
yosin_UTC9
+leviw for OWNERS review https://codereview.chromium.org/113663003/diff/40002/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html File LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html (right): https://codereview.chromium.org/113663003/diff/40002/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html#newcode19 LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html:19: shouldBeEqualToString('textarea.value', '\n'); nit: Please use ...
6 years, 11 months ago (2014-01-06 06:05:07 UTC) #4
ziran.sun
https://codereview.chromium.org/113663003/diff/40002/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html File LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html (right): https://codereview.chromium.org/113663003/diff/40002/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html#newcode19 LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html:19: shouldBeEqualToString('textarea.value', '\n'); On 2014/01/06 06:05:07, Yoshi wrote: > nit: ...
6 years, 11 months ago (2014-01-07 17:36:32 UTC) #5
leviw_travelin_and_unemployed
The test and code seem reasonable. Can you please write a description of the change ...
6 years, 11 months ago (2014-01-07 19:48:09 UTC) #6
ziran.sun
https://codereview.chromium.org/113663003/diff/130001/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html File LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html (right): https://codereview.chromium.org/113663003/diff/130001/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html#newcode19 LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html:19: shouldBeEqualToString('textarea.value', '\n'); On 2014/01/07 19:48:10, Levi wrote: > It ...
6 years, 11 months ago (2014-01-08 11:58:53 UTC) #7
yosin_UTC9
https://codereview.chromium.org/113663003/diff/230001/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html File LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html (right): https://codereview.chromium.org/113663003/diff/230001/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html#newcode4 LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html:4: <textarea id='test' cols=5 rows=4> nit: Please use double quote ...
6 years, 11 months ago (2014-01-09 01:18:26 UTC) #8
ziran.sun
https://codereview.chromium.org/113663003/diff/230001/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html File LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html (right): https://codereview.chromium.org/113663003/diff/230001/LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html#newcode4 LayoutTests/editing/pasteboard/paste-newline-in-all-selected-textarea.html:4: <textarea id='test' cols=5 rows=4> On 2014/01/09 01:18:26, Yoshi wrote: ...
6 years, 11 months ago (2014-01-09 10:45:39 UTC) #9
ziran.sun
6 years, 11 months ago (2014-01-10 14:23:57 UTC) #10
leviw_travelin_and_unemployed
You still need a description of the CL (click 'Edit Issue')
6 years, 11 months ago (2014-01-10 19:59:05 UTC) #11
ziran.sun
6 years, 11 months ago (2014-01-12 14:34:12 UTC) #12
ziran.sun
On 2014/01/10 19:59:05, Levi wrote: > You still need a description of the CL (click ...
6 years, 11 months ago (2014-01-14 10:07:37 UTC) #13
ziran.sun
On 2014/01/14 10:07:37, ziran.sun wrote: > On 2014/01/10 19:59:05, Levi wrote: > > You still ...
6 years, 11 months ago (2014-01-15 10:03:40 UTC) #14
ziran.sun
6 years, 11 months ago (2014-01-15 10:04:22 UTC) #15
leviw_travelin_and_unemployed
The first line of your CL description should be a short summary, then an empty ...
6 years, 11 months ago (2014-01-15 18:04:39 UTC) #16
ziran.sun
On 2014/01/15 18:04:39, Levi wrote: > The first line of your CL description should be ...
6 years, 11 months ago (2014-01-15 22:28:17 UTC) #17
ziran.sun
Update CL descriptions. Thanks.
6 years, 11 months ago (2014-01-15 22:28:49 UTC) #18
leviw_travelin_and_unemployed
Okay. LGTM.
6 years, 11 months ago (2014-01-15 22:30:19 UTC) #19
ziran.sun
On 2014/01/15 22:30:19, Levi wrote: > Okay. LGTM. Thanks! Yoshi/Levi, just checking if it's okay ...
6 years, 11 months ago (2014-01-20 13:20:28 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/113663003/320001
6 years, 11 months ago (2014-01-22 01:39:08 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=18507
6 years, 11 months ago (2014-01-22 05:21:14 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ziran.sun@samsung.com/113663003/320001
6 years, 11 months ago (2014-01-22 20:01:08 UTC) #23
commit-bot: I haz the power
6 years, 11 months ago (2014-01-22 23:11:21 UTC) #24
Message was sent while issue was closed.
Change committed as 165565

Powered by Google App Engine
This is Rietveld 408576698