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

Issue 2491643004: Update layout in WebInputMethodController::finishComposingText (Closed)

Created:
4 years, 1 month ago by Xiaocheng
Modified:
4 years, 1 month ago
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update layout in WebInputMethodController::finishComposingText InputMethodController::finishComposingText requires clean layout, but it may be called with dirty layout from WebInputMethodController::finishComposingText. This patch fixes the issue by adding a layout update call there. BUG=663645 TEST=webkit_unit_tests --gtest_filter=All/WebViewTest.FinishComposingTextDoesNotCrash/* Committed: https://crrev.com/c95cb437f7b36d47f6014f2e9e4358227a62cd24 Cr-Commit-Position: refs/heads/master@{#431837}

Patch Set 1 #

Patch Set 2 : Add unit test #

Total comments: 1

Patch Set 3 : Change test name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -0 lines) Patch
M third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
Xiaocheng
PTAL.
4 years, 1 month ago (2016-11-10 08:52:11 UTC) #5
aelias_OOO_until_Jul13
Can you write a unit test for this? I'd suggest doing it as a C++ ...
4 years, 1 month ago (2016-11-10 19:31:48 UTC) #8
yosin_UTC9
On 2016/11/10 at 19:31:48, aelias wrote: > Can you write a unit test for this? ...
4 years, 1 month ago (2016-11-11 03:47:43 UTC) #9
Xiaocheng
Updated with a WebViewTest. PTAL. Note that the relevant web/ level functions were recently moved ...
4 years, 1 month ago (2016-11-11 05:25:26 UTC) #14
aelias_OOO_until_Jul13
Source/web lgtm
4 years, 1 month ago (2016-11-11 20:26:52 UTC) #17
aelias_OOO_until_Jul13
https://codereview.chromium.org/2491643004/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2491643004/diff/20001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode901 third_party/WebKit/Source/web/tests/WebViewTest.cpp:901: TEST_P(WebViewTest, FinishComposingTextDoesNotCrash) { There's never been a crash here, ...
4 years, 1 month ago (2016-11-11 20:27:32 UTC) #18
Xiaocheng
Thanks for the review. Committing with the test name changed.
4 years, 1 month ago (2016-11-14 06:29:13 UTC) #24
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/2491643004/40001
4 years, 1 month ago (2016-11-14 06:29:21 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-14 06:34:18 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 06:36:18 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c95cb437f7b36d47f6014f2e9e4358227a62cd24
Cr-Commit-Position: refs/heads/master@{#431837}

Powered by Google App Engine
This is Rietveld 408576698