Index: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc |
index 01fe88e8638bfef6854f9fda34b74ddd617f44ac..f9d504ef81b166d163bc2b9cd69df9df9979fdd0 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc |
@@ -93,10 +93,9 @@ void PositionPendingFloats(LayoutUnit origin_block_offset, |
DCHECK(container_builder->BfcOffset()) |
<< "Parent BFC offset should be known here"; |
const auto& floating_objects = container_builder->UnpositionedFloats(); |
- PositionFloats(origin_block_offset, |
- container_builder->BfcOffset().value().block_offset, |
- floating_objects, space); |
- container_builder->MutablePositionedFloats().AppendVector(floating_objects); |
+ container_builder->MutablePositionedFloats().AppendVector(PositionFloats( |
+ origin_block_offset, container_builder->BfcOffset().value().block_offset, |
+ floating_objects, space)); |
container_builder->MutableUnpositionedFloats().clear(); |
} |