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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.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/CustomElementRegistry.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
index 4d3cc4ae6f05aa9b8a19676f9ee52f0c2c5ebd8a..88298258b03cb1971481924fa9513b321cac1efe 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
@@ -18,6 +18,7 @@
#include "core/dom/custom/CustomElementDefinition.h"
#include "core/dom/custom/CustomElementDefinitionBuilder.h"
#include "core/dom/custom/CustomElementDescriptor.h"
+#include "core/dom/custom/CustomElementReactionStack.h"
#include "core/dom/custom/CustomElementUpgradeReaction.h"
#include "core/dom/custom/CustomElementUpgradeSorter.h"
#include "core/dom/custom/V0CustomElementRegistrationContext.h"
@@ -90,6 +91,10 @@ DEFINE_TRACE(CustomElementRegistry) {
visitor->trace(m_whenDefinedPromiseMap);
}
+DEFINE_TRACE_WRAPPERS(CustomElementRegistry) {
+ visitor->traceWrappers(&CustomElementReactionStack::current());
+}
+
CustomElementDefinition* CustomElementRegistry::define(
ScriptState* scriptState,
const AtomicString& name,

Powered by Google App Engine
This is Rietveld 408576698