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

Issue 1895443002: [css-grid] Implement auto-repeat computation (Closed)

Created:
4 years, 8 months ago by svillar
Modified:
4 years, 7 months 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Implement auto-repeat computation We added support for parsing and style for the new auto-repeat syntax. This CL actually implements the feature by computing the number of auto-repeat tracks that will be part of the explicit grid depending on the available size on the corresponding axis. Note that this CL does not drop the empty tracks, i.e., auto-fit will work exactly as auto-fill until the empty track removal is implemented. Test results are not totally correct yet because we need to add the line names to the computed style. As that requires a rather large piece of code it will be done in a follow up patch. Track sizes are correct though. BUG=589460 Committed: https://crrev.com/7b1b0f17c7a1eac0283fc9daa519328a42e0139f Cr-Commit-Position: refs/heads/master@{#389456}

Patch Set 1 #

Total comments: 42

Patch Set 2 : Missing tests. Applied suggested changes #

Total comments: 32

Patch Set 3 : Tests for style changes. Review fixes. #

Patch Set 4 : Build fix for last CL #

Patch Set 5 : Updated expectations #

Total comments: 16

Patch Set 6 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2859 lines, -49 lines) Patch
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-columns.html View 1 2 3 4 5 1 chunk +144 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-rows.html View 1 2 3 4 5 1 chunk +148 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-change-auto-repeat-tracks.html View 1 2 3 4 5 1 chunk +136 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-change-auto-repeat-tracks-expected.txt View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set.html View 1 1 chunk +10 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt View 1 chunk +24 lines, -24 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-001.html View 1 2 3 4 5 1 chunk +179 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-001-expected.html View 1 1 chunk +193 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-002.html View 1 2 3 4 5 1 chunk +183 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-002-expected.html View 1 1 chunk +190 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-003.html View 1 2 3 4 5 1 chunk +182 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-003-expected.html View 1 2 1 chunk +191 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-004.html View 1 2 3 4 5 1 chunk +184 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-004-expected.html View 1 2 1 chunk +193 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005.html View 1 2 3 4 5 1 chunk +378 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005-expected.html View 1 1 chunk +384 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 3 4 5 4 chunks +109 lines, -10 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
svillar
Sending out for review
4 years, 8 months ago (2016-04-18 07:51:47 UTC) #2
Manuel Rego
This is a first review with several comments. I'm missing more tests (we're only testing ...
4 years, 8 months ago (2016-04-18 21:31:42 UTC) #3
svillar
Thanks for the nice review. https://codereview.chromium.org/1895443002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt (right): https://codereview.chromium.org/1895443002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt#newcode7 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt:7: FAIL getComputedStyle(element, '').getPropertyValue('grid-template-columns') should ...
4 years, 8 months ago (2016-04-19 08:09:36 UTC) #4
svillar
https://codereview.chromium.org/1895443002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt (right): https://codereview.chromium.org/1895443002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt#newcode19 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt:19: FAIL getComputedStyle(element, '').getPropertyValue('grid-template-columns') should be none. Was 150px 150px ...
4 years, 8 months ago (2016-04-19 08:19:23 UTC) #5
Manuel Rego
Thanks for the explanations, now I got things better. https://codereview.chromium.org/1895443002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt (right): https://codereview.chromium.org/1895443002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt#newcode19 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt:19: ...
4 years, 8 months ago (2016-04-19 11:37:30 UTC) #6
svillar
BTW, regarding having more tests, I've just realized that I haven't included all the mozilla ...
4 years, 8 months ago (2016-04-19 13:58:08 UTC) #7
Manuel Rego
A few more comments. BTW, apart from the warnings in the compiler (as you can ...
4 years, 8 months ago (2016-04-19 17:22:16 UTC) #8
svillar
Regarding the tests for the rows, the mozilla tests are full of them, do you ...
4 years, 8 months ago (2016-04-20 08:24:18 UTC) #9
Manuel Rego
On 2016/04/20 08:24:18, svillar wrote: > Regarding the tests for the rows, the mozilla tests ...
4 years, 8 months ago (2016-04-20 09:57:44 UTC) #10
svillar
Patch should be ready for review now. I've uploaded all the missing tests&expectations and fixed ...
4 years, 8 months ago (2016-04-21 14:16:29 UTC) #12
Manuel Rego
Non-owner LGTM. I've some minor comments (mostly on the tests). https://codereview.chromium.org/1895443002/diff/100001/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-columns.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-columns.html (right): https://codereview.chromium.org/1895443002/diff/100001/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-columns.html#newcode17 ...
4 years, 8 months ago (2016-04-22 12:57:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1895443002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1895443002/120001
4 years, 8 months ago (2016-04-25 08:57:54 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 8 months ago (2016-04-25 12:33:04 UTC) #17
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/7b1b0f17c7a1eac0283fc9daa519328a42e0139f Cr-Commit-Position: refs/heads/master@{#389456}
4 years, 8 months ago (2016-04-25 12:34:50 UTC) #19
Charlie Reis
4 years, 8 months ago (2016-04-25 16:49:25 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:120001) has been created in
https://codereview.chromium.org/1920953002/ by creis@chromium.org.

The reason for reverting is: Appeared to cause lots of fast/css-grid-layout test
failures on WebKit Linux MSAN:
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20MSAN/b....

Powered by Google App Engine
This is Rietveld 408576698