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

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

Issue 2043503002: Add [CEReactions] IDL attributes for Custom Elements V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yukishiino review Created 4 years, 6 months 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/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

Powered by Google App Engine
This is Rietveld 408576698