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

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

Issue 2724133003: [LayoutNG] Switch NGConstraintSpace to being RefCounted. (Closed)
Patch Set: moar. 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 d4a1a118d6187b2c2e0ac9abf6ea35d9e93d9b80..b4cfa988cc5fc65aa46f8945a4a904e9b625a870 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
@@ -64,10 +64,10 @@ TEST_F(NGOutOfFlowLayoutPartTest, FixedInsideAbs) {
// Test whether the oof fragments have been collected at NG->Legacy boundary.
Element* rel = document().getElementById("rel");
LayoutNGBlockFlow* block_flow = toLayoutNGBlockFlow(rel->layoutObject());
- NGConstraintSpace* space =
+ RefPtr<NGConstraintSpace> space =
NGConstraintSpace::CreateFromLayoutObject(*block_flow);
NGBlockNode* node = new NGBlockNode(block_flow);
- RefPtr<NGLayoutResult> result = node->Layout(space);
+ RefPtr<NGLayoutResult> result = node->Layout(space.get());
EXPECT_EQ(result->OutOfFlowDescendants().size(), (size_t)2);
// Test the final result.

Powered by Google App Engine
This is Rietveld 408576698