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

Issue 1778853002: [css-grid] Fix height computation for items with intrinsic aspect ratios (Closed)

Created:
4 years, 9 months ago by svillar
Modified:
4 years, 9 months ago
CC:
chromium-reviews, jfernandez, 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 height computation for items with intrinsic aspect ratios We were not computing the height properly for items spanning content or flexible sized tracks having intrinsic aspect ratios because we were returning always the "natural" size, meaning that on an image of 100x50 we're always returning 50, even if the image had a specified width. This change allowed us also to remove a bunch of code imported from flexbox renderer which is actually not really needed in grid. BUG=592975 Committed: https://crrev.com/f76b5035ab7d677198849bff6cd5c3aa17d78468 Cr-Commit-Position: refs/heads/master@{#382287}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Post-review changes #

Patch Set 3 : Reverted unneeded changes #

Total comments: 6

Patch Set 4 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -45 lines) Patch
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html View 1 2 3 1 chunk +77 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/blue-100x50.png View 1 Binary file 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 3 chunks +4 lines, -41 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
svillar
Sending out for review
4 years, 9 months ago (2016-03-11 09:33:35 UTC) #2
Manuel Rego
Sorry but I don't get the relationship between the patch and the description. I don't ...
4 years, 9 months ago (2016-03-14 14:38:09 UTC) #3
svillar
Thanks for the review. https://codereview.chromium.org/1778853002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html (right): https://codereview.chromium.org/1778853002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html#newcode13 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html:13: <p>This test shows how min-width:auto ...
4 years, 9 months ago (2016-03-17 13:33:54 UTC) #4
Manuel Rego
Thanks, with the new description is easier to understand what's doing. Nit: Maybe in the ...
4 years, 9 months ago (2016-03-21 11:16:35 UTC) #6
Manuel Rego
Some nits on the test that I forgot to publish before (sorry). https://codereview.chromium.org/1778853002/diff/40001/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html ...
4 years, 9 months ago (2016-03-21 12:13:29 UTC) #7
svillar
Thanks. https://codereview.chromium.org/1778853002/diff/40001/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html (right): https://codereview.chromium.org/1778853002/diff/40001/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html#newcode19 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-automatic-minimum-intrinsic-aspect-ratio.html:19: <div class="container min-content" data-expected-width="60" data-expected-height="35"> On 2016/03/21 12:13:29, ...
4 years, 9 months ago (2016-03-21 13:22:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778853002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778853002/60001
4 years, 9 months ago (2016-03-21 13:25:06 UTC) #11
cbiesinger
lgtm
4 years, 9 months ago (2016-03-21 14:51:35 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-21 14:53:20 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-21 14:54:51 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f76b5035ab7d677198849bff6cd5c3aa17d78468
Cr-Commit-Position: refs/heads/master@{#382287}

Powered by Google App Engine
This is Rietveld 408576698