Index: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc |
index d1c93cbd268b649d2071ee1488b7772c7ce6325f..06f038681ee59fafcf793579b9b692d613382b66 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc |
@@ -157,6 +157,7 @@ TEST_F(NGBlockLayoutAlgorithmTest, CollapsingMarginsCase1) { |
auto* space = |
new NGConstraintSpace(HorizontalTopBottom, LeftToRight, |
NGLogicalSize(LayoutUnit(100), NGSizeIndefinite)); |
+ space->SetIsNewFormattingContext(true); |
NGPhysicalFragment* frag = RunBlockLayoutAlgorithm(space, div1); |
EXPECT_EQ(NGMarginStrut({LayoutUnit(kDiv1MarginTop)}), frag->MarginStrut()); |