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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElement.cpp

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/CustomElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
index 83ea081e5c28ee8f238f89efccea556ac7a1932e..d27be1a10caf1835321b96d193b2da0335c40918 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
@@ -214,12 +214,13 @@ void CustomElement::enqueueDisconnectedCallback(Element* element)
definition->enqueueDisconnectedCallback(element);
}
-void CustomElement::enqueueAdoptedCallback(Element* element)
+void CustomElement::enqueueAdoptedCallback(
+ Element* element, Document* oldOwner, Document* newOwner)
{
DCHECK_EQ(element->getCustomElementState(), CustomElementState::Custom);
CustomElementDefinition* definition = definitionForElementWithoutCheck(*element);
if (definition->hasAdoptedCallback())
- definition->enqueueAdoptedCallback(element);
+ definition->enqueueAdoptedCallback(element, oldOwner, newOwner);
}
void CustomElement::enqueueAttributeChangedCallback(Element* element,

Powered by Google App Engine
This is Rietveld 408576698