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

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

Issue 2856173004: Clean up bindings/core/v8 (Part 5) (Closed)
Patch Set: Fix build Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "bindings/core/v8/V0CustomElementConstructorBuilder.h" 31 #include "bindings/core/v8/V0CustomElementConstructorBuilder.h"
32 32
33 #include "bindings/core/v8/ExceptionState.h" 33 #include "bindings/core/v8/ExceptionState.h"
34 #include "bindings/core/v8/StringOrDictionary.h" 34 #include "bindings/core/v8/StringOrDictionary.h"
35 #include "bindings/core/v8/V8BindingForCore.h" 35 #include "bindings/core/v8/V8BindingForCore.h"
36 #include "bindings/core/v8/V8Document.h" 36 #include "bindings/core/v8/V8Document.h"
37 #include "bindings/core/v8/V8HTMLElement.h" 37 #include "bindings/core/v8/V8HTMLElement.h"
38 #include "bindings/core/v8/V8PerContextData.h"
39 #include "bindings/core/v8/V8PrivateProperty.h"
40 #include "bindings/core/v8/V8SVGElement.h" 38 #include "bindings/core/v8/V8SVGElement.h"
41 #include "core/HTMLNames.h" 39 #include "core/HTMLNames.h"
42 #include "core/SVGNames.h" 40 #include "core/SVGNames.h"
43 #include "core/dom/Document.h" 41 #include "core/dom/Document.h"
44 #include "core/dom/ElementRegistrationOptions.h" 42 #include "core/dom/ElementRegistrationOptions.h"
45 #include "core/dom/custom/V0CustomElementDefinition.h" 43 #include "core/dom/custom/V0CustomElementDefinition.h"
46 #include "core/dom/custom/V0CustomElementDescriptor.h" 44 #include "core/dom/custom/V0CustomElementDescriptor.h"
47 #include "core/dom/custom/V0CustomElementException.h" 45 #include "core/dom/custom/V0CustomElementException.h"
48 #include "core/dom/custom/V0CustomElementProcessingStack.h" 46 #include "core/dom/custom/V0CustomElementProcessingStack.h"
49 #include "core/frame/UseCounter.h" 47 #include "core/frame/UseCounter.h"
50 #include "platform/bindings/DOMWrapperWorld.h" 48 #include "platform/bindings/DOMWrapperWorld.h"
51 #include "platform/bindings/V0CustomElementBinding.h" 49 #include "platform/bindings/V0CustomElementBinding.h"
50 #include "platform/bindings/V8PerContextData.h"
51 #include "platform/bindings/V8PrivateProperty.h"
52 #include "platform/wtf/Assertions.h" 52 #include "platform/wtf/Assertions.h"
53 53
54 namespace blink { 54 namespace blink {
55 55
56 static void ConstructCustomElement(const v8::FunctionCallbackInfo<v8::Value>&); 56 static void ConstructCustomElement(const v8::FunctionCallbackInfo<v8::Value>&);
57 57
58 V0CustomElementConstructorBuilder::V0CustomElementConstructorBuilder( 58 V0CustomElementConstructorBuilder::V0CustomElementConstructorBuilder(
59 ScriptState* script_state, 59 ScriptState* script_state,
60 const ElementRegistrationOptions& options) 60 const ElementRegistrationOptions& options)
61 : script_state_(script_state), options_(options) { 61 : script_state_(script_state), options_(options) {
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 nullptr, namespace_uri, tag_name, 346 nullptr, namespace_uri, tag_name,
347 StringOrDictionary::fromString(maybe_type->IsNull() ? g_null_atom : type), 347 StringOrDictionary::fromString(maybe_type->IsNull() ? g_null_atom : type),
348 exception_state); 348 exception_state);
349 if (element) { 349 if (element) {
350 UseCounter::Count(document, UseCounter::kV0CustomElementsConstruct); 350 UseCounter::Count(document, UseCounter::kV0CustomElementsConstruct);
351 } 351 }
352 V8SetReturnValueFast(info, element, document); 352 V8SetReturnValueFast(info, element, document);
353 } 353 }
354 354
355 } // namespace blink 355 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698