| OLD | NEW |
| 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/ScriptCustomElementDefinition.h" | 5 #include "bindings/core/v8/ScriptCustomElementDefinition.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/V8BindingForCore.h" | 7 #include "bindings/core/v8/V8BindingForCore.h" |
| 8 #include "bindings/core/v8/V8CustomElementRegistry.h" | 8 #include "bindings/core/v8/V8CustomElementRegistry.h" |
| 9 #include "bindings/core/v8/V8Element.h" | 9 #include "bindings/core/v8/V8Element.h" |
| 10 #include "bindings/core/v8/V8ErrorHandler.h" | 10 #include "bindings/core/v8/V8ErrorHandler.h" |
| 11 #include "bindings/core/v8/V8PrivateProperty.h" | |
| 12 #include "bindings/core/v8/V8ScriptRunner.h" | 11 #include "bindings/core/v8/V8ScriptRunner.h" |
| 13 #include "bindings/core/v8/V8ThrowDOMException.h" | 12 #include "bindings/core/v8/V8ThrowDOMException.h" |
| 14 #include "core/dom/ExceptionCode.h" | 13 #include "core/dom/ExceptionCode.h" |
| 15 #include "core/dom/ExecutionContext.h" | 14 #include "core/dom/ExecutionContext.h" |
| 16 #include "core/dom/custom/CustomElement.h" | 15 #include "core/dom/custom/CustomElement.h" |
| 17 #include "core/events/ErrorEvent.h" | 16 #include "core/events/ErrorEvent.h" |
| 18 #include "core/html/HTMLElement.h" | 17 #include "core/html/HTMLElement.h" |
| 19 #include "core/html/imports/HTMLImportsController.h" | 18 #include "core/html/imports/HTMLImportsController.h" |
| 20 #include "platform/bindings/ScriptState.h" | 19 #include "platform/bindings/ScriptState.h" |
| 21 #include "platform/bindings/V8BindingMacros.h" | 20 #include "platform/bindings/V8BindingMacros.h" |
| 21 #include "platform/bindings/V8PrivateProperty.h" |
| 22 #include "platform/wtf/Allocator.h" | 22 #include "platform/wtf/Allocator.h" |
| 23 #include "v8.h" | 23 #include "v8.h" |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 | 26 |
| 27 // Retrieves the custom elements constructor -> name map, creating it | 27 // Retrieves the custom elements constructor -> name map, creating it |
| 28 // if necessary. | 28 // if necessary. |
| 29 static v8::Local<v8::Map> EnsureCustomElementRegistryMap( | 29 static v8::Local<v8::Map> EnsureCustomElementRegistryMap( |
| 30 ScriptState* script_state, | 30 ScriptState* script_state, |
| 31 CustomElementRegistry* registry) { | 31 CustomElementRegistry* registry) { |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 v8::Local<v8::Value> argv[] = { | 368 v8::Local<v8::Value> argv[] = { |
| 369 V8String(isolate, name.LocalName()), V8StringOrNull(isolate, old_value), | 369 V8String(isolate, name.LocalName()), V8StringOrNull(isolate, old_value), |
| 370 V8StringOrNull(isolate, new_value), | 370 V8StringOrNull(isolate, new_value), |
| 371 V8StringOrNull(isolate, name.NamespaceURI()), | 371 V8StringOrNull(isolate, name.NamespaceURI()), |
| 372 }; | 372 }; |
| 373 RunCallback(attribute_changed_callback_.NewLocal(isolate), element, | 373 RunCallback(attribute_changed_callback_.NewLocal(isolate), element, |
| 374 WTF_ARRAY_LENGTH(argv), argv); | 374 WTF_ARRAY_LENGTH(argv), argv); |
| 375 } | 375 } |
| 376 | 376 |
| 377 } // namespace blink | 377 } // namespace blink |
| OLD | NEW |