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

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

Issue 2443543002: createElement should not transmit exceptions but report them. (Closed)
Patch Set: Rebaseline tests. Created 4 years, 1 month 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 } 60 }
61 61
62 return !isHyphenatedSpecElementName(name); 62 return !isHyphenatedSpecElementName(name);
63 } 63 }
64 64
65 static bool shouldCreateCustomElement(const AtomicString& localName); 65 static bool shouldCreateCustomElement(const AtomicString& localName);
66 static bool shouldCreateCustomElement(const QualifiedName&); 66 static bool shouldCreateCustomElement(const QualifiedName&);
67 67
68 static HTMLElement* createCustomElementSync(Document&, 68 static HTMLElement* createCustomElementSync(Document&,
69 const AtomicString& localName, 69 const AtomicString& localName);
70 ExceptionState&);
71 static HTMLElement* createCustomElementSync(Document&,
72 const QualifiedName&,
73 ExceptionState&);
74 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&); 70 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&);
75 static HTMLElement* createCustomElementAsync(Document&, const QualifiedName&); 71 static HTMLElement* createCustomElementAsync(Document&, const QualifiedName&);
76 72
77 static HTMLElement* createFailedElement(Document&, const QualifiedName&); 73 static HTMLElement* createFailedElement(Document&, const QualifiedName&);
78 74
79 static void enqueue(Element*, CustomElementReaction*); 75 static void enqueue(Element*, CustomElementReaction*);
80 static void enqueueConnectedCallback(Element*); 76 static void enqueueConnectedCallback(Element*);
81 static void enqueueDisconnectedCallback(Element*); 77 static void enqueueDisconnectedCallback(Element*);
82 static void enqueueAdoptedCallback(Element*, 78 static void enqueueAdoptedCallback(Element*,
83 Document* oldOwner, 79 Document* oldOwner,
(...skipping 10 matching lines...) Expand all
94 // like font-face in SVG. The custom elements spec explicitly 90 // like font-face in SVG. The custom elements spec explicitly
95 // disallows these as custom element names. 91 // disallows these as custom element names.
96 // https://html.spec.whatwg.org/#valid-custom-element-name 92 // https://html.spec.whatwg.org/#valid-custom-element-name
97 static bool isHyphenatedSpecElementName(const AtomicString&); 93 static bool isHyphenatedSpecElementName(const AtomicString&);
98 static HTMLElement* createUndefinedElement(Document&, const QualifiedName&); 94 static HTMLElement* createUndefinedElement(Document&, const QualifiedName&);
99 }; 95 };
100 96
101 } // namespace blink 97 } // namespace blink
102 98
103 #endif // CustomElement_h 99 #endif // CustomElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('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