| Index: third_party/WebKit/Source/core/layout/ng/ng_space_utils_test.cc
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_space_utils_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_space_utils_test.cc
|
| index ad76fa3441d32ede7d16d5b678bb6272ef3ae3be..db65ad4367f38cb453bbcf49f91a3fad71d45f76 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_space_utils_test.cc
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_space_utils_test.cc
|
| @@ -25,11 +25,11 @@ TEST_F(NGSpaceUtilsTest, NewFormattingContextForOutOfFlowChild) {
|
|
|
| auto& parent_style = GetLayoutObjectByElementId("parent")->StyleRef();
|
| auto* child = GetLayoutObjectByElementId("child");
|
| - auto* node = new NGBlockNode(child);
|
| + NGBlockNode node(ToLayoutBox(child));
|
|
|
| auto run_test = [&](RefPtr<ComputedStyle> style) {
|
| child->SetStyle(style);
|
| - EXPECT_TRUE(IsNewFormattingContextForBlockLevelChild(parent_style, *node));
|
| + EXPECT_TRUE(IsNewFormattingContextForBlockLevelChild(parent_style, node));
|
| };
|
|
|
| RefPtr<ComputedStyle> style = ComputedStyle::Create();
|
|
|