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

Issue 297003003: Emit object replacement char to IME (Closed)

Created:
6 years, 7 months ago by guohui
Modified:
6 years, 6 months ago
CC:
blink-reviews, aurimas (slooooooooow), huangs
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Emit object replacement char to IME Currently Clank could only delete (with the backspace key) nodes that are visible to the android IME, and since a replaced element, e.g. <img>, is not visible to the IME, thus it could not be easily deleted using the backspace key. Another side effect is that if two text nodes are separated by an image element alone, then they appear as a single composition to the IME. To fix these issues, this CL exposes a replaced element as a single object replacement char 0xFFFC to InputMethodController. For more details please refer to the atatched bug. BUG=311448 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175819

Patch Set 1 : #

Total comments: 2

Patch Set 2 : only emit replacement char with InputMethodController #

Total comments: 2

Patch Set 3 : add unit test #

Total comments: 9

Patch Set 4 : yuta's comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -4 lines) Patch
M Source/core/editing/InputMethodController.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/PlainTextRange.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/editing/PlainTextRange.cpp View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download
M Source/core/editing/TextIterator.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/editing/TextIterator.cpp View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M Source/core/editing/TextIteratorTest.cpp View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
guohui
Hey aurimas, the CL is obviously not ready for review yet. But i would like ...
6 years, 7 months ago (2014-05-22 21:25:01 UTC) #1
aurimas (slooooooooow)
https://codereview.chromium.org/297003003/diff/20001/Source/core/editing/TextIterator.cpp File Source/core/editing/TextIterator.cpp (right): https://codereview.chromium.org/297003003/diff/20001/Source/core/editing/TextIterator.cpp#newcode791 Source/core/editing/TextIterator.cpp:791: if (m_emitsReplacementChar || true) { "A || true" is ...
6 years, 7 months ago (2014-05-22 21:43:40 UTC) #2
guohui
On 2014/05/22 21:43:40, aurimas wrote: > https://codereview.chromium.org/297003003/diff/20001/Source/core/editing/TextIterator.cpp > File Source/core/editing/TextIterator.cpp (right): > > https://codereview.chromium.org/297003003/diff/20001/Source/core/editing/TextIterator.cpp#newcode791 > ...
6 years, 7 months ago (2014-05-22 21:47:29 UTC) #3
guohui
+ojan@ and koshi@ The CL is NOT ready for review, but i am new to ...
6 years, 7 months ago (2014-05-22 22:00:37 UTC) #4
kochi
On 2014/05/22 22:00:37, guohui wrote: > +ojan@ and koshi@ > > The CL is NOT ...
6 years, 7 months ago (2014-05-23 07:01:17 UTC) #5
yosin_UTC9
It seems reasonable to emit replacement character for replaced element. I think you only need ...
6 years, 7 months ago (2014-05-23 08:17:06 UTC) #6
guohui
On 2014/05/23 08:17:06, yosi wrote: > It seems reasonable to emit replacement character for replaced ...
6 years, 7 months ago (2014-05-23 17:30:09 UTC) #7
huangs
https://chromiumcodereview.appspot.com/297003003/diff/100001/Source/core/editing/TextIterator.h File Source/core/editing/TextIterator.h (right): https://chromiumcodereview.appspot.com/297003003/diff/100001/Source/core/editing/TextIterator.h#newcode49 Source/core/editing/TextIterator.h:49: TextIteratorEmitsReplacementChar = 1 << 7, Extra comma.
6 years, 7 months ago (2014-05-24 17:18:39 UTC) #8
guohui
Added unit tests. ping yosin@ and ojan@, could you please take a look at the ...
6 years, 7 months ago (2014-05-26 13:55:01 UTC) #9
guohui
On 2014/05/26 13:55:01, guohui wrote: > Added unit tests. > > ping yosin@ and ojan@, ...
6 years, 7 months ago (2014-05-26 22:57:53 UTC) #10
yosin_UTC9
ACK Add yutak@ as OWNER and he works on TextIterator.
6 years, 7 months ago (2014-05-27 01:35:40 UTC) #11
guohui
thanks yosi. @yuta, could you please review the cl?
6 years, 6 months ago (2014-05-27 20:31:54 UTC) #12
leviw_travelin_and_unemployed
Can you please explain a bit more about why you're doing this, and why you're ...
6 years, 6 months ago (2014-05-27 23:33:45 UTC) #13
guohui
Thanks a lot leviw! Updated the CL description, for more details, please refer to the ...
6 years, 6 months ago (2014-05-28 01:17:05 UTC) #14
Yuta Kitamura
I think the general direction of this patch is fine. * Please wrap the change ...
6 years, 6 months ago (2014-05-28 07:36:07 UTC) #15
guohui
Many thanks yuta, change description updated, and all comments addressed except for one as detailed ...
6 years, 6 months ago (2014-05-28 13:19:11 UTC) #16
guohui
https://codereview.chromium.org/297003003/diff/140001/Source/core/editing/TextIterator.cpp File Source/core/editing/TextIterator.cpp (left): https://codereview.chromium.org/297003003/diff/140001/Source/core/editing/TextIterator.cpp#oldcode790 Source/core/editing/TextIterator.cpp:790: if (m_entersTextControls && renderer->isTextControl()) { Correction: when m_lastTextNodeEndedWithCollapsedSpace == ...
6 years, 6 months ago (2014-05-28 13:32:38 UTC) #17
guohui
ping yutak@ and leviw@?
6 years, 6 months ago (2014-05-29 18:18:04 UTC) #18
leviw_travelin_and_unemployed
This seems reasonable. LGTM.
6 years, 6 months ago (2014-05-29 20:45:23 UTC) #19
guohui
On 2014/05/29 20:45:23, leviw wrote: > This seems reasonable. LGTM. Thanks leviw! Please let me ...
6 years, 6 months ago (2014-05-30 17:58:42 UTC) #20
ojan
On 2014/05/30 17:58:42, guohui wrote: > On 2014/05/29 20:45:23, leviw wrote: > > This seems ...
6 years, 6 months ago (2014-05-31 05:35:58 UTC) #21
Yuta Kitamura
lgtm
6 years, 6 months ago (2014-06-02 06:21:21 UTC) #22
guohui
The CQ bit was checked by guohui@chromium.org
6 years, 6 months ago (2014-06-09 20:41:38 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/297003003/170001
6 years, 6 months ago (2014-06-09 20:42:17 UTC) #24
commit-bot: I haz the power
6 years, 6 months ago (2014-06-09 20:57:26 UTC) #25
Message was sent while issue was closed.
Change committed as 175819

Powered by Google App Engine
This is Rietveld 408576698