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

Unified Diff: Source/core/dom/TreeScopeTest.cpp

Issue 301233010: Oilpan: use transition types for remaining RefPtr<Document>s in dom/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have Document weakly track its attached Ranges Created 6 years, 7 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
« no previous file with comments | « Source/core/dom/Range.cpp ('k') | Source/core/timing/PerformanceResourceTiming.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « Source/core/dom/Range.cpp ('k') | Source/core/timing/PerformanceResourceTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698