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

Issue 488163002: [CSSGridLayout] <embed> elements leaving stale pointers into grid (Closed)

Created:
6 years, 4 months ago by svillar
Modified:
6 years, 3 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, jfernandez, leviw+renderwatch, pdr., Manuel Rego, rune+blink, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[CSSGridLayout] <embed> elements leaving stale pointers into grid In r177653 (https://codereview.chromium.org/358673003) we added a call to splitAnonymousBoxesAroundChild() in RenderGrid::addChild() in order to properly deal with anonymous grid items being added to the grid. The thing is that we should invalidate the grid after that because that call changes the render tree (normally creating a new anonymous block which will be the parent of the child). The changes in the addChild() function in r177258 hid this bug. if (!style()->isGridAutoFlowAlgorithmStack()) { dirtyGrid(); return; } Since the default initial value of 'grid-auto-flow' is now 'row', every grid that does not specify a value for the property enters this block by default. So the grid was invalidated there hidding the underlying problem. But if we specify 'grid-auto-flow: stack' then we easily reach an inconsistent state in our internal representation (and hit ASSERTs). BUG=401479 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181339

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
A LayoutTests/fast/css-grid-layout/grid-element-embed-crash.html View 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-element-embed-crash-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
svillar
Sending for review.
6 years, 4 months ago (2014-08-20 16:35:35 UTC) #1
cbiesinger
lgtm
6 years, 4 months ago (2014-08-21 21:30:00 UTC) #2
svillar
The CQ bit was checked by svillar@igalia.com
6 years, 4 months ago (2014-08-22 07:25:27 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/svillar@igalia.com/488163002/1
6 years, 4 months ago (2014-08-22 07:25:51 UTC) #4
svillar
The CQ bit was checked by svillar@igalia.com
6 years, 4 months ago (2014-08-22 07:38:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/svillar@igalia.com/488163002/1
6 years, 4 months ago (2014-08-22 07:38:17 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-22 08:23:38 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-22 08:26:23 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/13482)
6 years, 4 months ago (2014-08-22 08:26:24 UTC) #9
svillar
On 2014/08/22 08:26:24, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 4 months ago (2014-08-22 14:03:35 UTC) #10
svillar
@jchaffraix, @esprehn: anyone?
6 years, 3 months ago (2014-08-26 09:12:10 UTC) #11
Julien - ping for review
lgtm
6 years, 3 months ago (2014-09-03 20:43:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/svillar@igalia.com/488163002/1
6 years, 3 months ago (2014-09-03 20:44:06 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-03 20:48:30 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 181339

Powered by Google App Engine
This is Rietveld 408576698