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

Issue 1496513002: [css-grid] Fix the height computation of grid items with borders (Closed)

Created:
5 years ago by svillar
Modified:
5 years 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Fix the height computation of grid items with borders When computing the logical height of grid items for the default min-height:auto case we were constraning the min-content size using constrainLogicalHeightByMinMax() instead of constrainContentLogicalHeightByMinMax(). The problem of using the former is that we were adding the borders twice. BUG=560771 Committed: https://crrev.com/ef4104cbb65b5d3d1cf584635a07a1c38f0a4f7a Cr-Commit-Position: refs/heads/master@{#362948}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-with-border-in-intrinsic.html View 1 1 chunk +50 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (6 generated)
svillar
5 years ago (2015-12-02 14:19:50 UTC) #2
svillar
5 years ago (2015-12-02 14:21:16 UTC) #3
jfernandez
LGTM with nits. https://codereview.chromium.org/1496513002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-with-border-in-fr.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-with-border-in-fr.html (right): https://codereview.chromium.org/1496513002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-with-border-in-fr.html#newcode23 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-with-border-in-fr.html:23: <div class="grid fixedSizeGrid" data-expected-width="160" data-expected-height="160"> fixedSizedGrid ...
5 years ago (2015-12-02 14:32:18 UTC) #5
cbiesinger
lgtm
5 years ago (2015-12-02 16:00:32 UTC) #6
svillar
Thanks! https://codereview.chromium.org/1496513002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-with-border-in-fr.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-with-border-in-fr.html (right): https://codereview.chromium.org/1496513002/diff/1/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-with-border-in-fr.html#newcode24 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-with-border-in-fr.html:24: <div class="item" data-expected-width="150" data-expected-height="150">X</div> On 2015/12/02 14:32:18, jfernandez ...
5 years ago (2015-12-03 09:18:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1496513002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1496513002/20001
5 years ago (2015-12-03 09:38:15 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-03 10:54:33 UTC) #12
commit-bot: I haz the power
5 years ago (2015-12-03 10:55:13 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ef4104cbb65b5d3d1cf584635a07a1c38f0a4f7a
Cr-Commit-Position: refs/heads/master@{#362948}

Powered by Google App Engine
This is Rietveld 408576698