| 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();
|
|
|