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

Issue 2039223002: [css-grid] Fix percentage height on grid item's children (Closed)

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

Description

[css-grid] Fix percentage height on grid item's children Grid items can be vertically stretched in that case they store its height on LayoutBox::overrideLogicalContentHeight(). In order to resolve the percentage height on the grid item's children we need to use that size. BUG=612755 TEST=fast/css-grid-layout/percent-resolution-grid-item-children.html Committed: https://crrev.com/8df0592ed1d737d3d9db4b704ffe8d033f14ac28 Cr-Commit-Position: refs/heads/master@{#398971}

Patch Set 1 #

Total comments: 5

Patch Set 2 : New version using cbstyle #

Total comments: 2

Patch Set 3 : New version using overrideLogicalContentHeight #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item-children.html View 1 2 1 chunk +146 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
Manuel Rego
4 years, 6 months ago (2016-06-06 13:40:14 UTC) #2
jfernandez
non-owner LGTM https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2736 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2736: } else if (cb->styleRef().logicalHeight().isAuto() && cb->hasOverrideContainingBlockLogicalHeight()) { ...
4 years, 6 months ago (2016-06-06 15:15:54 UTC) #3
Manuel Rego
https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2736 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2736: } else if (cb->styleRef().logicalHeight().isAuto() && cb->hasOverrideContainingBlockLogicalHeight()) { On 2016/06/06 ...
4 years, 6 months ago (2016-06-06 15:55:46 UTC) #4
jfernandez
On 2016/06/06 15:55:46, Manuel Rego wrote: > https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp > File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): > > https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2736 ...
4 years, 6 months ago (2016-06-06 16:17:19 UTC) #5
jfernandez
https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2736 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2736: } else if (cb->styleRef().logicalHeight().isAuto() && cb->hasOverrideContainingBlockLogicalHeight()) { On 2016/06/06 ...
4 years, 6 months ago (2016-06-06 16:18:04 UTC) #6
Manuel Rego
https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2736 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2736: } else if (cb->styleRef().logicalHeight().isAuto() && cb->hasOverrideContainingBlockLogicalHeight()) { On 2016/06/06 ...
4 years, 6 months ago (2016-06-06 16:40:00 UTC) #7
cbiesinger1
https://codereview.chromium.org/2039223002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2039223002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2736 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2736: } else if (cbstyle.logicalHeight().isAuto() && cb->hasOverrideContainingBlockLogicalHeight()) { This does ...
4 years, 6 months ago (2016-06-06 16:56:58 UTC) #9
jfernandez
https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2039223002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2736 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2736: } else if (cb->styleRef().logicalHeight().isAuto() && cb->hasOverrideContainingBlockLogicalHeight()) { On 2016/06/06 ...
4 years, 6 months ago (2016-06-06 17:45:49 UTC) #10
Manuel Rego
https://codereview.chromium.org/2039223002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2039223002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2736 third_party/WebKit/Source/core/layout/LayoutBox.cpp:2736: } else if (cbstyle.logicalHeight().isAuto() && cb->hasOverrideContainingBlockLogicalHeight()) { On 2016/06/06 ...
4 years, 6 months ago (2016-06-06 19:24:09 UTC) #11
cbiesinger1
On 2016/06/06 19:24:09, Manuel Rego wrote: > https://codereview.chromium.org/2039223002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp > File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): > > https://codereview.chromium.org/2039223002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode2736 ...
4 years, 6 months ago (2016-06-06 19:51:44 UTC) #12
Manuel Rego
On 2016/06/06 19:51:44, cbiesinger1 wrote: > On 2016/06/06 19:24:09, Manuel Rego wrote: > > > ...
4 years, 6 months ago (2016-06-09 13:07:33 UTC) #14
cbiesinger
lgtm, thanks
4 years, 6 months ago (2016-06-09 16:44:22 UTC) #15
Manuel Rego
Thank you for the reviews!
4 years, 6 months ago (2016-06-09 17:45:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039223002/40001
4 years, 6 months ago (2016-06-09 17:45:34 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-09 18:55:00 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 18:56:18 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8df0592ed1d737d3d9db4b704ffe8d033f14ac28
Cr-Commit-Position: refs/heads/master@{#398971}

Powered by Google App Engine
This is Rietveld 408576698