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

Issue 2476883003: Revert of Allow selection change update before beginBatchEdit (Closed)

Created:
4 years, 1 month ago by Changwan Ryu
Modified:
4 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, nona+watch_chromium.org, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Allow selection change update before beginBatchEdit (patchset #7 id:120001 of https://codereview.chromium.org/2309983002/ ) Reason for revert: This led to crbug.com/659934 because FROM_IME message created for endBatchEdit() was consumed by get* method. In this case state update does not get sent out to InputMethodManager. (really reverting it for M56 as the fix is taking longer) Original issue's description: > Allow selection change update before beginBatchEdit > > Currently, selection changes immediately before beginBatchEdit() may be > merged into batch edit selection update which happens at endBatchEdit(). > > The reason is that it takes round-trip time to get update from previous > operation and if we increment mNumNestedBatchEdits in beginBatchEdit() > before the update from renderer process arrives at browser process, > then the update from operation will be ignored because > mNumNestedBatchEdits > 0. > > This can be prevented if we keep the batch edit information in renderer > and tag it to each text input state update. > > Note that mNumNestedBatchEdits should still be kept in > ThreadedInputConnection to return the correct value in endBatchEdit(). > > BUG=644574, 643473, 643477 > > Committed: https://crrev.com/4662007a92a92b016ef3f05fb4cbbd6904825cc0 > Cr-Commit-Position: refs/heads/master@{#419959} TBR=aelias@chromium.org,avi@chromium.org,dcheng@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=644574, 643473, 643477 Committed: https://crrev.com/967b73c203ccfb4efdd9f862942b9bbe7efdc644 Cr-Commit-Position: refs/heads/master@{#429837}

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : fixed build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -221 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/ime_adapter_android.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/ime_adapter_android.cc View 1 1 chunk +0 lines, -20 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/common/input_messages.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/common/text_input_state.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/common/text_input_state.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/common/view_messages.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ChromiumBaseInputConnection.java View 1 1 chunk +1 line, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java View 1 4 chunks +3 lines, -26 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ReplicaInputConnection.java View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/TextInputState.java View 1 4 chunks +3 lines, -9 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java View 1 7 chunks +9 lines, -34 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 2 chunks +9 lines, -12 lines 0 comments Download
M content/public/android/junit/src/org/chromium/content/browser/input/TextInputStateTest.java View 1 3 chunks +4 lines, -3 lines 0 comments Download
M content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionFactoryTest.java View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionTest.java View 1 8 chunks +20 lines, -65 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 chunks +0 lines, -8 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 4 chunks +0 lines, -17 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Changwan Ryu
Created Revert of Allow selection change update before beginBatchEdit
4 years, 1 month ago (2016-11-04 06:40:31 UTC) #1
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/2476883003/1
4 years, 1 month ago (2016-11-04 06:48:52 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/328828)
4 years, 1 month ago (2016-11-04 06:51:37 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/2476883003/300001
4 years, 1 month ago (2016-11-04 07:33:01 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/174287)
4 years, 1 month ago (2016-11-04 07:47:45 UTC) #9
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/2476883003/320001
4 years, 1 month ago (2016-11-04 08:01:50 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:320001)
4 years, 1 month ago (2016-11-04 09:00:21 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 09:02:40 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/967b73c203ccfb4efdd9f862942b9bbe7efdc644
Cr-Commit-Position: refs/heads/master@{#429837}

Powered by Google App Engine
This is Rietveld 408576698