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

Issue 2022013004: Relayout if FrameView::updateViewSize() set needsLayout (Closed)

Created:
4 years, 6 months ago by Xianzhu
Modified:
4 years, 6 months ago
Reviewers:
chrishtr, esprehn, eae, szager1
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Relayout if FrameView::updateViewSize() set needsLayout BUG=590856 R=chrishtr@chromium.org Committed: https://crrev.com/9eba18f3e99ba3ac91bc0beab8d52cd9f38f3d42 Cr-Commit-Position: refs/heads/master@{#396962}

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -2 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 5 chunks +15 lines, -2 lines 1 comment Download

Messages

Total messages: 22 (5 generated)
Xianzhu
Hopefully this is the main reason of the crash (the 5th crash on m51 for ...
4 years, 6 months ago (2016-05-31 19:33:29 UTC) #2
eae
+szager
4 years, 6 months ago (2016-05-31 19:49:11 UTC) #4
chrishtr
https://codereview.chromium.org/2022013004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2022013004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1049 third_party/WebKit/Source/core/frame/FrameView.cpp:1049: TemporaryChange<bool> suppressAdjustViewSize(m_suppressAdjustViewSize, true); WebViewImpl::layoutUpdated will do this layout already, ...
4 years, 6 months ago (2016-05-31 19:58:15 UTC) #5
Xianzhu
https://codereview.chromium.org/2022013004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2022013004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1049 third_party/WebKit/Source/core/frame/FrameView.cpp:1049: TemporaryChange<bool> suppressAdjustViewSize(m_suppressAdjustViewSize, true); On 2016/05/31 19:58:15, chrishtr wrote: > ...
4 years, 6 months ago (2016-05-31 20:22:54 UTC) #6
chrishtr
https://codereview.chromium.org/2022013004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2022013004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1049 third_party/WebKit/Source/core/frame/FrameView.cpp:1049: TemporaryChange<bool> suppressAdjustViewSize(m_suppressAdjustViewSize, true); On 2016/05/31 at 20:22:54, Xianzhu wrote: ...
4 years, 6 months ago (2016-05-31 20:31:38 UTC) #7
Xianzhu
https://codereview.chromium.org/2022013004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2022013004/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1049 third_party/WebKit/Source/core/frame/FrameView.cpp:1049: TemporaryChange<bool> suppressAdjustViewSize(m_suppressAdjustViewSize, true); On 2016/05/31 20:31:38, chrishtr wrote: > ...
4 years, 6 months ago (2016-05-31 20:54:27 UTC) #8
Xianzhu
4 years, 6 months ago (2016-05-31 21:02:55 UTC) #9
chrishtr
lgtm
4 years, 6 months ago (2016-05-31 21:08:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2022013004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2022013004/20001
4 years, 6 months ago (2016-05-31 21:26:55 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9eba18f3e99ba3ac91bc0beab8d52cd9f38f3d42 Cr-Commit-Position: refs/heads/master@{#396962}
4 years, 6 months ago (2016-05-31 22:59:17 UTC) #14
szager1
Sorry for the late drive-by... https://codereview.chromium.org/2022013004/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2022013004/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1055 third_party/WebKit/Source/core/frame/FrameView.cpp:1055: if (!inSubtreeLayout && !document->printing()) ...
4 years, 6 months ago (2016-06-01 07:48:57 UTC) #15
esprehn
This needs a test, you should be able to easily unit test this.
4 years, 6 months ago (2016-06-06 03:26:21 UTC) #17
dglazkov
On 2016/06/06 at 03:26:21, esprehn wrote: > This needs a test, you should be able ...
4 years, 6 months ago (2016-06-06 03:58:17 UTC) #18
Xianzhu
On 2016/06/06 03:26:21, esprehn wrote: > This needs a test, you should be able to ...
4 years, 6 months ago (2016-06-06 04:21:38 UTC) #19
Xianzhu
On 2016/06/06 03:58:17, dglazkov wrote: > On 2016/06/06 at 03:26:21, esprehn wrote: > > This ...
4 years, 6 months ago (2016-06-06 04:24:43 UTC) #20
eae
LGTM
4 years, 6 months ago (2016-06-06 17:24:15 UTC) #21
dglazkov
4 years, 6 months ago (2016-06-06 18:36:11 UTC) #22
Message was sent while issue was closed.
On 2016/06/06 at 04:24:43, wangxianzhu wrote:
> On 2016/06/06 03:58:17, dglazkov wrote:
> > On 2016/06/06 at 03:26:21, esprehn wrote:
> > > This needs a test, you should be able to easily unit test this.
> > 
> > ... also, could y'all file a bug to come up with a proper solution here? I
am
> > totally fine with time-critical short-term fixes, but we need to be careful
not
> > to get those piled up into more technical debt.
> 
> Hopefully such issues will disappear when rootLayerScrolls launches.

Great! In the past, I've found it useful to add comments to that effect to the
code that's added as a short-term fix. This both discourages spurious additional
callsites from being added, and helps the code archeologists -- just in case :)

Powered by Google App Engine
This is Rietveld 408576698