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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp

Issue 2812013004: Rewrite references to "wtf/" to "platform/wtf/" in core/{dom,html,xml}. (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 "core/dom/custom/CustomElementRegistry.h" 5 #include "core/dom/custom/CustomElementRegistry.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptCustomElementDefinitionBuilder.h" 8 #include "bindings/core/v8/ScriptCustomElementDefinitionBuilder.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptPromiseResolver.h" 10 #include "bindings/core/v8/ScriptPromiseResolver.h"
11 #include "core/HTMLElementTypeHelpers.h" 11 #include "core/HTMLElementTypeHelpers.h"
12 #include "core/dom/Document.h" 12 #include "core/dom/Document.h"
13 #include "core/dom/Element.h" 13 #include "core/dom/Element.h"
14 #include "core/dom/ElementDefinitionOptions.h" 14 #include "core/dom/ElementDefinitionOptions.h"
15 #include "core/dom/ExceptionCode.h" 15 #include "core/dom/ExceptionCode.h"
16 #include "core/dom/custom/CEReactionsScope.h" 16 #include "core/dom/custom/CEReactionsScope.h"
17 #include "core/dom/custom/CustomElement.h" 17 #include "core/dom/custom/CustomElement.h"
18 #include "core/dom/custom/CustomElementDefinition.h" 18 #include "core/dom/custom/CustomElementDefinition.h"
19 #include "core/dom/custom/CustomElementDefinitionBuilder.h" 19 #include "core/dom/custom/CustomElementDefinitionBuilder.h"
20 #include "core/dom/custom/CustomElementDescriptor.h" 20 #include "core/dom/custom/CustomElementDescriptor.h"
21 #include "core/dom/custom/CustomElementReactionStack.h" 21 #include "core/dom/custom/CustomElementReactionStack.h"
22 #include "core/dom/custom/CustomElementUpgradeReaction.h" 22 #include "core/dom/custom/CustomElementUpgradeReaction.h"
23 #include "core/dom/custom/CustomElementUpgradeSorter.h" 23 #include "core/dom/custom/CustomElementUpgradeSorter.h"
24 #include "core/dom/custom/V0CustomElementRegistrationContext.h" 24 #include "core/dom/custom/V0CustomElementRegistrationContext.h"
25 #include "core/frame/LocalDOMWindow.h" 25 #include "core/frame/LocalDOMWindow.h"
26 #include "platform/instrumentation/tracing/TraceEvent.h" 26 #include "platform/instrumentation/tracing/TraceEvent.h"
27 #include "wtf/Allocator.h" 27 #include "platform/wtf/Allocator.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 // Returns true if |name| is invalid. 31 // Returns true if |name| is invalid.
32 static bool ThrowIfInvalidName(const AtomicString& name, 32 static bool ThrowIfInvalidName(const AtomicString& name,
33 ExceptionState& exception_state) { 33 ExceptionState& exception_state) {
34 if (CustomElement::IsValidName(name)) 34 if (CustomElement::IsValidName(name))
35 return false; 35 return false;
36 exception_state.ThrowDOMException( 36 exception_state.ThrowDOMException(
37 kSyntaxError, "\"" + name + "\" is not a valid custom element name"); 37 kSyntaxError, "\"" + name + "\" is not a valid custom element name");
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 upgrade_candidates_->erase(it); 305 upgrade_candidates_->erase(it);
306 306
307 Document* document = owner_->document(); 307 Document* document = owner_->document();
308 if (!document) 308 if (!document)
309 return; 309 return;
310 310
311 sorter.Sorted(elements, document); 311 sorter.Sorted(elements, document);
312 } 312 }
313 313
314 } // namespace blink 314 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698