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

Issue 23472008: [CSS Grid Layout] Support calc() breadth track size (Closed)

Created:
7 years, 2 months ago by svillar
Modified:
7 years, 1 month ago
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@103761-wk
Visibility:
Public.

Description

[CSS Grid Layout] Support calc() breadth track size The RenderGrid support for calc() was already there but we had to add also the CSSComputedStyle support. According to the specs, http://dev.w3.org/csswg/css-grid/#resolved-track-list, we must show the used value. This change also brings several new tests. BUG=297689 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161787

Patch Set 1 #

Total comments: 6

Patch Set 2 : Use isSpecified() and added a FIXME #

Total comments: 2

Patch Set 3 : New version of the patch after the getComputedStyle() recent changes #

Patch Set 4 : Added tests for non-grid definitions #

Patch Set 5 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -8 lines) Patch
M LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set.html View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-expected.txt View 1 2 3 4 3 chunks +30 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple.html View 1 2 3 4 2 chunks +23 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple-expected.txt View 1 2 3 4 3 chunks +20 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/non-grid-columns-rows-get-set.html View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/non-grid-columns-rows-get-set-expected.txt View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/non-grid-columns-rows-get-set-multiple.html View 1 2 3 4 2 chunks +23 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/non-grid-columns-rows-get-set-multiple-expected.txt View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set-multiple.js View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/resources/non-grid-columns-rows-get-set.js View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/resources/non-grid-columns-rows-get-set-multiple.js View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Julien - ping for review
lgtm. @Allan, could you double-check the calc() coverage. https://codereview.chromium.org/23472008/diff/1/LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js File LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js (right): https://codereview.chromium.org/23472008/diff/1/LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js#newcode62 LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js:62: testGridDefinitionsSetJSValues("minmax(25%, ...
7 years, 2 months ago (2013-09-24 19:09:16 UTC) #1
svillar
https://codereview.chromium.org/23472008/diff/1/LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js File LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js (right): https://codereview.chromium.org/23472008/diff/1/LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js#newcode62 LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js:62: testGridDefinitionsSetJSValues("minmax(25%, calc(30px))", "minmax(calc(75%), 40px)", "minmax(25%, 30px)", "minmax(75%, 40px)"); On ...
7 years, 2 months ago (2013-09-25 08:31:45 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/svillar@igalia.com/23472008/7001
7 years, 2 months ago (2013-09-27 06:25:22 UTC) #3
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=5890
7 years, 2 months ago (2013-09-27 07:51:40 UTC) #4
svillar
On 2013/09/27 07:51:40, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 2 months ago (2013-09-27 11:43:27 UTC) #5
alancutter (OOO until 2018)
Sorry for the delay, I've just gotten back from travelling. Calc coverage lgtm with nits. ...
7 years, 2 months ago (2013-09-30 00:24:59 UTC) #6
svillar
This new version mimics the behaviour of IE, i.e., for grid-auto-{*} and for non-grid grid-definition-{*} ...
7 years, 1 month ago (2013-11-05 12:17:37 UTC) #7
svillar
BTW it'd be nice to have another round of reviews as the patch changed significantly ...
7 years, 1 month ago (2013-11-05 16:42:11 UTC) #8
Julien - ping for review
lgtm
7 years, 1 month ago (2013-11-12 06:58:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/svillar@igalia.com/23472008/107001
7 years, 1 month ago (2013-11-12 07:00:42 UTC) #10
commit-bot: I haz the power
Failed to apply patch for LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-expected.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-12 07:00:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/svillar@igalia.com/23472008/197001
7 years, 1 month ago (2013-11-12 08:36:29 UTC) #12
commit-bot: I haz the power
7 years, 1 month ago (2013-11-12 09:42:20 UTC) #13
Message was sent while issue was closed.
Change committed as 161787

Powered by Google App Engine
This is Rietveld 408576698