Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 64597aca002b7bdb3bbda792e3284c9ffb02653f..45212e3f75f58e5dc2355d56ba2f95b05812899c 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -842,8 +842,8 @@ PassRefPtrWillBeRawPtr<Element> Document::createElementNS(const AtomicString& na |
ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicString& name, ExceptionState& exceptionState) |
{ |
- ElementRegistrationOptions* options = ElementRegistrationOptions::create(); |
- return registerElement(scriptState, name, *options, exceptionState); |
+ ElementRegistrationOptions options; |
+ return registerElement(scriptState, name, options, exceptionState); |
} |
ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicString& name, const ElementRegistrationOptions& options, ExceptionState& exceptionState, CustomElement::NameSet validNames) |