| 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 031cf43724dfcc92528917cf05a45a356ba8ede6..3b3898bf5432cc9bee122b25a9c88dde9abdb555 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp
|
| @@ -90,8 +90,6 @@ void CustomElementsRegistry::define(
|
| const ElementRegistrationOptions& options,
|
| ExceptionState& exceptionState)
|
| {
|
| - CEReactionsScope reactions;
|
| -
|
| if (!builder.checkConstructorIntrinsics())
|
| return;
|
|
|
| @@ -149,11 +147,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
|
|
|