Chromium Code Reviews| Index: Source/core/layout/LayoutBox.cpp |
| diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp |
| index 7acf04f55e7c28200d8d183096534629f5c79236..b1f1161c3fb9bd3439298e5883208fefea9b7be4 100644 |
| --- a/Source/core/layout/LayoutBox.cpp |
| +++ b/Source/core/layout/LayoutBox.cpp |
| @@ -4340,8 +4340,6 @@ bool LayoutBox::percentageLogicalHeightIsResolvableFromBlock(const LayoutBlock* |
| bool LayoutBox::hasDefiniteLogicalHeight() const |
|
mstensho (USE GERRIT)
2015/04/24 07:22:33
Note (not an issue that should be handled in this
Manuel Rego
2015/04/24 07:35:10
This is in the spec (http://dev.w3.org/csswg/css-s
mstensho (USE GERRIT)
2015/04/24 07:40:03
That's the size of THE CONTAINING BLOCK of an abso
ojan
2015/04/24 18:14:31
Yeah, I think the comment in the code below is con
|
| { |
| 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 |
| @@ -4350,6 +4348,8 @@ bool LayoutBox::hasDefiniteLogicalHeight() const |
| return true; |
| if (hasOverrideContainingBlockLogicalHeight()) |
| return overrideContainingBlockContentLogicalHeight() != -1; |
| + if (logicalHeight.isIntrinsicOrAuto()) |
| + return false; |
| return percentageLogicalHeightIsResolvable(this); |
| } |