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

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

Issue 21274004: Fix Document leak from NodeFilter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: don't print numberOfLiveDocuments when test passed Created 7 years, 5 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
« no previous file with comments | « Source/bindings/v8/custom/V8TreeWalkerCustom.cpp ('k') | Source/core/dom/NodeIterator.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/NodeFilter.h
diff --git a/Source/core/dom/NodeFilter.h b/Source/core/dom/NodeFilter.h
index c720126d739a9c683d62c863a246712f13496f4b..a811a1325bd145bd59fff86e6f49e5080cdfa9a6 100644
--- a/Source/core/dom/NodeFilter.h
+++ b/Source/core/dom/NodeFilter.h
@@ -77,6 +77,11 @@ public:
short acceptNode(ScriptState*, Node*) const;
+ void setCondition(PassRefPtr<NodeFilterCondition> condition)
+ {
+ m_condition = condition;
+ }
+
private:
explicit NodeFilter(PassRefPtr<NodeFilterCondition> condition) : m_condition(condition)
{
« no previous file with comments | « Source/bindings/v8/custom/V8TreeWalkerCustom.cpp ('k') | Source/core/dom/NodeIterator.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698