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

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

Issue 2149893003: Rename Node::inShadowIncludingDocument() to Node::isConnected() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 5 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/V0CustomElementCallbackInvocation.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementCallbackInvocation.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElementCallbackInvocation.cpp
index e494d750d4d874cde148f766e7703e70203436d5..4108cb5e3bd7be736a16e643f37cbf578035300b 100644
--- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementCallbackInvocation.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementCallbackInvocation.cpp
@@ -106,7 +106,7 @@ private:
void CreatedInvocation::dispatch(Element* element)
{
- if (element->inShadowIncludingDocument() && element->document().domWindow())
+ if (element->isConnected() && element->document().domWindow())
V0CustomElementScheduler::scheduleCallback(callbacks(), element, V0CustomElementLifecycleCallbacks::AttachedCallback);
callbacks()->created(element);
}

Powered by Google App Engine
This is Rietveld 408576698