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

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

Issue 2647443005: [LayoutNG] Initial pass of removing the state machine from ng_block_layout_algorithm. (Closed)
Patch Set: remove set of parens. Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 905b8b46dadc87cfb1f1b4a64fe81f9bf421177a..f08222e77776f1e36d0eebc0a27536e85d8e413d 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
@@ -40,13 +40,11 @@ class NGBlockLayoutAlgorithmTest : public ::testing::Test {
NGBlockNode parent(style_.get());
parent.SetFirstChild(first_child);
- NGLayoutCoordinator coordinator(&parent, space);
+ NGBlockLayoutAlgorithm algorithm(style_.get(), first_child, space);
+
NGPhysicalFragment* fragment;
- coordinator.Tick(&fragment);
- EXPECT_EQ(kBlockLayoutAlgorithm,
- coordinator.GetAlgorithmStackForTesting()[0]->algorithmType());
- while (!coordinator.Tick(&fragment))
- ;
+ NGLayoutAlgorithm* not_used;
+ EXPECT_EQ(kNewFragment, algorithm.Layout(nullptr, &fragment, &not_used));
return toNGPhysicalBoxFragment(fragment);
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698