Index: Source/core/dom/custom/CustomElement.cpp |
diff --git a/Source/core/dom/custom/CustomElement.cpp b/Source/core/dom/custom/CustomElement.cpp |
index cc80568260855b08671f58db7bf46b1f479c47fa..8884873bc349cf70f7fa61526cab3c09a3efaaa5 100644 |
--- a/Source/core/dom/custom/CustomElement.cpp |
+++ b/Source/core/dom/custom/CustomElement.cpp |
@@ -106,12 +106,7 @@ void CustomElement::define(Element* element, PassRefPtr<CustomElementDefinition> |
case Element::WaitingForUpgrade: |
definitions().add(element, definition); |
- if (element->inDocument() && element->document().domWindow()) |
- CustomElementScheduler::scheduleAttachedCallback(definition->callbacks(), element); |
- // FIXME: Push this through the callback scheduler. That |
- // design makes resolve and define robust to being called |
- // during other operations. |
- definition->callbacks()->created(element); |
+ CustomElementScheduler::scheduleCreatedCallback(definition->callbacks(), element); |
break; |
} |
} |