Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
index 691734c6f921a96e44ac6dc707bae503e4cce547..b25780711fc6761580c9c819f41d7360a9e8d266 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
@@ -543,7 +543,8 @@ bool LayoutBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight(bool che |
if (!checkingContainingBlock && thisBox->hasOverrideContainingBlockLogicalHeight()) |
return false; |
} |
- if (logicalHeightLength.isAuto()) |
+ bool isOutOfFlowPositionedWithImplicitHeight = isOutOfFlowPositioned() && !style()->logicalTop().isAuto() && !style()->logicalBottom().isAuto(); |
+ if (logicalHeightLength.isAuto() && !isOutOfFlowPositionedWithImplicitHeight) |
mstensho (USE GERRIT)
2016/08/29 13:51:02
How about not evaluating "isOutOfFlowPositioned()
|
return true; |
if (document().inQuirksMode()) |