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

Unified Diff: Source/core/layout/LayoutBox.cpp

Issue 1081433005: LayoutBox::hasDefiniteLogicalHeight() should not consider abspos boxes as definite (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698