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

Issue 1906803002: Prevent markContainerChainForLayout to scheduleRelayout() if isInPerformLayout() (Closed)

Created:
4 years, 8 months ago by kojii
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent markContainerChainForLayout to scheduleRelayout() if isInPerformLayout() When we're in layout, markContainerChainForLayout() is marking a descendant as needing layout with the intention of visiting it during this layout. We shouldn't be scheduling it to be laid out later. Also, schedduleRelayout() must not be called while iterating FrameView::m_layoutSubtreeRootList. BUG=602908, 589773 Committed: https://crrev.com/1a0aa2dff16abbd9bc7f906b4d807766668bde17 Cr-Commit-Position: refs/heads/master@{#389691}

Patch Set 1 #

Patch Set 2 : RELEASE_ASSERT to FrameView #

Total comments: 2

Patch Set 3 : leviw/cbiesinger reviews #

Total comments: 1

Patch Set 4 : Fix typo "scheddule" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
kojii
WDYT about forcibly turn scheduleRelayout() off if isInPerfomLayout()? I put the assert and tried to ...
4 years, 8 months ago (2016-04-22 05:29:05 UTC) #4
leviw_travelin_and_unemployed
I think this is totally reasonable. LGTM. https://codereview.chromium.org/1906803002/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/1906803002/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode806 third_party/WebKit/Source/core/layout/LayoutObject.cpp:806: if (scheduleRelayout ...
4 years, 8 months ago (2016-04-22 17:24:33 UTC) #5
cbiesinger
lgtm. I agree with Levi's suggestion of a comment.
4 years, 8 months ago (2016-04-22 18:01:29 UTC) #6
cbiesinger
On 2016/04/22 18:01:29, cbiesinger wrote: > lgtm. I agree with Levi's suggestion of a comment. ...
4 years, 8 months ago (2016-04-22 18:03:21 UTC) #7
kojii
On 2016/04/22 at 18:03:21, cbiesinger wrote: > On 2016/04/22 18:01:29, cbiesinger wrote: > > lgtm. ...
4 years, 8 months ago (2016-04-25 02:39:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906803002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906803002/40001
4 years, 8 months ago (2016-04-26 02:03:39 UTC) #13
cbiesinger
https://codereview.chromium.org/1906803002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/1906803002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode758 third_party/WebKit/Source/core/layout/LayoutObject.cpp:758: // Also, schedduleRelayout() must not be called while iterating ...
4 years, 8 months ago (2016-04-26 02:04:30 UTC) #14
kojii
On 2016/04/26 at 02:04:30, cbiesinger wrote: > https://codereview.chromium.org/1906803002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp > File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): > > https://codereview.chromium.org/1906803002/diff/40001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode758 ...
4 years, 8 months ago (2016-04-26 02:05:49 UTC) #16
cbiesinger
On 2016/04/26 02:05:49, kojii wrote: > On 2016/04/26 at 02:04:30, cbiesinger wrote: > > > ...
4 years, 8 months ago (2016-04-26 02:07:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906803002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906803002/60001
4 years, 8 months ago (2016-04-26 02:09:52 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-26 04:13:03 UTC) #22
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 04:14:25 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1a0aa2dff16abbd9bc7f906b4d807766668bde17
Cr-Commit-Position: refs/heads/master@{#389691}

Powered by Google App Engine
This is Rietveld 408576698