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

Issue 14715014: Add parsing for named grid lines (Closed)

Created:
7 years, 7 months ago by Julien - ping for review
Modified:
7 years, 7 months ago
Reviewers:
esprehn
CC:
blink-reviews, apavlov+blink_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, darktears, ojan
Visibility:
Public.

Description

Add parsing for named grid lines This extends our grammar to support named grid lines (no support for named grid lines with 'span' yet, though the testing for that is added as part of this change). The idea is that we convert the existing "integer position" into an explicit position that covers [ <integer> || <string> ] in the grammar. Also to simplify StyleResolver, we always create a CSSValueList with the different values in a well-defined order. The grid-item-*-get-set.html tests were improved to support the extended grammar and some clean-up was done in the invalid cases in grid-item-column-row-get-set.html as a lot of them could fail for 2 reasons (both positions are span and another one). BUG=234192 TESTS=fast/css-grid-layout/grid-item-column-row-get-set.html fast/css-grid-layout/grid-item-end-after-get-set.html fast/css-grid-layout/grid-item-start-before-get-set.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150381

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add support the right grammar, more testing #

Patch Set 3 : Retry upload, same change as 2 #

Total comments: 5

Patch Set 4 : Patch for landing (fixed Elliott's comments) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -40 lines) Patch
M LayoutTests/fast/css-grid-layout/grid-item-column-row-get-set.html View 1 5 chunks +51 lines, -3 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-column-row-get-set-expected.txt View 1 3 chunks +174 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-end-after-get-set.html View 4 chunks +20 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-end-after-get-set-expected.txt View 2 chunks +30 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-start-before-get-set.html View 4 chunks +20 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-item-start-before-get-set-expected.txt View 2 chunks +30 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/resources/grid-item-column-row-parsing-utils.js View 1 chunk +14 lines, -4 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 1 chunk +8 lines, -5 lines 0 comments Download
M Source/core/css/CSSParser.cpp View 1 2 3 2 chunks +26 lines, -6 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 1 chunk +37 lines, -16 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/style/GridPosition.h View 1 2 3 4 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Julien - ping for review
7 years, 7 months ago (2013-05-09 20:02:47 UTC) #1
Julien - ping for review
https://codereview.chromium.org/14715014/diff/1/Source/core/css/CSSParser.cpp File Source/core/css/CSSParser.cpp (right): https://codereview.chromium.org/14715014/diff/1/Source/core/css/CSSParser.cpp#newcode4565 Source/core/css/CSSParser.cpp:4565: } else if (value->unit == CSSPrimitiveValue::CSS_STRING) { This change ...
7 years, 7 months ago (2013-05-09 21:48:42 UTC) #2
Julien - ping for review
The new patchset matches the syntax properly (woohoo!). It introduces some temporary code duplication that ...
7 years, 7 months ago (2013-05-10 14:36:01 UTC) #3
Julien - ping for review
Reviewer ping!
7 years, 7 months ago (2013-05-14 21:44:34 UTC) #4
esprehn
LGTM. This looks okay, but I'm somewhat confused at how named grid lines work. I ...
7 years, 7 months ago (2013-05-14 21:52:27 UTC) #5
Julien - ping for review
https://codereview.chromium.org/14715014/diff/3002/Source/core/rendering/style/GridPosition.h File Source/core/rendering/style/GridPosition.h (right): https://codereview.chromium.org/14715014/diff/3002/Source/core/rendering/style/GridPosition.h#newcode56 Source/core/rendering/style/GridPosition.h:56: bool isExplicit() const { return m_type == ExplicitPosition; } ...
7 years, 7 months ago (2013-05-14 22:51:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jchaffraix@chromium.org/14715014/18001
7 years, 7 months ago (2013-05-14 22:59:30 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-14 23:25:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jchaffraix@chromium.org/14715014/18001
7 years, 7 months ago (2013-05-14 23:37:13 UTC) #9
commit-bot: I haz the power
7 years, 7 months ago (2013-05-15 00:12:52 UTC) #10
Message was sent while issue was closed.
Change committed as 150381

Powered by Google App Engine
This is Rietveld 408576698