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

Issue 2304543002: [css-grid] Fix definite height detection for auto-repet tracks (Closed)

Created:
4 years, 3 months ago by Manuel Rego
Modified:
4 years, 3 months ago
CC:
chromium-reviews, jfernandez, szager+layoutwatch_chromium.org, zoltan1, svillar, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, Manuel Rego, leviw+renderwatch, jchaffraix+rendering, blink-reviews, eae+blinkwatch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Fix definite height detection for auto-repet tracks Previous code was considering that all positioned grid containers with auto height have an indefinite height. However if they have non-auto top and bottom properties, the height is definite. The patches uses LayoutBlock::hasDefiniteLogicalHeight() in LayoutGrid::layoutBlock(). This is not fixing any bug, but it's avoiding some unneeded calls, as we properly identify the height as definite on the first step. To fix the issue with auto-repeat tracks LayoutGrid::computeAutoRepeatTracksCount() is modified in order to use LayoutBlock::availableLogicalHeightForPercentageComputation(). That way the height of the grid container is properly calculated and the number of repetitions is the right one. Added a new test case to verify the expected behavior. BUG=624301 TEST=fast/css-grid-layout/grid-auto-repeat-positioned-container.html Committed: https://crrev.com/73bf22175e3b50c1c1c6d02d1858c9b60fee6b02 Cr-Commit-Position: refs/heads/master@{#416863}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-repeat-positioned-container.html View 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-repeat-positioned-container-expected.html View 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Manuel Rego
This should be fixing the issue detected in this comment: https://bugs.chromium.org/p/chromium/issues/detail?id=624301#c8
4 years, 3 months ago (2016-09-01 10:19:52 UTC) #2
cbiesinger
lgtm
4 years, 3 months ago (2016-09-02 19:14:20 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2304543002/1
4 years, 3 months ago (2016-09-07 05:03:20 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-07 06:28:17 UTC) #6
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 06:29:44 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/73bf22175e3b50c1c1c6d02d1858c9b60fee6b02
Cr-Commit-Position: refs/heads/master@{#416863}

Powered by Google App Engine
This is Rietveld 408576698