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..052527d3c61d74e2be8721a0092e0c9589aad0b9 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 |
@@ -19,10 +19,11 @@ class NGBlockLayoutAlgorithmTest : public ::testing::Test { |
protected: |
void SetUp() override { style_ = ComputedStyle::create(); } |
- NGPhysicalFragment* RunBlockLayoutAlgorithm(const NGConstraintSpace* space, |
+ NGPhysicalFragment* RunBlockLayoutAlgorithm(NGConstraintSpace* space, |
NGBox* first_child) { |
NGBlockLayoutAlgorithm algorithm(style_, first_child); |
NGPhysicalFragment* frag; |
+ space->SetIsRoot(); |
while (!algorithm.Layout(space, &frag)) |
continue; |
return frag; |