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 cbf03b794b40330d49c43a4c76cf5990b2c14a4d..560b03f52028e2f1d1eb7b44394c1899681dd975 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 |
@@ -80,6 +80,8 @@ bool NGBlockLayoutAlgorithm::Layout(const NGConstraintSpace* constraint_space, |
*constraint_space_for_children_, *current_child_->Style(), |
constraint_space_for_children_->WritingMode(), |
constraint_space_for_children_->Direction()); |
+ ApplyAutoMargins(*constraint_space_for_children_, |
+ *current_child_->Style(), *fragment, child_margins); |
const NGBoxStrut margins = |
CollapseMargins(*constraint_space, child_margins, *fragment); |