Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in

Issue 2748983003: [css-grid] Fix crash removing positioned grid item (Closed)

3 years, 6 months ago by Manuel Rego
3 years, 6 months ago
chromium-reviews, jfernandez,, zoltan1, svillar,,, Manuel Rego, leviw+renderwatch, jchaffraix+rendering, blink-reviews, eae+blinkwatch
Target Ref:


[css-grid] Fix crash removing positioned grid item When we add or remove a positioned item we don't need to mark the grid as dirty, because positioned items do not affect the layout of the grid at all. This was causing a crash when a positioned item was removed after a layout. As after the positioned item was removed, the method LayoutGrid::layoutBlock() was not called, so when the grid was repainted we got a crash. BUG=700383 TEST=fast/css-grid-layout/grid-crash-remove-positioned-item.html Review-Url: Cr-Commit-Position: refs/heads/master@{#457061} Committed:

Patch Set 1 #

Total comments: 10

Patch Set 2 : Early return, improved test and more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item-expected.txt View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 chunks +12 lines, -0 lines 0 comments Download


Total messages: 11 (5 generated)
Manuel Rego
3 years, 6 months ago (2017-03-15 09:05:05 UTC) #2
lgtm File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item-expected.txt (right): third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item-expected.txt:5: item Do we really need the "item" text ...
3 years, 6 months ago (2017-03-15 09:26:36 UTC) #3
lgtm too File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item.html (right): third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item.html:14: document.getElementById("grid").removeChild(document.getElementById("abspositem")); Don't we need a test for ...
3 years, 6 months ago (2017-03-15 10:03:54 UTC) #4
Manuel Rego
Thanks for the quick reviews! File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item-expected.txt (right): third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item-expected.txt:5: item On 2017/03/15 09:26:36, ...
3 years, 6 months ago (2017-03-15 10:59:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at
3 years, 6 months ago (2017-03-15 10:59:55 UTC) #8
commit-bot: I haz the power
3 years, 6 months ago (2017-03-15 12:46:43 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as

Powered by Google App Engine
This is Rietveld 408576698