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

Issue 2254843002: [css-grid] Avoid computing twice the number of auto-repeat columns (Closed)

Created:
4 years, 4 months ago by Manuel Rego
Modified:
4 years, 4 months ago
CC:
jfernandez, szager+layoutwatch_chromium.org, zoltan1, svillar, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, Manuel Rego, leviw+renderwatch, jchaffraix+rendering, blink-reviews, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Avoid computing twice the number of auto-repeat columns During the track sizing layout, we were computing twice the number of auto-repeat columns. That was causing crashes on debug and ASAN builds. The patch computes the value once and pass it to LayoutGrid::placeItemsOnGrid(), which avoids the issue. Add new cases that were crashing to test introduced in r405529. BUG=633474 TBR=svillar@igalia.com TEST=fast/css-grid-layout/grid-indefinite-size-auto-repeat-crash.html Committed: https://crrev.com/49bc5ba13c492f09971882e2cb842e3514d19922 Cr-Commit-Position: refs/heads/master@{#412638}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -9 lines) Patch
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-indefinite-size-auto-repeat-crash.html View 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-indefinite-size-auto-repeat-crash-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 3 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Manuel Rego
Probably this needs further investigation but this patch avoids the crash and doesn't seem harmful.
4 years, 4 months ago (2016-08-17 17:19:05 UTC) #3
cbiesinger
lgtm, thanks!
4 years, 4 months ago (2016-08-17 17:25:53 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2254843002/1
4 years, 4 months ago (2016-08-17 19:34:34 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-17 21:15:13 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/49bc5ba13c492f09971882e2cb842e3514d19922 Cr-Commit-Position: refs/heads/master@{#412638}
4 years, 4 months ago (2016-08-17 21:17:58 UTC) #10
eae
4 years, 4 months ago (2016-08-18 02:18:42 UTC) #11
Message was sent while issue was closed.
Thank you!

Powered by Google App Engine
This is Rietveld 408576698