2017-08-09 18:48:34 +00:00
|
|
|
diff -up chromium-60.0.3112.90/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc.tryfix chromium-60.0.3112.90/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
|
|
|
--- chromium-60.0.3112.90/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc.tryfix 2017-08-09 14:45:17.619172987 -0400
|
2017-08-11 14:26:58 +00:00
|
|
|
+++ chromium-60.0.3112.90/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc 2017-08-11 10:24:10.635245642 -0400
|
|
|
|
@@ -381,8 +381,9 @@ NGLogicalOffset NGBlockLayoutAlgorithm::
|
|
|
|
}
|
2017-08-09 18:48:34 +00:00
|
|
|
|
|
|
|
NGLogicalOffset child_bfc_offset = curr_bfc_offset_;
|
2017-08-11 14:26:58 +00:00
|
|
|
- child_bfc_offset.inline_offset +=
|
2017-08-09 18:48:34 +00:00
|
|
|
- {border_and_padding_.inline_start + curr_child_margins_.inline_start};
|
2017-08-11 14:26:58 +00:00
|
|
|
+ LayoutUnit sum_inline_starts = {border_and_padding_.inline_start + curr_child_margins_.inline_start};
|
|
|
|
+
|
|
|
|
+ child_bfc_offset.inline_offset += sum_inline_starts;
|
2017-08-09 18:48:34 +00:00
|
|
|
|
|
|
|
// Append the current margin strut with child's block start margin.
|
|
|
|
// Non empty border/padding, and new FC use cases are handled inside of the
|
2017-08-11 14:26:58 +00:00
|
|
|
@@ -395,9 +396,8 @@ NGLogicalOffset NGBlockLayoutAlgorithm::
|
|
|
|
|
2017-08-09 18:48:34 +00:00
|
|
|
// Should collapse margins if our child is a legacy block.
|
|
|
|
if (IsLegacyBlock(*child)) {
|
2017-08-11 14:26:58 +00:00
|
|
|
- curr_bfc_offset_ +=
|
2017-08-09 18:48:34 +00:00
|
|
|
- {border_and_padding_.inline_start + curr_child_margins_.inline_start,
|
|
|
|
- curr_margin_strut_.Sum()};
|
2017-08-11 16:00:53 +00:00
|
|
|
+ LayoutUnit sum_inline_starts2 = {border_and_padding_.inline_start + curr_child_margins_.inline_start};
|
|
|
|
+ curr_bfc_offset_ += {sum_inline_starts2, curr_margin_strut_.Sum()};
|
2017-08-09 18:48:34 +00:00
|
|
|
MaybeUpdateFragmentBfcOffset(ConstraintSpace(), curr_bfc_offset_,
|
|
|
|
&container_builder_);
|
|
|
|
PositionPendingFloats(curr_bfc_offset_.block_offset, &container_builder_,
|