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

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

Issue 2483683003: [LayoutNG] Split apart storage for AvailableSize and PercentageSize. (Closed)
Patch Set: rebase. Created 4 years, 1 month 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 df68f743cb81773fae5fab1147326c9710bbf903..562dd9f0e03296c736e38d48c83eee64ec8d90ab 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
@@ -20,9 +20,10 @@ NGConstraintSpace* ConstructConstraintSpace(NGWritingMode writing_mode,
NGDirection direction,
NGLogicalSize size) {
NGConstraintSpaceBuilder builder(writing_mode);
- return new NGConstraintSpace(
- writing_mode, direction,
- builder.SetContainerSize(size).ToConstraintSpace());
+ builder.SetAvailableSize(size).SetPercentageResolutionSize(size);
+
+ return new NGConstraintSpace(writing_mode, direction,
+ builder.ToConstraintSpace());
}
class NGBlockLayoutAlgorithmTest : public ::testing::Test {
@@ -539,7 +540,7 @@ TEST_F(NGBlockLayoutAlgorithmTest, BorderAndPadding) {
EXPECT_EQ(kBorderLeft + kPaddingLeft, child->LeftOffset());
}
-TEST_F(NGBlockLayoutAlgorithmTest, PercentageSize) {
+TEST_F(NGBlockLayoutAlgorithmTest, PercentageResolutionSize) {
const int kPaddingLeft = 10;
const int kWidth = 30;
style_->setWidth(Length(kWidth, Fixed));

Powered by Google App Engine
This is Rietveld 408576698