Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1529)

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc

Issue 2872593003: [LayoutNG] Introduce NGPositionedFloat. (Closed)
Patch Set: address comments. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698