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

Issue 2670363003: [css-grid] Clamp the number of auto repeat tracks in all cases (Closed)

Created:
3 years, 10 months ago by svillar
Modified:
3 years, 10 months ago
Reviewers:
jfernandez, Manuel Rego, eae
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] Clamp the number of auto repeat tracks in all cases In #446646 we added clamping of auto repetitions so that they respected kGridMaxTracks. The problem is that we were doing it only if the number of auto repeat tracks was >kGridMaxtracks. When the amount of auto-repeat tracks was exactly kGridMaxTracks there was no clamping and thus, the sole existence of one non auto repeat track was enough to surpass the limits. Apart from that there were other non-handled cases, like having more than kGridMaxTracks (both non auto repeat and auto repeat tracks) or having a <track-list> in the auto repeat syntax with more than kGridMaxTracks tracks. BUG=687941 Review-Url: https://codereview.chromium.org/2670363003 Cr-Commit-Position: refs/heads/master@{#448602} Committed: https://chromium.googlesource.com/chromium/src/+/bccd320563864b14db492b37954bac2d9d63d548

Patch Set 1 #

Total comments: 14

Patch Set 2 : New version matching the specs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -53 lines) Patch
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-repeat-huge-grid.html View 1 2 chunks +376 lines, -46 lines 0 comments Download
M third_party/WebKit/Source/core/layout/Grid.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 chunks +23 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
svillar
3 years, 10 months ago (2017-02-06 08:49:56 UTC) #2
Manuel Rego
LGTM. One question, what happens with r"egular" repeat()? For example, are we testing things like? ...
3 years, 10 months ago (2017-02-06 09:51:12 UTC) #3
svillar
Thanks for the review. https://codereview.chromium.org/2670363003/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-repeat-huge-grid.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-repeat-huge-grid.html (right): https://codereview.chromium.org/2670363003/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-repeat-huge-grid.html#newcode106 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-repeat-huge-grid.html:106: <div id="AThousandAutoFillRows" class="grid height25k autoFillRows25px"></div> ...
3 years, 10 months ago (2017-02-06 10:06:04 UTC) #4
Manuel Rego
https://codereview.chromium.org/2670363003/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2670363003/diff/1/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode613 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:613: return repetitions * autoRepeatTrackListLength; On 2017/02/06 10:06:03, svillar wrote: ...
3 years, 10 months ago (2017-02-06 10:09:52 UTC) #5
eae
LGTM
3 years, 10 months ago (2017-02-06 17:56:49 UTC) #6
Manuel Rego
LGTM too.
3 years, 10 months ago (2017-02-07 09:36:36 UTC) #7
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/2670363003/20001
3 years, 10 months ago (2017-02-07 10:23:32 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 11:50:24 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/bccd320563864b14db492b37954b...

Powered by Google App Engine
This is Rietveld 408576698