| 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 edc7d660a96802fdae0b49e41322fe4dbf32f3fd..a4df599b4260b20826bd670faf5e8cba83ee4b94 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
|
| @@ -784,6 +784,14 @@ NGBlockLayoutAlgorithm::CreateConstraintSpaceForCurrentChild() {
|
| DCHECK(current_child_);
|
| if (current_child_->Type() == NGLayoutInputNode::kLegacyInline) {
|
| // TODO(kojii): Setup space_builder_ appropriately for inline child.
|
| +
|
| + // Margins collapsing: Inline block.
|
| + curr_bfc_offset_.block_offset += curr_margin_strut_.Sum();
|
| + UpdateFragmentBfcOffset(curr_bfc_offset_);
|
| + PositionPendingFloats(curr_bfc_offset_.block_offset, ConstraintSpace(),
|
| + builder_.get());
|
| + curr_margin_strut_ = {};
|
| +
|
| return space_builder_->ToConstraintSpace(
|
| FromPlatformWritingMode(Style().getWritingMode()));
|
| // Calculate margins in parent's writing mode.
|
|
|