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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.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/CustomElementDefinition.h
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h b/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h
index bf64d975ed8eafca5035b4ee19ab73f9e68fcfbc..e4057f24944d2c8676925a6256953832e5ce9098 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.h
@@ -16,6 +16,7 @@
namespace blink {
+class Document;
class Element;
class ExceptionState;
class HTMLElement;
@@ -63,14 +64,16 @@ public:
virtual void runConnectedCallback(Element*) = 0;
virtual void runDisconnectedCallback(Element*) = 0;
- virtual void runAdoptedCallback(Element*) = 0;
+ virtual void runAdoptedCallback(
+ Element*, Document* oldOwner, Document* newOwner) = 0;
virtual void runAttributeChangedCallback(Element*, const QualifiedName&,
const AtomicString& oldValue, const AtomicString& newValue) = 0;
void enqueueUpgradeReaction(Element*);
void enqueueConnectedCallback(Element*);
void enqueueDisconnectedCallback(Element*);
- void enqueueAdoptedCallback(Element*);
+ void enqueueAdoptedCallback(
+ Element*, Document* oldOwner, Document* newOwner);
void enqueueAttributeChangedCallback(Element*, const QualifiedName&,
const AtomicString& oldValue, const AtomicString& newValue);

Powered by Google App Engine
This is Rietveld 408576698