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 596d99d0f86f2ef47bb19409559c25211ea073d3..9cce4ad5ad75142c716048f798ca25a5fcb56bea 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 |
@@ -29,7 +29,9 @@ TEST_F(NGBlockLayoutAlgorithmTest, FixedSize) { |
HorizontalTopBottom, NGLogicalSize(LayoutUnit(100), NGSizeIndefinite)); |
NGBlockLayoutAlgorithm algorithm(style_, NGBoxIterator(NGBox())); |
- NGFragment* frag = algorithm.layout(space); |
+ NGFragment* frag; |
+ while (!algorithm.Layout(space, &frag)) |
+ ; |
EXPECT_EQ(frag->InlineSize(), LayoutUnit(30)); |
EXPECT_EQ(frag->BlockSize(), LayoutUnit(40)); |
} |