| 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 937f9239614f4d52d4720ad2945f010c7c3609e4..a48073e4687f04f7b9045d676d78fd1f035c596e 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp
|
| @@ -65,8 +65,6 @@ void CustomElementsRegistry::define(
|
| const ElementRegistrationOptions& options,
|
| ExceptionState& exceptionState)
|
| {
|
| - CEReactionsScope reactions;
|
| -
|
| if (!builder.checkConstructorIntrinsics())
|
| return;
|
|
|
| @@ -116,11 +114,8 @@ void CustomElementsRegistry::define(
|
|
|
| HeapVector<Member<Element>> candidates;
|
| collectCandidates(descriptor, &candidates);
|
| - for (Element* candidate : candidates) {
|
| - reactions.enqueue(
|
| - candidate,
|
| - new CustomElementUpgradeReaction(definition));
|
| - }
|
| + for (Element* candidate : candidates)
|
| + CustomElement::enqueueUpgradeReaction(candidate, definition);
|
|
|
| // TODO(dominicc): Implement steps:
|
| // 20: when-defined promise processing
|
|
|