| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 79ac970ad4312b8daa54d74ae572be22cf21b1cf..9b68573fb1ee258977fa443a30d917e964f1cbb4 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -56,7 +56,6 @@
|
| #include "core/dom/CDATASection.h"
|
| #include "core/dom/Comment.h"
|
| #include "core/dom/ContextFeatures.h"
|
| -#include "core/dom/CustomElementConstructor.h"
|
| #include "core/dom/CustomElementRegistry.h"
|
| #include "core/dom/DOMImplementation.h"
|
| #include "core/dom/DOMNamedFlowCollection.h"
|
| @@ -831,16 +830,16 @@ PassRefPtr<Element> Document::createElementNS(const AtomicString& namespaceURI,
|
| return element;
|
| }
|
|
|
| -PassRefPtr<CustomElementConstructor> Document::registerElement(WebCore::ScriptState* state, const AtomicString& name, ExceptionCode& ec)
|
| +ScriptValue Document::registerElement(WebCore::ScriptState* state, const AtomicString& name, ExceptionCode& ec)
|
| {
|
| return registerElement(state, name, Dictionary(), ec);
|
| }
|
|
|
| -PassRefPtr<CustomElementConstructor> Document::registerElement(WebCore::ScriptState* state, const AtomicString& name, const Dictionary& options, ExceptionCode& ec)
|
| +ScriptValue Document::registerElement(WebCore::ScriptState* state, const AtomicString& name, const Dictionary& options, ExceptionCode& ec)
|
| {
|
| if (!isHTMLDocument() && !isXHTMLDocument()) {
|
| ec = NOT_SUPPORTED_ERR;
|
| - return 0;
|
| + return ScriptValue();
|
| }
|
|
|
| return ensureCustomElementRegistry()->registerElement(state, name, options, ec);
|
|
|