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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/custom/CustomElementAdoptedCallbackReaction.h
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementAdoptedCallbackReaction.h b/third_party/WebKit/Source/core/dom/custom/CustomElementAdoptedCallbackReaction.h
index 717c67b5b224a43be58d718bb511f43e189893e8..83c7963b22a00c87da5a70241a9760441f19ece4 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementAdoptedCallbackReaction.h
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementAdoptedCallbackReaction.h
@@ -12,14 +12,22 @@
namespace blink {
+class Document;
+
class CORE_EXPORT CustomElementAdoptedCallbackReaction final
: public CustomElementReaction {
WTF_MAKE_NONCOPYABLE(CustomElementAdoptedCallbackReaction);
public:
- CustomElementAdoptedCallbackReaction(CustomElementDefinition*);
+ CustomElementAdoptedCallbackReaction(
+ CustomElementDefinition*, Document* oldOwner, Document* newOwner);
+
+ DECLARE_VIRTUAL_TRACE();
private:
void invoke(Element*) override;
+
+ Member<Document> m_oldOwner;
+ Member<Document> m_newOwner;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698