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

Unified Diff: Source/core/dom/NodeIterator.idl

Issue 21274004: Fix Document leak from NodeFilter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/dom/NodeIterator.idl
diff --git a/Source/core/dom/NodeIterator.idl b/Source/core/dom/NodeIterator.idl
index d25c3055e887ea28b47657849f856fe185327a77..3a33d79f28e8494d56ef8f3436ccae9d1be3e1bd 100644
--- a/Source/core/dom/NodeIterator.idl
+++ b/Source/core/dom/NodeIterator.idl
@@ -22,7 +22,7 @@
interface NodeIterator {
readonly attribute Node root;
readonly attribute unsigned long whatToShow;
- readonly attribute NodeFilter filter;
+ [KeepAttributeAliveForGC] readonly attribute NodeFilter filter;
abarth-chromium 2013/07/31 06:04:14 Why is this attribute needed? Storing the filter
kouhei (in TOK) 2013/07/31 06:21:34 I'm new to the bindings world so it's very likely
haraken 2013/07/31 06:46:13 I think it's a right thing to keep 'filter' alive
readonly attribute boolean expandEntityReferences;
readonly attribute Node referenceNode;
readonly attribute boolean pointerBeforeReferenceNode;
« Source/bindings/v8/V8NodeFilterCondition.cpp ('K') | « Source/core/dom/NodeFilter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698