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

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

Issue 2804753005: Rewrite references to "wtf/" to "platform/wtf/" in bindings. (Closed)
Patch Set: Created 3 years, 8 months 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/ScriptCustomElementDefinition.h" 5 #include "bindings/core/v8/ScriptCustomElementDefinition.h"
6 6
7 #include "bindings/core/v8/ScriptState.h" 7 #include "bindings/core/v8/ScriptState.h"
8 #include "bindings/core/v8/V8Binding.h" 8 #include "bindings/core/v8/V8Binding.h"
9 #include "bindings/core/v8/V8BindingMacros.h" 9 #include "bindings/core/v8/V8BindingMacros.h"
10 #include "bindings/core/v8/V8CustomElementRegistry.h" 10 #include "bindings/core/v8/V8CustomElementRegistry.h"
11 #include "bindings/core/v8/V8Element.h" 11 #include "bindings/core/v8/V8Element.h"
12 #include "bindings/core/v8/V8ErrorHandler.h" 12 #include "bindings/core/v8/V8ErrorHandler.h"
13 #include "bindings/core/v8/V8PrivateProperty.h" 13 #include "bindings/core/v8/V8PrivateProperty.h"
14 #include "bindings/core/v8/V8ScriptRunner.h" 14 #include "bindings/core/v8/V8ScriptRunner.h"
15 #include "bindings/core/v8/V8ThrowException.h" 15 #include "bindings/core/v8/V8ThrowException.h"
16 #include "core/dom/ExceptionCode.h" 16 #include "core/dom/ExceptionCode.h"
17 #include "core/dom/custom/CustomElement.h" 17 #include "core/dom/custom/CustomElement.h"
18 #include "core/events/ErrorEvent.h" 18 #include "core/events/ErrorEvent.h"
19 #include "core/html/HTMLElement.h" 19 #include "core/html/HTMLElement.h"
20 #include "core/html/imports/HTMLImportsController.h" 20 #include "core/html/imports/HTMLImportsController.h"
21 #include "platform/wtf/Allocator.h"
21 #include "v8.h" 22 #include "v8.h"
22 #include "wtf/Allocator.h"
23 23
24 namespace blink { 24 namespace blink {
25 25
26 // Retrieves the custom elements constructor -> name map, creating it 26 // Retrieves the custom elements constructor -> name map, creating it
27 // if necessary. 27 // if necessary.
28 static v8::Local<v8::Map> ensureCustomElementRegistryMap( 28 static v8::Local<v8::Map> ensureCustomElementRegistryMap(
29 ScriptState* scriptState, 29 ScriptState* scriptState,
30 CustomElementRegistry* registry) { 30 CustomElementRegistry* registry) {
31 CHECK(scriptState->world().isMainWorld()); 31 CHECK(scriptState->world().isMainWorld());
32 v8::Isolate* isolate = scriptState->isolate(); 32 v8::Isolate* isolate = scriptState->isolate();
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 v8::Local<v8::Value> argv[] = { 363 v8::Local<v8::Value> argv[] = {
364 v8String(isolate, name.localName()), v8StringOrNull(isolate, oldValue), 364 v8String(isolate, name.localName()), v8StringOrNull(isolate, oldValue),
365 v8StringOrNull(isolate, newValue), 365 v8StringOrNull(isolate, newValue),
366 v8StringOrNull(isolate, name.namespaceURI()), 366 v8StringOrNull(isolate, name.namespaceURI()),
367 }; 367 };
368 runCallback(m_attributeChangedCallback.newLocal(isolate), element, 368 runCallback(m_attributeChangedCallback.newLocal(isolate), element,
369 WTF_ARRAY_LENGTH(argv), argv); 369 WTF_ARRAY_LENGTH(argv), argv);
370 } 370 }
371 371
372 } // namespace blink 372 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698