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

Issue 2272793002: Make WebViewImpl::textInputInfo update layout before working on ranges. (Closed)

Created:
4 years, 4 months ago by dglazkov
Modified:
4 years, 3 months ago
Reviewers:
esprehn, Xiaocheng
CC:
blink-reviews, chromium-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make WebViewImpl::textInputInfo update layout before working on ranges. EphemeralRange is supposed to operate on the same version of the tree it was created. Unfortunately, the updateStyleAndLayout call in plainText was causing a DOM mutation in some cases, thus invalidating the range. Let's not do that. BUG=639728 R=esprehn Committed: https://crrev.com/f202a1b8dc8660efa8b173efcaab00675b922daa Cr-Commit-Position: refs/heads/master@{#414826}

Patch Set 1 #

Patch Set 2 : First stab at the unit test. #

Patch Set 3 : Actually working test added. #

Total comments: 3

Patch Set 4 : Comments addressed. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -0 lines) Patch
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 1 chunk +6 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
dglazkov
PTAL.
4 years, 4 months ago (2016-08-23 19:40:14 UTC) #3
esprehn
Can haz test?
4 years, 4 months ago (2016-08-23 20:47:28 UTC) #4
dglazkov
On 2016/08/23 at 20:47:28, esprehn wrote: > Can haz test? Let me think about that.
4 years, 4 months ago (2016-08-23 21:25:55 UTC) #7
dglazkov
First stab at the unit test.
4 years, 4 months ago (2016-08-24 05:02:23 UTC) #8
esprehn
On 2016/08/24 at 05:02:23, dglazkov wrote: > First stab at the unit test. lgtm to ...
4 years, 3 months ago (2016-08-25 23:55:16 UTC) #13
dglazkov
Actually working test added.
4 years, 3 months ago (2016-08-26 05:00:03 UTC) #14
esprehn
https://codereview.chromium.org/2272793002/diff/40001/third_party/WebKit/Source/web/tests/WebViewTest.cpp File third_party/WebKit/Source/web/tests/WebViewTest.cpp (right): https://codereview.chromium.org/2272793002/diff/40001/third_party/WebKit/Source/web/tests/WebViewTest.cpp#newcode738 third_party/WebKit/Source/web/tests/WebViewTest.cpp:738: WebViewImpl* webViewImpl = m_webViewHelper.initialize(true, 0, &client); I suspect this ...
4 years, 3 months ago (2016-08-26 05:23:03 UTC) #17
dglazkov
Comments addressed.
4 years, 3 months ago (2016-08-26 19:48:37 UTC) #20
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/2272793002/60001
4 years, 3 months ago (2016-08-26 21:54:14 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-26 22:00:00 UTC) #28
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f202a1b8dc8660efa8b173efcaab00675b922daa Cr-Commit-Position: refs/heads/master@{#414826}
4 years, 3 months ago (2016-08-26 22:01:14 UTC) #30
Xiaocheng
https://codereview.chromium.org/2272793002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2272793002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode2445 third_party/WebKit/Source/web/WebViewImpl.cpp:2445: DocumentLifecycle::DisallowTransitionScope(focused->document()->lifecycle()); Pass-by: I think we need to have a ...
4 years, 3 months ago (2016-08-30 15:18:24 UTC) #32
dglazkov
4 years, 3 months ago (2016-08-30 16:11:19 UTC) #33
Message was sent while issue was closed.
On 2016/08/30 at 15:18:24, xiaochengh wrote:
>
https://codereview.chromium.org/2272793002/diff/60001/third_party/WebKit/Sour...
> File third_party/WebKit/Source/web/WebViewImpl.cpp (right):
> 
>
https://codereview.chromium.org/2272793002/diff/60001/third_party/WebKit/Sour...
> third_party/WebKit/Source/web/WebViewImpl.cpp:2445:
DocumentLifecycle::DisallowTransitionScope(focused->document()->lifecycle());
> Pass-by: I think we need to have a named scope here, like what
crrev.com/2297503002 does. Otherwise the scope just gets destructed immediately.

Makes sense! Sorry about that. Will add.

Powered by Google App Engine
This is Rietveld 408576698