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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElementAdoptedCallbackReaction.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 CustomElementAdoptedCallbackReaction_h 5 #ifndef CustomElementAdoptedCallbackReaction_h
6 #define CustomElementAdoptedCallbackReaction_h 6 #define CustomElementAdoptedCallbackReaction_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/custom/CustomElementReaction.h" 9 #include "core/dom/custom/CustomElementReaction.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "wtf/Noncopyable.h" 11 #include "wtf/Noncopyable.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class Document;
16
15 class CORE_EXPORT CustomElementAdoptedCallbackReaction final 17 class CORE_EXPORT CustomElementAdoptedCallbackReaction final
16 : public CustomElementReaction { 18 : public CustomElementReaction {
17 WTF_MAKE_NONCOPYABLE(CustomElementAdoptedCallbackReaction); 19 WTF_MAKE_NONCOPYABLE(CustomElementAdoptedCallbackReaction);
18 public: 20 public:
19 CustomElementAdoptedCallbackReaction(CustomElementDefinition*); 21 CustomElementAdoptedCallbackReaction(
22 CustomElementDefinition*, Document* oldOwner, Document* newOwner);
23
24 DECLARE_VIRTUAL_TRACE();
20 25
21 private: 26 private:
22 void invoke(Element*) override; 27 void invoke(Element*) override;
28
29 Member<Document> m_oldOwner;
30 Member<Document> m_newOwner;
23 }; 31 };
24 32
25 } // namespace blink 33 } // namespace blink
26 34
27 #endif // CustomElementAdoptedCallbackReaction_h 35 #endif // CustomElementAdoptedCallbackReaction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698