| Index: third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp
|
| index 1a810a9c7ef0febf748a04a2af890c4de3d93a15..89d703da4f0acace5e84c367f0e96bbf9b4ae222 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp
|
| @@ -12,6 +12,7 @@
|
| #include "bindings/core/v8/V8DOMWrapper.h"
|
| #include "bindings/core/v8/V8ThrowException.h"
|
| #include "core/dom/Document.h"
|
| +#include "core/dom/Element.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/dom/custom/CustomElementsRegistry.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| @@ -63,7 +64,7 @@ void V8HTMLElement::constructorCustom(
|
| *window->document());
|
| // TODO(davaajav): write this as one call to setCustomElementState instead of two
|
| element->setCustomElementState(CustomElementState::Undefined);
|
| - element->setCustomElementState(CustomElementState::Custom);
|
| + element->setCustomElementDefinition(definition);
|
| } else {
|
| element = definition->constructionStack().last();
|
| if (element) {
|
|
|