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

Issue 582733003: [CSSGridLayout] Pass the valid tracks for |tracksForGrowAboveMaxBreadth| (Closed)

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

Description

[CSSGridLayout] Pass the valid tracks for |tracksForGrowAboveMaxBreadth| Section 10.4 of the specs describe how to resolve content based track sizing functions. Among others it describes the "distribute extra space" algorithm. The 3rd bullet of that algorithm specifies how to distribute (and also in which subset of tracks) the extra space once all the tracks have reached their grow limits. Our implementation had 2 problems. First we were not passing a valid subset of tracks (instead we were using all of them). Secondly the algorithm that was distributing the extra space was not using that list of passed in tracks, instead it was using all of them. Now we use a function that filters the right tracks to be the target of the extra space distribution depending on whether we're computing the min track function or max track function. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184181

Patch Set 1 #

Total comments: 10

Patch Set 2 : Patch for landing #

Patch Set 3 : Build fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -15 lines) Patch
M LayoutTests/fast/css-grid-layout/grid-content-sized-columns-resolution.html View 1 3 chunks +42 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-content-sized-columns-resolution-expected.txt View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderGrid.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 7 chunks +19 lines, -12 lines 0 comments Download
M Source/core/rendering/style/GridTrackSize.h View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 23 (8 generated)
svillar
Adding reviewers
6 years, 3 months ago (2014-09-18 14:37:46 UTC) #2
Julien - ping for review
Sorry for the delay in reviewing, last week was pretty bad. https://codereview.chromium.org/582733003/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): ...
6 years, 2 months ago (2014-09-30 17:36:57 UTC) #3
svillar
Thanks for the review. https://codereview.chromium.org/582733003/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/582733003/diff/1/Source/core/rendering/RenderGrid.cpp#newcode734 Source/core/rendering/RenderGrid.cpp:734: sizingData.growAboveMaxBreadthTrackIndexes.append(sizingData.filteredTracks.size() - 1); On 2014/09/30 ...
6 years, 2 months ago (2014-10-01 07:48:57 UTC) #4
svillar
@jchaffraix I think I responded to your questions above. WDTY?
6 years, 2 months ago (2014-10-08 13:55:25 UTC) #5
svillar
Gentle ping
6 years, 2 months ago (2014-10-17 13:14:17 UTC) #6
Julien - ping for review
lgtm https://codereview.chromium.org/582733003/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/582733003/diff/1/Source/core/rendering/RenderGrid.cpp#newcode734 Source/core/rendering/RenderGrid.cpp:734: sizingData.growAboveMaxBreadthTrackIndexes.append(sizingData.filteredTracks.size() - 1); On 2014/10/01 at 07:48:56, svillar ...
6 years, 2 months ago (2014-10-21 16:58:08 UTC) #7
svillar
https://codereview.chromium.org/582733003/diff/1/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/582733003/diff/1/Source/core/rendering/RenderGrid.cpp#newcode734 Source/core/rendering/RenderGrid.cpp:734: sizingData.growAboveMaxBreadthTrackIndexes.append(sizingData.filteredTracks.size() - 1); On 2014/10/21 16:58:08, Julien Chaffraix - ...
6 years, 2 months ago (2014-10-22 07:16:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/582733003/1
6 years, 2 months ago (2014-10-22 08:56:16 UTC) #10
commit-bot: I haz the power
Failed to apply patch for LayoutTests/fast/css-grid-layout/grid-content-sized-columns-resolution-expected.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-22 08:56:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/582733003/20001
6 years, 2 months ago (2014-10-22 09:10:27 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_dbg/builds/16650) android_blink_compile_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_rel/builds/16674) linux_blink_dbg ...
6 years, 2 months ago (2014-10-22 09:25:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/582733003/40001
6 years, 2 months ago (2014-10-22 10:10:47 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/33045)
6 years, 2 months ago (2014-10-22 11:56:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/582733003/40001
6 years, 2 months ago (2014-10-22 12:52:28 UTC) #22
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 14:02:12 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 184181

Powered by Google App Engine
This is Rietveld 408576698