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 b8a8cd633153ffa9614864b79449c87e8ccc5dbd..1ad88aa0c857a407aadf61a150d23f43f794a132 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 |
@@ -167,10 +167,14 @@ TEST_F(NGBlockLayoutAlgorithmTest, CollapsingMarginsCase1) { |
div1->SetFirstChild(div2); |
- auto* space = ConstructConstraintSpace( |
- HorizontalTopBottom, LTR, |
- NGLogicalSize(LayoutUnit(100), NGSizeIndefinite)); |
- space->SetIsNewFormattingContext(true); |
+ NGLogicalSize size(LayoutUnit(100), NGSizeIndefinite); |
+ NGConstraintSpaceBuilder builder(HorizontalTopBottom); |
+ builder.SetAvailableSize(size) |
+ .SetPercentageResolutionSize(size) |
+ .SetIsNewFormattingContext(true); |
+ auto* space = new NGConstraintSpace(HorizontalTopBottom, LTR, |
+ builder.ToConstraintSpace()); |
+ |
NGPhysicalFragment* frag = RunBlockLayoutAlgorithm(space, div1); |
EXPECT_TRUE(frag->MarginStrut().IsEmpty()); |