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

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

Issue 2692403003: [LayoutNG] Make NGBlockLayoutAlgorithm accept a NGBlockNode. (Closed)
Patch Set: comments! 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_out_of_flow_layout_part_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part_test.cc
index c7fec0b567af2260e2c87ccbd562bfd3f398c3e6..1af3ab5331ea2ec83cfe2981031592fdffcfa535 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part_test.cc
@@ -66,8 +66,8 @@ TEST_F(NGOutOfFlowLayoutPartTest, FixedInsideAbs) {
LayoutNGBlockFlow* block_flow = toLayoutNGBlockFlow(rel->layoutObject());
NGConstraintSpace* space =
NGConstraintSpace::CreateFromLayoutObject(*block_flow);
- NGBlockNode node(block_flow);
- RefPtr<NGPhysicalFragment> fragment = node.Layout(space);
+ NGBlockNode* node = new NGBlockNode(block_flow);
+ RefPtr<NGPhysicalFragment> fragment = node->Layout(space);
EXPECT_EQ(fragment->OutOfFlowDescendants().size(), (size_t)2);
// Test the final result.

Powered by Google App Engine
This is Rietveld 408576698