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

Issue 2191163002: Add   instead of plain space when it is inserted before the empty text node (Closed)

Created:
4 years, 4 months ago by joone
Modified:
4 years, 4 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add   instead of plain space when it is inserted before the empty text node This CL fixes the regression that space key doesn't work in the gmail chat window. BUG=632300 TEST=editing/inserting/insert-space.html Committed: https://crrev.com/4dab74137593abb0888e415294aeb80da27362e3 Cr-Commit-Position: refs/heads/master@{#408571}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M third_party/WebKit/LayoutTests/editing/inserting/insert-space.html View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 13 (7 generated)
joone
Hi yosin@, please review this CL.
4 years, 4 months ago (2016-07-29 01:00:34 UTC) #4
yosin_UTC9
lgtm Thanks for quick response! https://codereview.chromium.org/2191163002/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp (right): https://codereview.chromium.org/2191163002/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp#newcode738 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp:738: (isEndOfParagraph(visibleDownstreamPos) || (unsigned)downstream == ...
4 years, 4 months ago (2016-07-29 01:15:57 UTC) #5
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/2191163002/1
4 years, 4 months ago (2016-07-29 03:32:47 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-29 03:36:17 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/4dab74137593abb0888e415294aeb80da27362e3 Cr-Commit-Position: refs/heads/master@{#408571}
4 years, 4 months ago (2016-07-29 03:40:24 UTC) #12
joone
4 years, 4 months ago (2016-07-29 03:50:19 UTC) #13
Message was sent while issue was closed.
On 2016/07/29 01:15:57, Yosi_UTC9 wrote:
> lgtm
> 
> Thanks for quick response!
> 
>
https://codereview.chromium.org/2191163002/diff/1/third_party/WebKit/Source/c...
> File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
> (right):
> 
>
https://codereview.chromium.org/2191163002/diff/1/third_party/WebKit/Source/c...
> third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp:738:
> (isEndOfParagraph(visibleDownstreamPos) || (unsigned)downstream ==
> text.length())
> OPTIONAL: I think using local variable |shouldEmitNBSPbeforeEnd| to describe
> third parameter improves readability. If you agree, please introduce,
otherwise
> it is OK to ignore this comment.

I will prepare a seperate patch for this. Thanks for the idea.

Powered by Google App Engine
This is Rietveld 408576698