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

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

Issue 2237623002: Demo patch that demonstrates simple block layout using Layout NG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed NGBlockLayoutAlgorithmTest 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
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 f008d686370ed2844e0e40f2442916bc5c17a0e6..b15ae8296321560aa521bdbb880e58194698dd70 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
@@ -4,7 +4,7 @@
#include "core/layout/ng/ng_block_layout_algorithm.h"
-#include "core/layout/ng/ng_box.h"
+#include "core/layout/ng/ng_box_iterator.h"
#include "core/layout/ng/ng_constraint_space.h"
#include "core/layout/ng/ng_fragment.h"
#include "core/style/ComputedStyle.h"
@@ -28,7 +28,7 @@ TEST_F(NGBlockLayoutAlgorithmTest, FixedSize) {
NGConstraintSpace space(LayoutUnit(100), LayoutUnit(-1));
- NGBlockLayoutAlgorithm algorithm(style_, NGBox(nullptr));
+ NGBlockLayoutAlgorithm algorithm(style_, NGBoxIterator(nullptr));
NGFragment* frag = algorithm.layout(space);
EXPECT_EQ(frag->inlineSize(), LayoutUnit(30));
EXPECT_EQ(frag->blockSize(), LayoutUnit(40));

Powered by Google App Engine
This is Rietveld 408576698