| Index: Source/core/dom/CustomElementConstructor.cpp
|
| diff --git a/Source/core/dom/CustomElementConstructor.cpp b/Source/core/dom/CustomElementConstructor.cpp
|
| index f664ecf92864d5eadb5d9316e46ffe2df99ae40c..ff02ea7446bb947cd3e173ac1ac4e6e11e2cc84d 100644
|
| --- a/Source/core/dom/CustomElementConstructor.cpp
|
| +++ b/Source/core/dom/CustomElementConstructor.cpp
|
| @@ -32,6 +32,7 @@
|
|
|
| #include "core/dom/CustomElementConstructor.h"
|
|
|
| +#include "core/dom/CustomElementRegistry.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/Element.h"
|
|
|
| @@ -55,7 +56,12 @@ Document* CustomElementConstructor::document() const {
|
| PassRefPtr<Element> CustomElementConstructor::createElement(ExceptionCode& ec) {
|
| if (!document())
|
| return 0;
|
| - return document()->createElementNS(m_tag.namespaceURI(), m_tag.localName(), m_typeExtension, ec);
|
| + RefPtr<Element> result;
|
| + {
|
| + CustomElementRegistry::CallbackDeliveryScope deliveryScope;
|
| + result = document()->createElementNS(m_tag.namespaceURI(), m_tag.localName(), m_typeExtension, ec);
|
| + }
|
| + return result.release();
|
| }
|
|
|
| }
|
|
|