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

Issue 2680733002: Make Blink support multiline text insertion (Closed)

Created:
3 years, 10 months ago by yabinh
Modified:
3 years, 10 months ago
Reviewers:
yosin_UTC9
CC:
aelias_OOO_until_Jul13, blink-reviews, Changwan Ryu, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Blink support multiline text insertion When inserting multiline text, Blink will insert the text before '\n' and the text after the '\n' separately, e.g., for "hello\nworld", Blink will insert "hello", then a paragraph separator, then "world". However, after inserting "hello", the text is updated to "hello" incorrectly, so the remaining "world" will not be inserted. This CL moves the text-updating logic to upper level to make it right. Besides, this CL adjusts the selection after each insertion for incremental insertion. BUG=683885 Review-Url: https://codereview.chromium.org/2680733002 Cr-Commit-Position: refs/heads/master@{#448920} Committed: https://chromium.googlesource.com/chromium/src/+/286c2ce88f848617aff81090e9cc41afdf5de7e5

Patch Set 1 #

Patch Set 2 : Fixed a crash #

Total comments: 7

Patch Set 3 : Address yosin@'s review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -52 lines) Patch
M third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp View 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.h View 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 1 2 11 chunks +48 lines, -48 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
yabinh
yosin@, PTAL, thanks! https://codereview.chromium.org/2680733002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (left): https://codereview.chromium.org/2680733002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#oldcode527 third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp:527: const bool notSelectInsertedText = false; In ...
3 years, 10 months ago (2017-02-07 11:49:02 UTC) #14
yosin_UTC9
code change seems OK. Could you update summary and description what changes you did? "Fix ...
3 years, 10 months ago (2017-02-08 01:46:52 UTC) #15
yabinh
On 2017/02/08 01:46:52, yosin_BlinkOn_slow wrote: > code change seems OK. > > Could you update ...
3 years, 10 months ago (2017-02-08 02:15:20 UTC) #17
yosin_UTC9
Just in case. Could you replace quotes to ASCII quotes? Windows Command Prompt doesn't handle ...
3 years, 10 months ago (2017-02-08 03:39:37 UTC) #20
yosin_UTC9
https://codereview.chromium.org/2680733002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (right): https://codereview.chromium.org/2680733002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#newcode277 third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp:277: setEndingVisibleSelection(selection); On 2017/02/08 at 03:39:37, yosin_BlinkOn_slow wrote: > Could ...
3 years, 10 months ago (2017-02-08 03:55:35 UTC) #22
yabinh
Done.PTAL :) https://codereview.chromium.org/2680733002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp File third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp (right): https://codereview.chromium.org/2680733002/diff/20001/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp#newcode272 third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp:272: (compositionType() == TextCompositionUpdate) ? m_selectionStart : end; ...
3 years, 10 months ago (2017-02-08 04:15:52 UTC) #25
yosin_UTC9
lgtm Thanks!
3 years, 10 months ago (2017-02-08 05:34:40 UTC) #27
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/2680733002/40001
3 years, 10 months ago (2017-02-08 05:38:58 UTC) #31
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 06:15:58 UTC) #34
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/286c2ce88f848617aff81090e9cc...

Powered by Google App Engine
This is Rietveld 408576698