Index: third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp |
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp |
index 5d7671eab4957ec061f39c20acf6f600275dcde9..1bd3aad2ffc571283db758477872f8e23179e72b 100644 |
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp |
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp |
@@ -167,7 +167,7 @@ void CustomElementsRegistry::define( |
HeapVector<Member<Element>> candidates; |
collectCandidates(descriptor, &candidates); |
for (Element* candidate : candidates) |
- CustomElement::enqueueUpgradeReaction(candidate, definition); |
+ definition->enqueueUpgradeReaction(candidate); |
// 19: when-defined promise processing |
const auto& entry = m_whenDefinedPromiseMap.find(name); |