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

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

Created:
3 years, 9 months ago by Manuel Rego
Modified:
3 years, 9 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/3029
Project:
chromium
Visibility:
Public.

Description

[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: https://codereview.chromium.org/2748983003 Cr-Commit-Position: refs/heads/master@{#457061} (cherry picked from commit eb7634d5a91a495af9495164ffb2e5f1f91f7e09) Review-Url: https://codereview.chromium.org/2751303003 . Cr-Commit-Position: refs/branch-heads/3029@{#240} Cr-Branched-From: 939b32ee5ba05c396eef3fd992822fcca9a2e262-refs/heads/master@{#454471} Committed: https://chromium.googlesource.com/chromium/src/+/f8c01b50cd38042bddf578f5539726cf57812447

Patch Set 1 #

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 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 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
Manuel Rego
3 years, 9 months ago (2017-03-16 15:10:31 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
f8c01b50cd38042bddf578f5539726cf57812447.

Powered by Google App Engine
This is Rietveld 408576698