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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElement.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/CustomElement.h" 5 #include "core/dom/custom/CustomElement.h"
6 6
7 #include "core/HTMLElementFactory.h" 7 #include "core/HTMLElementFactory.h"
8 #include "core/HTMLElementTypeHelpers.h" 8 #include "core/HTMLElementTypeHelpers.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/dom/QualifiedName.h" 10 #include "core/dom/QualifiedName.h"
11 #include "core/dom/custom/CEReactionsScope.h" 11 #include "core/dom/custom/CEReactionsScope.h"
12 #include "core/dom/custom/CustomElementDefinition.h" 12 #include "core/dom/custom/CustomElementDefinition.h"
13 #include "core/dom/custom/CustomElementReactionStack.h" 13 #include "core/dom/custom/CustomElementReactionStack.h"
14 #include "core/dom/custom/CustomElementRegistry.h" 14 #include "core/dom/custom/CustomElementRegistry.h"
15 #include "core/dom/custom/V0CustomElement.h" 15 #include "core/dom/custom/V0CustomElement.h"
16 #include "core/dom/custom/V0CustomElementRegistrationContext.h" 16 #include "core/dom/custom/V0CustomElementRegistrationContext.h"
17 #include "core/frame/LocalDOMWindow.h" 17 #include "core/frame/LocalDOMWindow.h"
18 #include "core/html/HTMLElement.h" 18 #include "core/html/HTMLElement.h"
19 #include "core/html/HTMLUnknownElement.h" 19 #include "core/html/HTMLUnknownElement.h"
20 #include "wtf/text/AtomicStringHash.h" 20 #include "platform/wtf/text/AtomicStringHash.h"
21 21
22 namespace blink { 22 namespace blink {
23 23
24 CustomElementRegistry* CustomElement::Registry(const Element& element) { 24 CustomElementRegistry* CustomElement::Registry(const Element& element) {
25 return Registry(element.GetDocument()); 25 return Registry(element.GetDocument());
26 } 26 }
27 27
28 CustomElementRegistry* CustomElement::Registry(const Document& document) { 28 CustomElementRegistry* CustomElement::Registry(const Document& document) {
29 if (LocalDOMWindow* window = document.ExecutingWindow()) 29 if (LocalDOMWindow* window = document.ExecutingWindow())
30 return window->customElements(); 30 return window->customElements();
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 if (!registry) 258 if (!registry)
259 return; 259 return;
260 if (CustomElementDefinition* definition = registry->DefinitionFor( 260 if (CustomElementDefinition* definition = registry->DefinitionFor(
261 CustomElementDescriptor(element->localName(), element->localName()))) 261 CustomElementDescriptor(element->localName(), element->localName())))
262 definition->EnqueueUpgradeReaction(element); 262 definition->EnqueueUpgradeReaction(element);
263 else 263 else
264 registry->AddCandidate(element); 264 registry->AddCandidate(element);
265 } 265 }
266 266
267 } // namespace blink 267 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698