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

Issue 211053002: [CSS Grid Layout] Avoid mark grid as dirty always when removing a child (Closed)

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

Description

[CSS Grid Layout] Avoid mark grid as dirty always when removing a child Current code always mark the grid as dirty in RenderGrid::removeChild(). If the grid auto flow property is different to none, the grid has to be marked as dirty when a child removed. Just in case, the grid contains auto-placed items, that might need to be re-positioned. Otherwise, we can simple remove the child from the grid cells where it is present and update the coordinates cache accordingly. BUG=248151 TEST=fast/css-grid-layout/grid-item-removal-auto-placement-update.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170484

Patch Set 1 #

Total comments: 2

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M Source/core/rendering/RenderGrid.cpp View 1 1 chunk +16 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Manuel Rego
6 years, 9 months ago (2014-03-25 12:29:16 UTC) #1
Julien - ping for review
lgtm https://codereview.chromium.org/211053002/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/211053002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode227 Source/core/rendering/RenderGrid.cpp:227: if (style()->gridAutoFlow() != AutoFlowNone) { Note that if ...
6 years, 8 months ago (2014-03-31 18:36:50 UTC) #2
Manuel Rego
Thanks for the review. On 2014/03/31 18:36:50, Julien Chaffraix - PST wrote: > https://codereview.chromium.org/211053002/diff/1/Source/core/rendering/RenderGrid.cpp#newcode227 > ...
6 years, 8 months ago (2014-03-31 19:59:38 UTC) #3
Manuel Rego
The CQ bit was checked by rego@igalia.com
6 years, 8 months ago (2014-03-31 19:59:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rego@igalia.com/211053002/20001
6 years, 8 months ago (2014-03-31 19:59:48 UTC) #5
commit-bot: I haz the power
6 years, 8 months ago (2014-03-31 23:51:02 UTC) #6
Message was sent while issue was closed.
Change committed as 170484

Powered by Google App Engine
This is Rietveld 408576698