Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp | 
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp | 
| index 1cbedcad8db3996a92f175d35cad6c5aeda90a76..8da0e4926367ac8fd41d829a3a7463ab4a6836c4 100644 | 
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp | 
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp | 
| @@ -4285,16 +4285,14 @@ bool LayoutBox::percentageLogicalHeightIsResolvable() const | 
| bool LayoutBox::hasDefiniteLogicalHeight() const | 
| { | 
| const Length& logicalHeight = style()->logicalHeight(); | 
| - if (logicalHeight.isIntrinsicOrAuto()) | 
| - return false; | 
| if (logicalHeight.isFixed()) | 
| return true; | 
| - // The size of the containing block of an absolutely positioned element is always definite with respect to that | 
| - // element (http://dev.w3.org/csswg/css-sizing-3/#definite). | 
| - if (isOutOfFlowPositioned()) | 
| + if (isOutOfFlowPositioned() && !style()->logicalTop().isAuto() && !style()->logicalBottom().isAuto()) | 
| return true; | 
| if (hasOverrideContainingBlockLogicalHeight()) | 
| return overrideContainingBlockContentLogicalHeight() != -1; | 
| + if (logicalHeight.isIntrinsicOrAuto()) | 
| + return false; | 
| 
 
cbiesinger1
2016/06/06 16:46:02
This is not correct, if a grid is a flex item it c
 
Manuel Rego
2016/06/07 09:05:55
Yes, this is wrong for those cases.
But it was alr
 
 | 
| return percentageLogicalHeightIsResolvable(); | 
| } |