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

Issue 636993002: [CSS Grid Layout] Upgrade justify-content parsing to CSS3 Box Alignment spec. (Closed)

Created:
6 years, 2 months ago by jfernandez
Modified:
6 years, 1 month ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-rendering, cbiesinger, dglazkov+blink, eae+blinkwatch, ed+blinkwatch_opera.com, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rwlbuis, rune+blink, zoltan1, Manuel Rego
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[CSS Grid Layout] Upgrade justify-content parsing to CSS3 Box Alignment spec. Upgrade the justify-content property to the last CSS3 Box Alignment specification. It defines a different enumeration for Positional and Distribution alignment, which requires changes in the FexibleBox impementation. BUG=249451 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184660

Patch Set 1 #

Total comments: 19

Patch Set 2 : Using a custom CSSValue to simplify parsing and style building. #

Total comments: 18

Patch Set 3 : Applied suggested changes. #

Patch Set 4 : Fixed bug in the CSSContentDistributionValue causing unit tests to crash. #

Patch Set 5 : Fixed layout tests checking out justify-content's default value. #

Patch Set 6 : Set runtime flag for justify-content property. #

Patch Set 7 : Removed runtime flag and got back the computed style 'auto' resolution. #

Patch Set 8 : No runtime flag but removing the Keyword nature for all the cases. #

Patch Set 9 : Rebaseline some tests expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+896 lines, -76 lines) Patch
A LayoutTests/fast/alignment/parse-justify-content.html View 1 2 1 chunk +340 lines, -0 lines 0 comments Download
A LayoutTests/fast/alignment/parse-justify-content-expected.txt View 1 2 1 chunk +140 lines, -0 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/css/getComputedStyle-basic-expected.txt View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/core.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 3 chunks +26 lines, -1 line 0 comments Download
A Source/core/css/CSSContentDistributionValue.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A Source/core/css/CSSContentDistributionValue.cpp View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
M Source/core/css/CSSPrimitiveValueMappings.h View 1 2 chunks +109 lines, -45 lines 0 comments Download
M Source/core/css/CSSProperties.in View 1 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSValue.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/css/CSSValue.cpp View 1 2 3 6 chunks +14 lines, -0 lines 0 comments Download
M Source/core/css/CSSValueKeywords.in View 1 2 chunks +8 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSParserFastPaths.cpp View 1 7 2 chunks +0 lines, -4 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 5 chunks +68 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleAdjuster.cpp View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 chunks +26 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderFlexibleBox.cpp View 1 6 chunks +11 lines, -11 lines 0 comments Download
M Source/core/rendering/RenderFullScreen.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 4 chunks +10 lines, -3 lines 0 comments Download
M Source/core/rendering/style/RenderStyleConstants.h View 1 2 chunks +21 lines, -1 line 0 comments Download
M Source/core/rendering/style/StyleRareNonInheritedData.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/rendering/style/StyleRareNonInheritedData.cpp View 1 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (16 generated)
jfernandez
6 years, 2 months ago (2014-10-07 17:52:01 UTC) #2
Julien - ping for review
https://codereview.chromium.org/636993002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/636993002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode4100 Source/core/css/parser/CSSPropertyParser.cpp:4100: // auto | <baseline-position> | [ <content-distribution> <content-position>? | ...
6 years, 2 months ago (2014-10-20 21:24:02 UTC) #3
Timothy Loh
Some drive-by comments: https://codereview.chromium.org/636993002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/636993002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode4098 Source/core/css/parser/CSSPropertyParser.cpp:4098: bool CSSPropertyParser::parseContentDistributionOverflowPosition(CSSPropertyID propId, bool important) Maybe ...
6 years, 2 months ago (2014-10-21 03:51:10 UTC) #4
jfernandez
Applied suggested changes. https://codereview.chromium.org/636993002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/636993002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode4098 Source/core/css/parser/CSSPropertyParser.cpp:4098: bool CSSPropertyParser::parseContentDistributionOverflowPosition(CSSPropertyID propId, bool important) On ...
6 years, 1 month ago (2014-10-27 11:44:37 UTC) #5
Timothy Loh
https://codereview.chromium.org/636993002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/636993002/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode4111 Source/core/css/parser/CSSPropertyParser.cpp:4111: if (m_valueList->next()) On 2014/10/27 11:44:37, jfernandez wrote: > On ...
6 years, 1 month ago (2014-10-27 11:55:30 UTC) #7
jfernandez
https://codereview.chromium.org/636993002/diff/1/Source/core/css/resolver/StyleBuilderCustom.cpp File Source/core/css/resolver/StyleBuilderCustom.cpp (right): https://codereview.chromium.org/636993002/diff/1/Source/core/css/resolver/StyleBuilderCustom.cpp#newcode220 Source/core/css/resolver/StyleBuilderCustom.cpp:220: } else { On 2014/10/27 11:55:30, Timothy Loh wrote: ...
6 years, 1 month ago (2014-10-27 14:09:24 UTC) #8
Julien - ping for review
lgtm https://codereview.chromium.org/636993002/diff/20001/LayoutTests/fast/alignment/parse-justify-content.html File LayoutTests/fast/alignment/parse-justify-content.html (right): https://codereview.chromium.org/636993002/diff/20001/LayoutTests/fast/alignment/parse-justify-content.html#newcode162 LayoutTests/fast/alignment/parse-justify-content.html:162: shouldBe("getComputedStyle(justifyContentAuto, '').getPropertyValue('justify-content')", "'start'"); We could use shouldBeEqualToString here, ...
6 years, 1 month ago (2014-10-28 17:23:05 UTC) #9
jfernandez
https://codereview.chromium.org/636993002/diff/20001/LayoutTests/fast/alignment/parse-justify-content.html File LayoutTests/fast/alignment/parse-justify-content.html (right): https://codereview.chromium.org/636993002/diff/20001/LayoutTests/fast/alignment/parse-justify-content.html#newcode162 LayoutTests/fast/alignment/parse-justify-content.html:162: shouldBe("getComputedStyle(justifyContentAuto, '').getPropertyValue('justify-content')", "'start'"); On 2014/10/28 17:23:04, Julien Chaffraix - ...
6 years, 1 month ago (2014-10-29 11:03:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636993002/60001
6 years, 1 month ago (2014-10-29 11:50:38 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/31474)
6 years, 1 month ago (2014-10-29 12:12:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636993002/80001
6 years, 1 month ago (2014-10-29 13:18:17 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/74257)
6 years, 1 month ago (2014-10-29 14:08:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636993002/100001
6 years, 1 month ago (2014-10-29 14:43:12 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/74284)
6 years, 1 month ago (2014-10-29 15:29:21 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636993002/120001
6 years, 1 month ago (2014-10-29 16:02:51 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/34217)
6 years, 1 month ago (2014-10-29 17:39:15 UTC) #28
Manuel Rego
6 years, 1 month ago (2014-10-30 10:45:43 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636993002/140001
6 years, 1 month ago (2014-10-30 12:51:10 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/74775)
6 years, 1 month ago (2014-10-30 13:35:43 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636993002/160001
6 years, 1 month ago (2014-10-30 15:17:33 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636993002/180001
6 years, 1 month ago (2014-10-30 16:03:45 UTC) #37
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 18:04:11 UTC) #38
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as 184660

Powered by Google App Engine
This is Rietveld 408576698