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

Issue 450783002: [CSS Grid Layout] Ignore positioned block item added after inline (Closed)

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

Description

[CSS Grid Layout] Ignore positioned block item added after inline Right now if you add a positioned block item after an inline item, the positioned block item is inserted inside the anonymous block wrapping the inline item. This was causing an assert in RenderGrid::addChildToIndexesMap() while navigating the sibling boxes, as its previous sibling is an inline. As the positioned block is now not direct child of the grid, we can ignore it, as it's not considered a grid item. The grid item would be the anonymous block. So the proper check is added in RenderGrid::addChild to do it. BUG=401463 TEST=fast/css-grid-layout/grid-add-positioned-block-item-after-inline-item.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181633

Patch Set 1 #

Patch Set 2 : Changes in the test in order to reproduce the bug in current trunk #

Total comments: 2

Patch Set 3 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
A LayoutTests/fast/css-grid-layout/grid-add-positioned-block-item-after-inline-item.html View 1 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-add-positioned-block-item-after-inline-item-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
Manuel Rego
6 years, 4 months ago (2014-08-07 21:41:17 UTC) #1
Manuel Rego
Ping reviewers. Thanks!
6 years, 3 months ago (2014-09-03 16:49:28 UTC) #2
svillar
On 2014/09/03 16:49:28, Manuel Rego wrote: > Ping reviewers. Thanks! Rego do we need this ...
6 years, 3 months ago (2014-09-04 07:51:26 UTC) #3
svillar
On 2014/09/04 07:51:26, svillar wrote: > On 2014/09/03 16:49:28, Manuel Rego wrote: > > Ping ...
6 years, 3 months ago (2014-09-04 09:36:50 UTC) #4
Manuel Rego
On 2014/09/04 09:36:50, svillar wrote: > On 2014/09/04 07:51:26, svillar wrote: > > Rego do ...
6 years, 3 months ago (2014-09-04 15:34:52 UTC) #5
svillar
On 2014/09/04 15:34:52, Manuel Rego wrote: > On 2014/09/04 09:36:50, svillar wrote: > > On ...
6 years, 3 months ago (2014-09-08 08:59:16 UTC) #6
Julien - ping for review
On 2014/09/08 at 08:59:16, svillar wrote: > On 2014/09/04 15:34:52, Manuel Rego wrote: > > ...
6 years, 3 months ago (2014-09-08 23:13:17 UTC) #7
Julien - ping for review
lgtm https://codereview.chromium.org/450783002/diff/20001/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/450783002/diff/20001/Source/core/rendering/RenderGrid.cpp#newcode222 Source/core/rendering/RenderGrid.cpp:222: // If the new child has been inserted ...
6 years, 3 months ago (2014-09-08 23:13:51 UTC) #8
Manuel Rego
https://codereview.chromium.org/450783002/diff/20001/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/450783002/diff/20001/Source/core/rendering/RenderGrid.cpp#newcode222 Source/core/rendering/RenderGrid.cpp:222: // If the new child has been inserted inside ...
6 years, 3 months ago (2014-09-09 10:03:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rego@igalia.com/450783002/40001
6 years, 3 months ago (2014-09-09 10:14:43 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-09 11:17:59 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 181633

Powered by Google App Engine
This is Rietveld 408576698