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

Issue 1585793002: Update lifecycle phases when a WebView is resized. (Closed)

Created:
4 years, 11 months ago by chrishtr
Modified:
4 years, 11 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update lifecycle phases when a WebView is resized. Previously, the lifecycle update was deferred, and the WebWidgetClient was notified that a lifecycle update is necessary. This is bad because: a) It appears unnecessary; why not just advance the lifecycle now? b) It may cause a bug: the WebView may belong to a parent WebView (e.g. in the case of a webview plugin), which can be resized during updating of widgets of the parent webview. This then results in a lifecycle violation for the parent, because layout cannot be dirtied after layout is clean when processing the lifecycle. BUG=545039 Committed: https://crrev.com/0327d2cadba88be176486ebc56f4eefbc62dc773 Cr-Commit-Position: refs/heads/master@{#369678}

Patch Set 1 #

Patch Set 2 : #

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

Messages

Total messages: 23 (11 generated)
chrishtr
4 years, 11 months ago (2016-01-13 20:42:55 UTC) #3
leviw_travelin_and_unemployed
Can you add to the description about what we think is going on here and ...
4 years, 11 months ago (2016-01-13 22:11:15 UTC) #4
chrishtr
On 2016/01/13 at 22:11:15, leviw wrote: > Can you add to the description about what ...
4 years, 11 months ago (2016-01-13 22:28:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585793002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585793002/1
4 years, 11 months ago (2016-01-13 22:35:11 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) mac_chromium_gn_rel on ...
4 years, 11 months ago (2016-01-13 23:46:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585793002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585793002/1
4 years, 11 months ago (2016-01-14 00:47:31 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/165618)
4 years, 11 months ago (2016-01-14 01:53:15 UTC) #15
chrishtr
Updated to move the lifecycle update one level in the call chain, in resizeViewWhileAnchored. Previously ...
4 years, 11 months ago (2016-01-15 02:16:43 UTC) #16
chrishtr
https://codereview.chromium.org/1585793002/diff/20001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (left): https://codereview.chromium.org/1585793002/diff/20001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#oldcode4716 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:4716: EXPECT_FALSE(fakeSelectionLayerTreeView.getAndResetSelectionCleared()); This change is because we are now pumping ...
4 years, 11 months ago (2016-01-15 02:17:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585793002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585793002/20001
4 years, 11 months ago (2016-01-15 02:18:03 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-15 04:05:07 UTC) #21
commit-bot: I haz the power
4 years, 11 months ago (2016-01-15 04:07:09 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0327d2cadba88be176486ebc56f4eefbc62dc773
Cr-Commit-Position: refs/heads/master@{#369678}

Powered by Google App Engine
This is Rietveld 408576698