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

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

Issue 2242893003: [LayoutNG] Switch NGConstraintSpace to NGLogicalSize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 4 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 | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h » ('j') | 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 b55cbf73def660042c708118eed2b0a0fffc5d65..6d2432b78135389d847d481832eec6f09fcb11b0 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
@@ -15,9 +15,7 @@ namespace {
class NGBlockLayoutAlgorithmTest : public ::testing::Test {
protected:
- void SetUp() override {
- style_ = ComputedStyle::create();
- }
+ void SetUp() override { style_ = ComputedStyle::create(); }
RefPtr<ComputedStyle> style_;
};
@@ -26,7 +24,10 @@ TEST_F(NGBlockLayoutAlgorithmTest, FixedSize) {
style_->setWidth(Length(30, Fixed));
style_->setHeight(Length(40, Fixed));
- NGConstraintSpace space(LayoutUnit(100), LayoutUnit(-1));
+ NGLogicalSize container_size;
+ container_size.inlineSize = LayoutUnit(100);
+ container_size.blockSize = LayoutUnit(-1);
+ NGConstraintSpace space(container_size);
NGBlockLayoutAlgorithm algorithm(style_, NGBoxIterator(NGBox()));
NGFragment* frag = algorithm.layout(space);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_constraint_space.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698