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

Unified Diff: third_party/WebKit/Source/core/dom/NodeListsNodeData.h

Issue 2809183003: [wrapper-tracing] Fix node list leak (Closed)
Patch Set: Addressed comments. Created 3 years, 8 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: third_party/WebKit/Source/core/dom/NodeListsNodeData.h
diff --git a/third_party/WebKit/Source/core/dom/NodeListsNodeData.h b/third_party/WebKit/Source/core/dom/NodeListsNodeData.h
index 3b1e8fca738004d42ebd3d87bae13d8137e0efa7..0b05fcd749e5bc6d609606769fa21bf5cc30e819 100644
--- a/third_party/WebKit/Source/core/dom/NodeListsNodeData.h
+++ b/third_party/WebKit/Source/core/dom/NodeListsNodeData.h
@@ -99,6 +99,7 @@ class NodeListsNodeData final : public GarbageCollected<NodeListsNodeData> {
T* list = T::Create(node, collection_type, name);
result.stored_value->value = list;
+ ScriptWrappableVisitor::WriteBarrier(this, list);
return list;
}
@@ -113,6 +114,7 @@ class NodeListsNodeData final : public GarbageCollected<NodeListsNodeData> {
T* list = T::Create(node, collection_type);
result.stored_value->value = list;
+ ScriptWrappableVisitor::WriteBarrier(this, list);
return list;
}
@@ -135,6 +137,7 @@ class NodeListsNodeData final : public GarbageCollected<NodeListsNodeData> {
TagCollection* list =
TagCollection::Create(node, namespace_uri, local_name);
result.stored_value->value = list;
+ ScriptWrappableVisitor::WriteBarrier(this, list);
return list;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/NodeListsNodeData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698