| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 063c4fd4ee7d7fc872fb604b541e39a950be54e9..1df0a473f1ad3efe3e8244c9b899fbcf77933b1c 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -66,7 +66,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"
|
| @@ -828,16 +827,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);
|
|
|