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

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

Issue 2656693007: [LayoutNG] Return MinAndMaxContentSizes by value, step 1 (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/core/layout/ng/ng_block_node_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_node_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_node_test.cc
index 6c1822d454f8ae08e636bcf83f10e45a5da469d5..656723f22b6f477156d9c01f5b1bfa275a64b93c 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_node_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_node_test.cc
@@ -27,9 +27,7 @@ TEST_F(NGBlockNodeForTest, MinAndMaxContent) {
NGBlockNode* box = new NGBlockNode(style_.get());
box->SetFirstChild(first_child);
- MinAndMaxContentSizes sizes;
- while (!box->ComputeMinAndMaxContentSizes(&sizes))
- continue;
+ MinAndMaxContentSizes sizes = box->ComputeMinAndMaxContentSizes();
EXPECT_EQ(LayoutUnit(kWidth), sizes.min_content);
EXPECT_EQ(LayoutUnit(kWidth), sizes.max_content);
}

Powered by Google App Engine
This is Rietveld 408576698