Chromium Code Reviews| 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 d4b7049f5f97616aa08e615c2d5760ff12e0cad8..01ba994409317aae7a6f44ff107986786704194a 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp |
| +++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8HTMLElementCustom.cpp |
| @@ -62,6 +62,7 @@ void V8HTMLElement::constructorCustom( |
| QualifiedName(nullAtom, definition->descriptor().localName(), HTMLNames::xhtmlNamespaceURI), |
| *window->document()); |
| element->setCustomElementState(CustomElementState::Undefined); |
| + element->setCustomElementState(CustomElementState::Custom); |
|
dominicc (has gone to gerrit)
2016/07/22 09:11:25
Could we put a TODO here to just write this as one
|
| } else { |
| element = definition->constructionStack().last(); |
| if (element) { |
| @@ -91,10 +92,6 @@ void V8HTMLElement::constructorCustom( |
| v8CallOrCrash(wrapper->SetPrototype( |
| scriptState->context(), |
| definition->prototype())); |
| - |
| - // TODO(dominicc): Move this to the exactly correct place when |
| - // https://github.com/whatwg/html/issues/1297 is closed. |
| - element->setCustomElementState(CustomElementState::Custom); |
| } |
| } // namespace blink |