| Index: Source/core/dom/TreeScopeTest.cpp
|
| diff --git a/Source/core/dom/TreeScopeTest.cpp b/Source/core/dom/TreeScopeTest.cpp
|
| index 34eafe1223ce95f27b729f615b69d00816d56ed8..8c05c0fc3cfbb547d6f2c2ea248c5e4676b3f35b 100644
|
| --- a/Source/core/dom/TreeScopeTest.cpp
|
| +++ b/Source/core/dom/TreeScopeTest.cpp
|
| @@ -16,7 +16,7 @@ namespace {
|
|
|
| TEST(TreeScopeTest, CommonAncestorOfSameTrees)
|
| {
|
| - RefPtr<Document> document = Document::create();
|
| + RefPtrWillBeRawPtr<Document> document = Document::create();
|
| EXPECT_EQ(document.get(), document->commonAncestorTreeScope(*document));
|
|
|
| RefPtrWillBeRawPtr<Element> html = document->createElement("html", nullAtom, ASSERT_NO_EXCEPTION);
|
| @@ -31,7 +31,7 @@ TEST(TreeScopeTest, CommonAncestorOfInclusiveTrees)
|
| // | : Common ancestor is document.
|
| // shadowRoot
|
|
|
| - RefPtr<Document> document = Document::create();
|
| + RefPtrWillBeRawPtr<Document> document = Document::create();
|
| RefPtrWillBeRawPtr<Element> html = document->createElement("html", nullAtom, ASSERT_NO_EXCEPTION);
|
| document->appendChild(html, ASSERT_NO_EXCEPTION);
|
| RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = html->createShadowRoot(ASSERT_NO_EXCEPTION);
|
| @@ -46,7 +46,7 @@ TEST(TreeScopeTest, CommonAncestorOfSiblingTrees)
|
| // / \ : Common ancestor is document.
|
| // A B
|
|
|
| - RefPtr<Document> document = Document::create();
|
| + RefPtrWillBeRawPtr<Document> document = Document::create();
|
| RefPtrWillBeRawPtr<Element> html = document->createElement("html", nullAtom, ASSERT_NO_EXCEPTION);
|
| document->appendChild(html, ASSERT_NO_EXCEPTION);
|
| RefPtrWillBeRawPtr<Element> head = document->createElement("head", nullAtom, ASSERT_NO_EXCEPTION);
|
| @@ -69,7 +69,7 @@ TEST(TreeScopeTest, CommonAncestorOfTreesAtDifferentDepths)
|
| // /
|
| // A
|
|
|
| - RefPtr<Document> document = Document::create();
|
| + RefPtrWillBeRawPtr<Document> document = Document::create();
|
| RefPtrWillBeRawPtr<Element> html = document->createElement("html", nullAtom, ASSERT_NO_EXCEPTION);
|
| document->appendChild(html, ASSERT_NO_EXCEPTION);
|
| RefPtrWillBeRawPtr<Element> head = document->createElement("head", nullAtom, ASSERT_NO_EXCEPTION);
|
| @@ -90,8 +90,8 @@ TEST(TreeScopeTest, CommonAncestorOfTreesAtDifferentDepths)
|
|
|
| TEST(TreeScopeTest, CommonAncestorOfTreesInDifferentDocuments)
|
| {
|
| - RefPtr<Document> document1 = Document::create();
|
| - RefPtr<Document> document2 = Document::create();
|
| + RefPtrWillBeRawPtr<Document> document1 = Document::create();
|
| + RefPtrWillBeRawPtr<Document> document2 = Document::create();
|
| EXPECT_EQ(0, document1->commonAncestorTreeScope(*document2));
|
| EXPECT_EQ(0, document2->commonAncestorTreeScope(*document1));
|
| }
|
|
|