Index: Source/core/layout/LayoutBlockFlow.cpp |
diff --git a/Source/core/layout/LayoutBlockFlow.cpp b/Source/core/layout/LayoutBlockFlow.cpp |
index e172c418b361162345772e2d2213c8f773b7ca0e..98a429fa25e1a2031b8875b5615be3abd929fea6 100644 |
--- a/Source/core/layout/LayoutBlockFlow.cpp |
+++ b/Source/core/layout/LayoutBlockFlow.cpp |
@@ -2285,13 +2285,7 @@ FloatingObject* LayoutBlockFlow::insertFloatingObject(LayoutBox& floatBox) |
if (isChildLayoutBlock && !floatBox.needsLayout() && view()->layoutState()->pageLogicalHeightChanged()) |
floatBox.setChildNeedsLayout(MarkOnlyThis); |
- bool needsBlockDirectionLocationSetBeforeLayout = isChildLayoutBlock && view()->layoutState()->needsBlockDirectionLocationSetBeforeLayout(); |
- if (!needsBlockDirectionLocationSetBeforeLayout || isWritingModeRoot()) { // We are unsplittable if we're a block flow root. |
- floatBox.layoutIfNeeded(); |
- } else { |
- floatBox.updateLogicalWidth(); |
- floatBox.computeAndSetBlockDirectionMargins(this); |
- } |
+ floatBox.layoutIfNeeded(); |
setLogicalWidthForFloat(*newObj, logicalWidthForChild(floatBox) + marginStartForChild(floatBox) + marginEndForChild(floatBox)); |