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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp

Issue 2592653002: [wrapper-tracing] Trace CustomElementReactionStack (Closed)
Patch Set: Created 4 years 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/custom/CustomElementReactionStack.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
index 87bacb19b9243efe9ab48371f78fc6dfbe4b0704..b4641f05c01730103bd4eb4afa11b771e6fd7a5a 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
@@ -34,6 +34,12 @@ DEFINE_TRACE(CustomElementReactionStack) {
visitor->trace(m_backupQueue);
}
+DEFINE_TRACE_WRAPPERS(CustomElementReactionStack) {
+ for (auto key : m_map.keys()) {
+ visitor->traceWrappers(key);
+ }
+}
+
void CustomElementReactionStack::push() {
m_stack.append(nullptr);
}
@@ -72,7 +78,7 @@ void CustomElementReactionStack::enqueue(Member<ElementQueue>& queue,
CustomElementReactionQueue* reactions = m_map.get(element);
if (!reactions) {
reactions = new CustomElementReactionQueue();
- m_map.add(element, reactions);
+ m_map.add(TraceWrapperMember<Element>(this, element), reactions);
}
reactions->add(reaction);

Powered by Google App Engine
This is Rietveld 408576698