| 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 5c176ccf199f8990a2f738dade6bd4234cfc9b83..3f57266d2daeb10846b76e3eab6414f016e8ace3 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());
|
|
|