Index: Source/core/layout/LayoutBlock.cpp |
diff --git a/Source/core/layout/LayoutBlock.cpp b/Source/core/layout/LayoutBlock.cpp |
index 6aa189fc9eb98f54b55729fc7bac7f14d579b22c..de56e5a1f88458a4fbd2f911a6fa67022263b6aa 100644 |
--- a/Source/core/layout/LayoutBlock.cpp |
+++ b/Source/core/layout/LayoutBlock.cpp |
@@ -3058,12 +3058,7 @@ void LayoutBlock::computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth |
margin = marginStart + marginEnd; |
LayoutUnit childMinPreferredLogicalWidth, childMaxPreferredLogicalWidth; |
- if (child->isBox() && child->isHorizontalWritingMode() != isHorizontalWritingMode()) { |
- childMinPreferredLogicalWidth = childMaxPreferredLogicalWidth = toLayoutBox(child)->computeLogicalHeightWithoutLayout(); |
- } else { |
- childMinPreferredLogicalWidth = child->minPreferredLogicalWidth(); |
- childMaxPreferredLogicalWidth = child->maxPreferredLogicalWidth(); |
- } |
+ child->minMaxPreferredLogicalWidthForParent(childMinPreferredLogicalWidth, childMaxPreferredLogicalWidth); |
LayoutUnit w = childMinPreferredLogicalWidth + margin; |
minLogicalWidth = std::max(w, minLogicalWidth); |