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

Unified Diff: Source/core/dom/NodeRareData.h

Issue 23983034: [oilpan] Handlify Node raw pointers in html/ and subclasses of dom/LiveNodeList. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 3 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: Source/core/dom/NodeRareData.h
diff --git a/Source/core/dom/NodeRareData.h b/Source/core/dom/NodeRareData.h
index 4254a0e7973859e246bace4225362decec27ca0a..94e4b4c98bf39877d578086540dd6f78839bedb0 100644
--- a/Source/core/dom/NodeRareData.h
+++ b/Source/core/dom/NodeRareData.h
@@ -59,7 +59,7 @@ public:
{
if (m_childNodeList)
return m_childNodeList;
- RefPtr<ChildNodeList> list = ChildNodeList::create(node);
+ RefPtr<ChildNodeList> list = ChildNodeList::create(adoptRawResult(node));
m_childNodeList = list.get();
return list.release();
}
@@ -93,7 +93,7 @@ public:
if (!result.isNewEntry)
return static_cast<T*>(result.iterator->value);
- RefPtr<T> list = T::create(node, collectionType, name);
+ RefPtr<T> list = T::create(adoptRawResult(node), collectionType, name);
result.iterator->value = list.get();
return list.release();
}
@@ -106,7 +106,7 @@ public:
if (!result.isNewEntry)
return static_cast<T*>(result.iterator->value);
- RefPtr<T> list = T::create(node, collectionType);
+ RefPtr<T> list = T::create(adoptRawResult(node), collectionType);
result.iterator->value = list.get();
return list.release();
}
@@ -124,7 +124,7 @@ public:
if (!result.isNewEntry)
return static_cast<T*>(result.iterator->value);
- RefPtr<T> list = T::create(node, name);
+ RefPtr<T> list = T::create(adoptRawResult(node), name);
result.iterator->value = list.get();
return list.release();
}
@@ -136,7 +136,7 @@ public:
if (!result.isNewEntry)
return result.iterator->value;
- RefPtr<TagNodeList> list = TagNodeList::create(node, namespaceURI, localName);
+ RefPtr<TagNodeList> list = TagNodeList::create(adoptRawResult(node), namespaceURI, localName);
result.iterator->value = list.get();
return list.release();
}

Powered by Google App Engine
This is Rietveld 408576698