Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc

Issue 2456973002: [LayoutNG] Move ng_block_layout_algorithm to use constraint space builder. (Closed)
Patch Set: rebase. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 20a4e9c09fc721a8b89ae2d4b901cf90752af63f..30fc3021075eb433ab76089d080fee17b29e64d7 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
@@ -26,11 +26,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);
+ NGBlockLayoutAlgorithm algorithm(style_, first_child, space);
NGPhysicalFragment* frag;
- while (!algorithm.Layout(space, &frag))
+ while (!algorithm.Layout(&frag))
continue;
return frag;
}

Powered by Google App Engine
This is Rietveld 408576698