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 b55cbf73def660042c708118eed2b0a0fffc5d65..6d2432b78135389d847d481832eec6f09fcb11b0 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 |
@@ -15,9 +15,7 @@ namespace { |
class NGBlockLayoutAlgorithmTest : public ::testing::Test { |
protected: |
- void SetUp() override { |
- style_ = ComputedStyle::create(); |
- } |
+ void SetUp() override { style_ = ComputedStyle::create(); } |
RefPtr<ComputedStyle> style_; |
}; |
@@ -26,7 +24,10 @@ TEST_F(NGBlockLayoutAlgorithmTest, FixedSize) { |
style_->setWidth(Length(30, Fixed)); |
style_->setHeight(Length(40, Fixed)); |
- NGConstraintSpace space(LayoutUnit(100), LayoutUnit(-1)); |
+ NGLogicalSize container_size; |
+ container_size.inlineSize = LayoutUnit(100); |
+ container_size.blockSize = LayoutUnit(-1); |
+ NGConstraintSpace space(container_size); |
NGBlockLayoutAlgorithm algorithm(style_, NGBoxIterator(NGBox())); |
NGFragment* frag = algorithm.layout(space); |