Index: Source/core/rendering/RenderFlexibleBox.cpp |
diff --git a/Source/core/rendering/RenderFlexibleBox.cpp b/Source/core/rendering/RenderFlexibleBox.cpp |
index d71accfa31a8cca3c227a327e50373efdec09540..cf82e17dbb6d3cb58ebdaa1ca6d377bf9df388dd 100644 |
--- a/Source/core/rendering/RenderFlexibleBox.cpp |
+++ b/Source/core/rendering/RenderFlexibleBox.cpp |
@@ -602,7 +602,7 @@ LayoutUnit RenderFlexibleBox::mainAxisBorderAndPaddingExtentForChild(RenderBox* |
static inline bool preferredMainAxisExtentDependsOnLayout(const Length& flexBasis, bool hasInfiniteLineLength) |
{ |
- return flexBasis.isAuto() || (flexBasis.isFixed() && !flexBasis.value() && hasInfiniteLineLength); |
cbiesinger
2014/08/21 23:54:23
So, the reason this code exists is a bit complicat
harpreet.sk
2014/08/22 15:13:35
Thanks Chris for the review. We cannot simply remo
|
+ return flexBasis.isAuto() || (flexBasis.isPercent() && !flexBasis.value() && hasInfiniteLineLength); |
} |
bool RenderFlexibleBox::childPreferredMainAxisContentExtentRequiresLayout(RenderBox* child, bool hasInfiniteLineLength) const |