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

Issue 1081433005: LayoutBox::hasDefiniteLogicalHeight() should not consider abspos boxes as definite (Closed)

Created:
5 years, 8 months ago by cbiesinger
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-rendering, Dominik Röttsches, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, zoltan1, Tab Atkins
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

LayoutBox::hasDefiniteLogicalHeight() should not consider abspos boxes as definite An abspos box does not itself have a definite height as per the CSS spec; it only does so with respect to resolving a child's percentage size. This is handled correctly by computePercentageHeight. The grid spec, however, requires checking whether the grid's size itself is definite: https://drafts.csswg.org/css-grid/#valdef-grid-template-columns-percentage So, this change makes this code correct. There is also some code simplification that I'm doing in this change. This code was introduced in Feb 2015 in https://codereview.chromium.org/906323003 R=leviw@chromium.org,ojan@chromium.org BUG=476840

Patch Set 1 #

Total comments: 9

Patch Set 2 : rewrite this patch :) #

Patch Set 3 : fix bug #

Patch Set 4 : isFixed, not isSpecified #

Patch Set 5 : remove flexbox change #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -22 lines) Patch
M Source/core/layout/LayoutBox.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/layout/LayoutBox.cpp View 1 2 chunks +13 lines, -19 lines 3 comments Download
M Source/core/layout/LayoutGrid.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (5 generated)
cbiesinger
5 years, 8 months ago (2015-04-24 02:11:38 UTC) #1
Manuel Rego
Non-owner LGTM. Thanks for the fix. Regarding the test I think it'd be nice to ...
5 years, 8 months ago (2015-04-24 05:55:17 UTC) #3
mstensho (USE GERRIT)
lgtm, once rego's issues are addressed. https://codereview.chromium.org/1081433005/diff/1/Source/core/layout/LayoutBox.cpp File Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1081433005/diff/1/Source/core/layout/LayoutBox.cpp#newcode4340 Source/core/layout/LayoutBox.cpp:4340: bool LayoutBox::hasDefiniteLogicalHeight() const ...
5 years, 8 months ago (2015-04-24 07:22:34 UTC) #5
Manuel Rego
https://codereview.chromium.org/1081433005/diff/1/Source/core/layout/LayoutBox.cpp File Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1081433005/diff/1/Source/core/layout/LayoutBox.cpp#newcode4340 Source/core/layout/LayoutBox.cpp:4340: bool LayoutBox::hasDefiniteLogicalHeight() const On 2015/04/24 07:22:33, mstensho wrote: > ...
5 years, 8 months ago (2015-04-24 07:35:10 UTC) #6
mstensho (USE GERRIT)
https://codereview.chromium.org/1081433005/diff/1/Source/core/layout/LayoutBox.cpp File Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1081433005/diff/1/Source/core/layout/LayoutBox.cpp#newcode4340 Source/core/layout/LayoutBox.cpp:4340: bool LayoutBox::hasDefiniteLogicalHeight() const On 2015/04/24 07:35:10, Manuel Rego wrote: ...
5 years, 8 months ago (2015-04-24 07:40:03 UTC) #7
ojan
+tabatkins for the spec question. https://codereview.chromium.org/1081433005/diff/1/Source/core/layout/LayoutBox.cpp File Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1081433005/diff/1/Source/core/layout/LayoutBox.cpp#newcode4340 Source/core/layout/LayoutBox.cpp:4340: bool LayoutBox::hasDefiniteLogicalHeight() const On ...
5 years, 8 months ago (2015-04-24 18:14:31 UTC) #8
mstensho (USE GERRIT)
Can we get some progress here, please?
5 years, 7 months ago (2015-05-26 20:38:42 UTC) #9
cbiesinger
Ojan - maybe we can get this landed for now because it solves real issues, ...
5 years, 7 months ago (2015-05-27 21:31:30 UTC) #10
ojan
On 2015/05/27 at 21:31:30, cbiesinger wrote: > Ojan - maybe we can get this landed ...
5 years, 6 months ago (2015-05-28 03:20:42 UTC) #11
cbiesinger
On 2015/05/28 03:20:42, ojan wrote: > On 2015/05/27 at 21:31:30, cbiesinger wrote: > > Ojan ...
5 years, 4 months ago (2015-07-29 18:31:35 UTC) #13
cbiesinger
On 2015/07/29 18:31:35, cbiesinger wrote: > On 2015/05/28 03:20:42, ojan wrote: > > On 2015/05/27 ...
5 years, 4 months ago (2015-08-04 17:44:55 UTC) #14
cbiesinger
OK, in https://codereview.chromium.org/1258693005/ I will fix the flexbox issue in a different way. I will ...
5 years, 4 months ago (2015-08-04 23:35:31 UTC) #15
cbiesinger
Manuel - can you help me write a grid testcase? I don't know grid well ...
5 years, 4 months ago (2015-08-10 21:44:45 UTC) #18
Manuel Rego
One possible example for grid it might be: http://jsbin.com/jaseto/1/edit?html,css,output Right now we're detecting the height ...
5 years, 3 months ago (2015-09-23 10:22:02 UTC) #19
Manuel Rego
On 2015/09/23 10:22:02, Manuel Rego wrote: > One possible example for grid it might be: ...
5 years, 2 months ago (2015-10-02 07:46:57 UTC) #20
cbiesinger
https://codereview.chromium.org/1081433005/diff/80001/Source/core/layout/LayoutBox.cpp File Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1081433005/diff/80001/Source/core/layout/LayoutBox.cpp#newcode4270 Source/core/layout/LayoutBox.cpp:4270: if (length.isIntrinsicOrAuto()) On 2015/09/23 10:22:02, Manuel Rego wrote: > ...
5 years, 2 months ago (2015-10-02 16:16:43 UTC) #21
Manuel Rego
On 2015/10/02 16:16:43, cbiesinger wrote: > https://codereview.chromium.org/1081433005/diff/80001/Source/core/layout/LayoutBox.cpp > File Source/core/layout/LayoutBox.cpp (right): > > https://codereview.chromium.org/1081433005/diff/80001/Source/core/layout/LayoutBox.cpp#newcode4270 > ...
5 years, 1 month ago (2015-11-05 08:26:03 UTC) #22
Manuel Rego
4 years, 8 months ago (2016-04-11 08:05:31 UTC) #23
@cbiesinger we should close this as the patch in
https://codereview.chromium.org/1383003002/
has already landed.

Powered by Google App Engine
This is Rietveld 408576698