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

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

Issue 2714803002: [LayoutNG] Allow block-flow layout to be fragmented using new approach. (Closed)
Patch Set: rebase. Created 3 years, 10 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_length_utils_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc
index 880fa887edf2efa103de6c61c5be10682554f684..f6a017a6622d9fb895f291b39419ba4a3481761a 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc
@@ -364,7 +364,9 @@ TEST_F(NGLengthUtilsTest, testBorders) {
style_->setBorderLeftStyle(BorderStyleSolid);
style_->setWritingMode(WritingMode::kVerticalLr);
- NGBoxStrut borders = ComputeBorders(*style_);
+ NGConstraintSpace* constraint_space(ConstructConstraintSpace(200, 300));
+
+ NGBoxStrut borders = ComputeBorders(*constraint_space, *style_);
EXPECT_EQ(LayoutUnit(4), borders.block_start);
EXPECT_EQ(LayoutUnit(3), borders.inline_end);

Powered by Google App Engine
This is Rietveld 408576698