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

Issue 2618613004: Insert a line break when space is inserted at the top of wrapped lines (Closed)

Created:
3 years, 11 months ago by kojii
Modified:
3 years, 11 months ago
Reviewers:
yosin_UTC9, xing.xu
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Insert a line break when space is inserted at the top of wrapped lines This patch changes to insert a line break when user inserts a space at the top of wrapped lines, so that the inserted space appear at the caret position. The change is for plaintext only for now, so that we can collect feedback and discuss with editor developers for what to do with contenteditable. BUG=76113 Review-Url: https://codereview.chromium.org/2618613004 Cr-Commit-Position: refs/heads/master@{#441848} Committed: https://chromium.googlesource.com/chromium/src/+/a3b600981286b135632371477f902214c55a1724

Patch Set 1 #

Total comments: 1

Patch Set 2 : yosin's advice #

Patch Set 3 : Add test #

Patch Set 4 : Fix test on Mac #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/editing/inserting/insert-space-at-start-of-wrapped-line.html View 1 2 3 1 chunk +50 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
kojii
yosin@, could you advice me what is the proper way to check if the caret ...
3 years, 11 months ago (2017-01-05 08:08:36 UTC) #3
yosin_UTC9
https://codereview.chromium.org/2618613004/diff/1/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2618613004/diff/1/third_party/WebKit/Source/core/editing/Editor.cpp#newcode212 third_party/WebKit/Source/core/editing/Editor.cpp:212: // TODO(kojii): how to know if a Position is ...
3 years, 11 months ago (2017-01-05 08:36:50 UTC) #4
kojii
Perfect, thanks. PTAL, added tests.
3 years, 11 months ago (2017-01-05 16:34:55 UTC) #8
kojii
...which didn't run on Mac, sorry, I'll check.
3 years, 11 months ago (2017-01-05 18:41:58 UTC) #11
kojii
PTAL.
3 years, 11 months ago (2017-01-06 00:56:38 UTC) #16
yosin_UTC9
lgtm https://codereview.chromium.org/2618613004/diff/60001/third_party/WebKit/LayoutTests/editing/inserting/insert-space-at-start-of-wrapped-line.html File third_party/WebKit/LayoutTests/editing/inserting/insert-space-at-start-of-wrapped-line.html (right): https://codereview.chromium.org/2618613004/diff/60001/third_party/WebKit/LayoutTests/editing/inserting/insert-space-at-start-of-wrapped-line.html#newcode19 third_party/WebKit/LayoutTests/editing/inserting/insert-space-at-start-of-wrapped-line.html:19: if (!window.eventSender) { Good pattern!
3 years, 11 months ago (2017-01-06 01:22:22 UTC) #17
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/2618613004/60001
3 years, 11 months ago (2017-01-06 01:37:33 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 02:48:15 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/a3b600981286b135632371477f90...

Powered by Google App Engine
This is Rietveld 408576698