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

Issue 1742973002: [css-flexbox] Correctly resolve percentages in children of stretched flex items (Closed)

Created:
4 years, 10 months ago by cbiesinger
Modified:
4 years, 9 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-flexbox] Correctly resolve percentages in children of stretched flex items percent-height-children-of-alignSelf-stretch-flex-item.html was taken from a previous attempt at this patch, by harpreet.sk: https://codereview.chromium.org/331203002 Note that the behavior has changed relative to that patch. This patch implements the current required behavior by the spec. BUG=341310 Committed: https://crrev.com/0c12856b59827e462642d3ed8ce2d7042bcf7218 Cr-Commit-Position: refs/heads/master@{#378690}

Patch Set 1 #

Patch Set 2 : some test fixes #

Patch Set 3 : tests fixed #

Total comments: 9

Patch Set 4 : review comments #

Total comments: 2

Patch Set 5 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/css3/flexbox/definite-cross-sizes.html View 1 2 3 1 chunk +109 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/flexbox/percent-height-children-of-alignSelf-stretch-flex-item.html View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1742973002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1742973002/1
4 years, 10 months ago (2016-02-27 02:28:00 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1742973002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1742973002/20001
4 years, 10 months ago (2016-02-27 02:52:09 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/180942)
4 years, 10 months ago (2016-02-27 04:11:14 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1742973002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1742973002/40001
4 years, 9 months ago (2016-02-29 21:57:02 UTC) #9
cbiesinger
Levi, I believe this is ready for review.
4 years, 9 months ago (2016-02-29 21:57:49 UTC) #11
cbiesinger
https://codereview.chromium.org/1742973002/diff/40001/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp File third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp (right): https://codereview.chromium.org/1742973002/diff/40001/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp#newcode1074 third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp:1074: return LayoutUnit(-1); Note, this part of the two new ...
4 years, 9 months ago (2016-02-29 22:03:54 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 00:39:27 UTC) #14
leviw_travelin_and_unemployed
https://codereview.chromium.org/1742973002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1742973002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2104 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2104: } else if (styleToUse.logicalWidth().hasPercent() && !isOutOfFlowPositioned() && cb->isFlexItem()) { ...
4 years, 9 months ago (2016-03-01 01:58:52 UTC) #15
cbiesinger
PTAL https://codereview.chromium.org/1742973002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1742973002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2104 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2104: } else if (styleToUse.logicalWidth().hasPercent() && !isOutOfFlowPositioned() && cb->isFlexItem()) ...
4 years, 9 months ago (2016-03-01 20:36:11 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1742973002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1742973002/60001
4 years, 9 months ago (2016-03-01 20:56:20 UTC) #18
leviw_travelin_and_unemployed
On 2016/03/01 at 20:36:11, cbiesinger wrote: > PTAL > > https://codereview.chromium.org/1742973002/diff/40001/third_party/WebKit/Source/core/layout/LayoutBox.cpp > File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): ...
4 years, 9 months ago (2016-03-01 21:03:48 UTC) #19
cbiesinger
On 2016/03/01 21:03:48, leviw wrote: > On 2016/03/01 at 20:36:11, cbiesinger wrote: > > PTAL ...
4 years, 9 months ago (2016-03-01 21:04:30 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 22:26:57 UTC) #22
leviw_travelin_and_unemployed
lgtm https://codereview.chromium.org/1742973002/diff/60001/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp File third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp (right): https://codereview.chromium.org/1742973002/diff/60001/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp#newcode1031 third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp:1031: if (isMultiline() || alignmentForChild(child) != ItemPositionStretch || hasAutoMarginsInCrossAxis(child)) ...
4 years, 9 months ago (2016-03-01 23:53:56 UTC) #23
cbiesinger
https://codereview.chromium.org/1742973002/diff/60001/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp File third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp (right): https://codereview.chromium.org/1742973002/diff/60001/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp#newcode1031 third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp:1031: if (isMultiline() || alignmentForChild(child) != ItemPositionStretch || hasAutoMarginsInCrossAxis(child)) On ...
4 years, 9 months ago (2016-03-02 03:19:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1742973002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1742973002/80001
4 years, 9 months ago (2016-03-02 03:20:03 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-02 04:46:06 UTC) #29
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 04:47:08 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0c12856b59827e462642d3ed8ce2d7042bcf7218
Cr-Commit-Position: refs/heads/master@{#378690}

Powered by Google App Engine
This is Rietveld 408576698