| Index: Source/core/dom/StaticNodeList.h
|
| diff --git a/Source/core/dom/StaticNodeList.h b/Source/core/dom/StaticNodeList.h
|
| index fd66b3aa957601d4baff9335578d5bada4827d87..bb552157427ee7a0fd649c3cea9b71ba1b1d24f2 100644
|
| --- a/Source/core/dom/StaticNodeList.h
|
| +++ b/Source/core/dom/StaticNodeList.h
|
| @@ -40,18 +40,15 @@ class Node;
|
|
|
| class StaticNodeList FINAL : public NodeList {
|
| public:
|
| - static PassRefPtr<StaticNodeList> adopt(Vector<RefPtr<Node> >& nodes)
|
| - {
|
| - RefPtr<StaticNodeList> nodeList = adoptRef(new StaticNodeList);
|
| - nodeList->m_nodes.swap(nodes);
|
| - return nodeList.release();
|
| - }
|
| + static PassRefPtr<StaticNodeList> adopt(Vector<RefPtr<Node> >&);
|
|
|
| static PassRefPtr<StaticNodeList> createEmpty()
|
| {
|
| return adoptRef(new StaticNodeList);
|
| }
|
|
|
| + virtual ~StaticNodeList();
|
| +
|
| virtual unsigned length() const OVERRIDE;
|
| virtual Node* item(unsigned index) const OVERRIDE;
|
| virtual Node* namedItem(const AtomicString&) const OVERRIDE;
|
|
|