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

Issue 2480493002: [css-grid] Use min|max-sizes to compute flex fraction (Closed)

Created:
4 years, 1 month ago by svillar
Modified:
4 years, 1 month ago
CC:
chromium-reviews, 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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Use min|max-sizes to compute flex fraction The min|max-sizes must be used to compute the flex fraction for indefinite free spaces. According to the spec "If using this flex fraction would cause the grid to be smaller than the grid container’s min-width/height (or larger than the grid container’s max-width/height), then redo this step, treating the free space as definite and the available grid space as equal to the grid container’s content box size when it’s sized to its min-width/height (max-width/height)." This only affects heights because during layout widths are properly constrained by min|max-width restrictions. BUG=660690 Committed: https://crrev.com/ee54fbc9b393d7d7b7e49f3f17f3178e817f2e94 Cr-Commit-Position: refs/heads/master@{#430654}

Patch Set 1 #

Total comments: 8

Patch Set 2 : New approach caching the computations #

Patch Set 3 : Fix. More checks. Do not duplicate vectors #

Patch Set 4 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -8 lines) Patch
A third_party/WebKit/LayoutTests/fast/css-grid-layout/flex-sizing-columns-min-max-width.html View 1 2 3 1 chunk +90 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/flex-sizing-rows-min-max-height.html View 1 2 3 1 chunk +91 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 3 1 chunk +64 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
svillar
4 years, 1 month ago (2016-11-03 18:18:57 UTC) #2
jfernandez
I think we could do this in a different way, trying to reuse the flex ...
4 years, 1 month ago (2016-11-04 11:30:43 UTC) #3
svillar
Thanks for the review https://codereview.chromium.org/2480493002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2480493002/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode880 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:880: if (direction == ForRows) { ...
4 years, 1 month ago (2016-11-04 11:42:06 UTC) #4
jfernandez
lgtm
4 years, 1 month ago (2016-11-08 11:38:53 UTC) #5
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/2480493002/60001
4 years, 1 month ago (2016-11-08 16:40:14 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-08 18:17:51 UTC) #9
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 18:38:35 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ee54fbc9b393d7d7b7e49f3f17f3178e817f2e94
Cr-Commit-Position: refs/heads/master@{#430654}

Powered by Google App Engine
This is Rietveld 408576698