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

Unified Diff: third_party/WebKit/Source/core/dom/StaticNodeList.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/core/dom/StaticNodeList.h
diff --git a/third_party/WebKit/Source/core/dom/StaticNodeList.h b/third_party/WebKit/Source/core/dom/StaticNodeList.h
index a1bebef8ce823ce2461f7379320c41b7e52614a6..b898b93cd648dbe8a99a440bf4e98b0437d614ec 100644
--- a/third_party/WebKit/Source/core/dom/StaticNodeList.h
+++ b/third_party/WebKit/Source/core/dom/StaticNodeList.h
@@ -43,11 +43,11 @@ class Node;
template <typename NodeType>
class StaticNodeTypeList final : public NodeList {
public:
- static PassRefPtrWillBeRawPtr<StaticNodeTypeList> adopt(WillBeHeapVector<RefPtrWillBeMember<NodeType>>& nodes);
+ static RawPtr<StaticNodeTypeList> adopt(HeapVector<Member<NodeType>>& nodes);
- static PassRefPtrWillBeRawPtr<StaticNodeTypeList> createEmpty()
+ static RawPtr<StaticNodeTypeList> createEmpty()
{
- return adoptRefWillBeNoop(new StaticNodeTypeList);
+ return (new StaticNodeTypeList);
}
~StaticNodeTypeList() override;
@@ -60,19 +60,19 @@ public:
private:
ptrdiff_t AllocationSize()
{
- return m_nodes.capacity() * sizeof(RefPtrWillBeMember<NodeType>);
+ return m_nodes.capacity() * sizeof(Member<NodeType>);
}
- WillBeHeapVector<RefPtrWillBeMember<NodeType>> m_nodes;
+ HeapVector<Member<NodeType>> m_nodes;
};
typedef StaticNodeTypeList<Node> StaticNodeList;
typedef StaticNodeTypeList<Element> StaticElementList;
template <typename NodeType>
-PassRefPtrWillBeRawPtr<StaticNodeTypeList<NodeType>> StaticNodeTypeList<NodeType>::adopt(WillBeHeapVector<RefPtrWillBeMember<NodeType>>& nodes)
+RawPtr<StaticNodeTypeList<NodeType>> StaticNodeTypeList<NodeType>::adopt(HeapVector<Member<NodeType>>& nodes)
{
- RefPtrWillBeRawPtr<StaticNodeTypeList<NodeType>> nodeList = adoptRefWillBeNoop(new StaticNodeTypeList<NodeType>);
+ RawPtr<StaticNodeTypeList<NodeType>> nodeList = (new StaticNodeTypeList<NodeType>);
nodeList->m_nodes.swap(nodes);
v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(nodeList->AllocationSize());
return nodeList.release();

Powered by Google App Engine
This is Rietveld 408576698