Index: Source/core/dom/DocumentMarkerControllerTest.cpp |
diff --git a/Source/core/dom/DocumentMarkerControllerTest.cpp b/Source/core/dom/DocumentMarkerControllerTest.cpp |
index 94a46cf3c43200dc01b929afbec1d441d3921353..927b243b9f9cb6010a4410bff44e6e354bc1bdb6 100644 |
--- a/Source/core/dom/DocumentMarkerControllerTest.cpp |
+++ b/Source/core/dom/DocumentMarkerControllerTest.cpp |
@@ -94,7 +94,7 @@ TEST_F(DocumentMarkerControllerTest, DidMoveToNewDocument) |
RefPtrWillBeRawPtr<Element> parent = toElement(document().body()->firstChild()->firstChild()); |
markNodeContents(parent.get()); |
EXPECT_EQ(1u, markerController().markers().size()); |
- RefPtr<Document> anotherDocument = Document::create(); |
+ RefPtrWillBePersistent<Document> anotherDocument = Document::create(); |
anotherDocument->adoptNode(parent.get(), ASSERT_NO_EXCEPTION); |
// No more reference to marked node. |