Index: third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp |
index 5d29d7d83cfdb53efe188265ae7ba4ccd415314d..2dfaef96f23169b757bed0402f51964e577f7c4e 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp |
@@ -109,13 +109,7 @@ void LayoutFlexibleBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidt |
LayoutUnit minPreferredLogicalWidth; |
LayoutUnit maxPreferredLogicalWidth; |
- bool hasOrthogonalWritingMode = child->isHorizontalWritingMode() != isHorizontalWritingMode(); |
- if (hasOrthogonalWritingMode) { |
- minPreferredLogicalWidth = maxPreferredLogicalWidth = child->computeLogicalHeightWithoutLayout(); |
- } else { |
- minPreferredLogicalWidth = child->minPreferredLogicalWidth(); |
- maxPreferredLogicalWidth = child->maxPreferredLogicalWidth(); |
- } |
+ computeChildPreferredLogicalWidths(*child, minPreferredLogicalWidth, maxPreferredLogicalWidth); |
ASSERT(minPreferredLogicalWidth >= 0); |
ASSERT(maxPreferredLogicalWidth >= 0); |
minPreferredLogicalWidth += margin; |