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

Issue 2161003003: [css-grid] repeat() syntax should take a <track-list> argument (Closed)

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

Description

[css-grid] repeat() syntax should take a <track-list> argument The repeat() notation used to allow just 1 <track-size> as second argument. It was recently changed to support <track-list> instead, meaning that we can pass an arbitrary number of track sizes and line numbers. It has been working for some time for repeat() if the first argument was a positive integer, but it requires some changes for the auto repeat cases (auto-fill and auto-fit). BUG=619930 Committed: https://crrev.com/5e06bcde925d051ebdcb42243dc15084d762e17b Cr-Commit-Position: refs/heads/master@{#406540}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -53 lines) Patch
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-columns.html View 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fill-rows.html View 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fit-columns.html View 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fit-rows.html View 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set.html View 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-repeat-get-set.html View 4 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-repeat-get-set-expected.txt View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 5 chunks +17 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 8 chunks +26 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/style/GridPositionsResolver.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/GridPositionsResolver.cpp View 5 chunks +15 lines, -11 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
svillar
Sending out for review
4 years, 5 months ago (2016-07-19 13:23:07 UTC) #2
jfernandez
https://codereview.chromium.org/2161003003/diff/1/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp File third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp (right): https://codereview.chromium.org/2161003003/diff/1/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp#newcode747 third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp:747: OrderedNamedLinesCollector(const ComputedStyle& style, bool isRowAxis, size_t autoRepeatTracks) I'd add ...
4 years, 5 months ago (2016-07-19 14:43:18 UTC) #4
eae
LGTM w/nit but please make sure you address all of jfernandezs concerns before landing. https://codereview.chromium.org/2161003003/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp ...
4 years, 5 months ago (2016-07-19 20:59:48 UTC) #5
svillar
Thanks for both reviews. https://codereview.chromium.org/2161003003/diff/1/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp File third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp (right): https://codereview.chromium.org/2161003003/diff/1/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp#newcode747 third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp:747: OrderedNamedLinesCollector(const ComputedStyle& style, bool isRowAxis, ...
4 years, 5 months ago (2016-07-20 07:22:30 UTC) #6
dollieward40_gmail.com
-- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. ...
4 years, 5 months ago (2016-07-20 07:53:54 UTC) #7
jfernandez
LGTM https://codereview.chromium.org/2161003003/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2161003003/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode883 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:883: return trackStyles[untranslatedIndex - autoRepeatTracksCount]; On 2016/07/20 07:22:30, svillar ...
4 years, 5 months ago (2016-07-20 08:51:50 UTC) #8
Manuel Rego
I'm late to the party but it looks good to me too. Maybe next patch ...
4 years, 5 months ago (2016-07-20 09:20:29 UTC) #9
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/2161003003/20001
4 years, 5 months ago (2016-07-20 09:32:25 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-20 13:06:04 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 13:06:11 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 13:07:57 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5e06bcde925d051ebdcb42243dc15084d762e17b
Cr-Commit-Position: refs/heads/master@{#406540}

Powered by Google App Engine
This is Rietveld 408576698