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

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

Issue 2299033005: Pass the old and new owner documents to the adoptedCallback. (Closed)
Patch Set: WTF_ARRAY_LENGTH Created 4 years, 3 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 29 matching lines...) Expand all
40 static HTMLElement* createCustomElementSync(Document&, const AtomicString& l ocalName, ExceptionState&); 40 static HTMLElement* createCustomElementSync(Document&, const AtomicString& l ocalName, ExceptionState&);
41 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&, ExceptionState&); 41 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&, ExceptionState&);
42 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&) ; 42 static HTMLElement* createCustomElementSync(Document&, const QualifiedName&) ;
43 static HTMLElement* createCustomElementAsync(Document&, const QualifiedName& ); 43 static HTMLElement* createCustomElementAsync(Document&, const QualifiedName& );
44 44
45 static HTMLElement* createFailedElement(Document&, const QualifiedName&); 45 static HTMLElement* createFailedElement(Document&, const QualifiedName&);
46 46
47 static void enqueue(Element*, CustomElementReaction*); 47 static void enqueue(Element*, CustomElementReaction*);
48 static void enqueueConnectedCallback(Element*); 48 static void enqueueConnectedCallback(Element*);
49 static void enqueueDisconnectedCallback(Element*); 49 static void enqueueDisconnectedCallback(Element*);
50 static void enqueueAdoptedCallback(Element*); 50 static void enqueueAdoptedCallback(
51 Element*, Document* oldOwner, Document* newOwner);
51 static void enqueueAttributeChangedCallback(Element*, const QualifiedName&, 52 static void enqueueAttributeChangedCallback(Element*, const QualifiedName&,
52 const AtomicString& oldValue, const AtomicString& newValue); 53 const AtomicString& oldValue, const AtomicString& newValue);
53 54
54 static void tryToUpgrade(Element*); 55 static void tryToUpgrade(Element*);
55 56
56 private: 57 private:
57 static HTMLElement* createUndefinedElement(Document&, const QualifiedName&); 58 static HTMLElement* createUndefinedElement(Document&, const QualifiedName&);
58 }; 59 };
59 60
60 } // namespace blink 61 } // namespace blink
61 62
62 #endif // CustomElement_h 63 #endif // CustomElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/TreeScopeAdopter.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