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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElement.h

Issue 2054433002: Implement "create an element" when sync for Custom Element V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-ce
Patch Set: haraken review and rebase Created 4 years, 6 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 #ifndef CustomElement_h 5 #ifndef CustomElement_h
6 #define CustomElement_h 6 #define CustomElement_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/HTMLNames.h" 9 #include "core/HTMLNames.h"
10 #include "core/dom/Element.h" 10 #include "core/dom/Element.h"
(...skipping 19 matching lines...) Expand all
30 static CustomElementsRegistry* registry(const Element&); 30 static CustomElementsRegistry* registry(const Element&);
31 static CustomElementsRegistry* registry(const Document&); 31 static CustomElementsRegistry* registry(const Document&);
32 32
33 static CustomElementDefinition* definitionForElement(const Element&); 33 static CustomElementDefinition* definitionForElement(const Element&);
34 34
35 static bool isValidName(const AtomicString& name); 35 static bool isValidName(const AtomicString& name);
36 36
37 static bool shouldCreateCustomElement(Document&, const AtomicString& localNa me); 37 static bool shouldCreateCustomElement(Document&, const AtomicString& localNa me);
38 static bool shouldCreateCustomElement(Document&, const QualifiedName&); 38 static bool shouldCreateCustomElement(Document&, const QualifiedName&);
39 39
40 static HTMLElement* createCustomElement(Document&, const AtomicString& local Name, CreateElementFlags); 40 static HTMLElement* createCustomElementSync(Document&, const AtomicString& l ocalName, ExceptionState&);
41 static HTMLElement* createCustomElement(Document&, const QualifiedName&, Cre ateElementFlags); 41 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&, ExceptionState&);
42 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&) ;
43 static HTMLElement* createCustomElementAsync(Document&, const QualifiedName& );
42 44
43 static void enqueueConnectedCallback(Element*); 45 static void enqueueConnectedCallback(Element*);
44 static void enqueueDisconnectedCallback(Element*); 46 static void enqueueDisconnectedCallback(Element*);
45 static void enqueueAttributeChangedCallback(Element*, const QualifiedName&, 47 static void enqueueAttributeChangedCallback(Element*, const QualifiedName&,
46 const AtomicString& oldValue, const AtomicString& newValue); 48 const AtomicString& oldValue, const AtomicString& newValue);
47 49
48 private: 50 private:
49 static HTMLElement* createCustomElementAsync(Document&, CustomElementDefinit ion&, const QualifiedName&); 51 static HTMLElement* createUndefinedElement(Document&, const QualifiedName&);
50
51 }; 52 };
52 53
53 } // namespace blink 54 } // namespace blink
54 55
55 #endif // CustomElement_h 56 #endif // CustomElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.idl ('k') | third_party/WebKit/Source/core/dom/custom/CustomElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698