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

Issue 255433003: RenderBlock::isSelfCollapsingBlock() should early exit on a relayout boundary (Closed)

Created:
6 years, 8 months ago by trchen
Modified:
6 years, 8 months ago
Reviewers:
ojan
CC:
blink-reviews, chrishtr, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink
Visibility:
Public.

Description

RenderBlock::isSelfCollapsingBlock() should early exit on a relayout boundary RenderBox::layoutOverflowRectForPropagation() needs to know whether the current block is self-collapsing to pad layout overflow with after-margin. This can trigger an assertion failure that it expects clean layout. This breaks the contract of relayout boundary that its internal layout shouldn't matter to the parent. This CL simply reorders the assertion so we can give a quick answer if the box is a relayout boundary before we assume clean layout. This CL fixes an existing test failure cause by another CL. CL affected by this bug: https://codereview.chromium.org/203463007 TEST=fast/overflow/overflow-dirty-relayout-boundary-no-crash.html BUG=365507 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172577

Patch Set 1 #

Total comments: 1

Patch Set 2 : add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -5 lines) Patch
A LayoutTests/fast/overflow/overflow-dirty-relayout-boundary-no-crash.html View 1 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/fast/overflow/overflow-dirty-relayout-boundary-no-crash-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
trchen
6 years, 8 months ago (2014-04-23 23:12:07 UTC) #1
ojan
Is there a layout test for this failure? If not, I think it's worth writing ...
6 years, 8 months ago (2014-04-24 17:22:08 UTC) #2
ojan
On 2014/04/24 17:22:08, ojan wrote: > Is there a layout test for this failure? If ...
6 years, 8 months ago (2014-04-24 17:27:36 UTC) #3
trchen
On 2014/04/24 17:27:36, ojan wrote: > On 2014/04/24 17:22:08, ojan wrote: > > Is there ...
6 years, 8 months ago (2014-04-24 20:25:23 UTC) #4
trchen
test uploaded
6 years, 8 months ago (2014-04-25 01:16:50 UTC) #5
ojan
lgtm Clarified the root cause of the bug on chat. Ojan Vafai: so, the overflow:hidden ...
6 years, 8 months ago (2014-04-25 02:30:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/255433003/20001
6 years, 8 months ago (2014-04-25 02:30:37 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-25 03:40:55 UTC) #8
Message was sent while issue was closed.
Change committed as 172577

Powered by Google App Engine
This is Rietveld 408576698