Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinitionBuilder.cpp

Issue 2441943002: Retrieve prototype during custom element construction. (Closed)
Patch Set: Update after https://codereview.chromium.org/2443543002 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "bindings/core/v8/ScriptCustomElementDefinitionBuilder.h" 5 #include "bindings/core/v8/ScriptCustomElementDefinitionBuilder.h"
6 6
7 #include "bindings/core/v8/DOMWrapperWorld.h" 7 #include "bindings/core/v8/DOMWrapperWorld.h"
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/ScriptCustomElementDefinition.h" 9 #include "bindings/core/v8/ScriptCustomElementDefinition.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 callableForName("disconnectedCallback", m_disconnectedCallback) && 147 callableForName("disconnectedCallback", m_disconnectedCallback) &&
148 callableForName("adoptedCallback", m_adoptedCallback) && 148 callableForName("adoptedCallback", m_adoptedCallback) &&
149 callableForName("attributeChangedCallback", 149 callableForName("attributeChangedCallback",
150 m_attributeChangedCallback) && 150 m_attributeChangedCallback) &&
151 (m_attributeChangedCallback.IsEmpty() || retrieveObservedAttributes()); 151 (m_attributeChangedCallback.IsEmpty() || retrieveObservedAttributes());
152 } 152 }
153 153
154 CustomElementDefinition* ScriptCustomElementDefinitionBuilder::build( 154 CustomElementDefinition* ScriptCustomElementDefinitionBuilder::build(
155 const CustomElementDescriptor& descriptor) { 155 const CustomElementDescriptor& descriptor) {
156 return ScriptCustomElementDefinition::create( 156 return ScriptCustomElementDefinition::create(
157 m_scriptState.get(), m_registry, descriptor, m_constructor, m_prototype, 157 m_scriptState.get(), m_registry, descriptor, m_constructor,
158 m_connectedCallback, m_disconnectedCallback, m_adoptedCallback, 158 m_connectedCallback, m_disconnectedCallback, m_adoptedCallback,
159 m_attributeChangedCallback, m_observedAttributes); 159 m_attributeChangedCallback, m_observedAttributes);
160 } 160 }
161 161
162 } // namespace blink 162 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698