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

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: Prefer ExceptionState over throw 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 return isValidName(element.localName()) 48 return isValidName(element.localName())
49 && element.namespaceURI() == HTMLNames::xhtmlNamespaceURI; 49 && element.namespaceURI() == HTMLNames::xhtmlNamespaceURI;
50 } 50 }
51 51
52 static bool isValidName(const AtomicString& name); 52 static bool isValidName(const AtomicString& name);
53 53
54 static bool shouldCreateCustomElement(Document&, const AtomicString& localNa me); 54 static bool shouldCreateCustomElement(Document&, const AtomicString& localNa me);
55 static bool shouldCreateCustomElement(Document&, const QualifiedName&); 55 static bool shouldCreateCustomElement(Document&, const QualifiedName&);
56 56
57 static HTMLElement* createCustomElement(Document&, const AtomicString& local Name, CreateElementFlags); 57 static HTMLElement* createCustomElement(Document&, const AtomicString& local Name, CreateElementFlags);
58 static HTMLElement* createCustomElement(Document&, const AtomicString& local Name, CreateElementFlags, ExceptionState&);
58 static HTMLElement* createCustomElement(Document&, const QualifiedName&, Cre ateElementFlags); 59 static HTMLElement* createCustomElement(Document&, const QualifiedName&, Cre ateElementFlags);
60 static HTMLElement* createCustomElement(Document&, const QualifiedName&, Cre ateElementFlags, ExceptionState&);
59 61
60 static void enqueueUpgradeReaction(Element*, CustomElementDefinition*); 62 static void enqueueUpgradeReaction(Element*, CustomElementDefinition*);
61 63
62 private: 64 private:
65 static HTMLElement* createCustomElement(Document&, const QualifiedName&, Cre ateElementFlags, ExceptionState*);
dominicc (has gone to gerrit) 2016/06/10 06:13:28 I don't like how things have ended up here. You ha
kojii 2016/06/10 19:01:45 Done. It used to use CreatedByParser too, but that
63 static HTMLElement* createCustomElementAsync(Document&, CustomElementDefinit ion&, const QualifiedName&); 66 static HTMLElement* createCustomElementAsync(Document&, CustomElementDefinit ion&, const QualifiedName&);
64 }; 67 };
65 68
66 } // namespace blink 69 } // namespace blink
67 70
68 #endif // CustomElement_h 71 #endif // CustomElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698