diff options
author | Kulanthaivel Palanichamy <kulanthaivel@codeaurora.org> | 2012-11-27 11:50:21 -0800 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2013-01-21 01:19:49 -0800 |
commit | 68e9c4e7cda8607f395a75781809fabbcc2bbeb8 (patch) | |
tree | f0821a7c1d6f2f4e1b38ec045efa5f875c7b8a02 /Source/WebCore/dom/ChildNodeList.h | |
parent | 4bb8cc2e30240dd477bdb3fa20c16c9208ad7292 (diff) | |
download | external_webkit-68e9c4e7cda8607f395a75781809fabbcc2bbeb8.zip external_webkit-68e9c4e7cda8607f395a75781809fabbcc2bbeb8.tar.gz external_webkit-68e9c4e7cda8607f395a75781809fabbcc2bbeb8.tar.bz2 |
[WebKit] Fix for the memory leak
Memory leak was introduced by "DOM traversal optimizations DOM
Core optimizations Prefetch optimization for DOM Tree Traversal"
Cachelist was being mismanaged. Removing it.
Change-Id: I8abb2b6b30b1fbeb931a19be3567c78c3f697d77
Diffstat (limited to 'Source/WebCore/dom/ChildNodeList.h')
-rw-r--r-- | Source/WebCore/dom/ChildNodeList.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/WebCore/dom/ChildNodeList.h b/Source/WebCore/dom/ChildNodeList.h index df3d67b..f38106d 100644 --- a/Source/WebCore/dom/ChildNodeList.h +++ b/Source/WebCore/dom/ChildNodeList.h @@ -31,18 +31,16 @@ namespace WebCore { class ChildNodeList : public DynamicNodeList { public: - static PassRefPtr<ChildNodeList> create(PassRefPtr<Node> rootNode) + static PassRefPtr<ChildNodeList> create(PassRefPtr<Node> rootNode, Caches* caches) { - return adoptRef(new ChildNodeList(rootNode)); + return adoptRef(new ChildNodeList(rootNode, caches)); } - virtual ~ChildNodeList(); - virtual unsigned length() const; virtual Node* item(unsigned index) const; protected: - ChildNodeList(PassRefPtr<Node> rootNode); + ChildNodeList(PassRefPtr<Node> rootNode, Caches*); virtual bool nodeMatches(Element*) const; }; |