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

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

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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/CustomElementCallbackInvocation.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
index 1a1c7afc83d1dec7adab267a98cbf32cd671aaab..cb12566238d31f0e6bf5a1739814c784fbb87237 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
@@ -106,7 +106,7 @@ private:
void CreatedInvocation::dispatch(Element* element)
{
- if (element->inDocument() && element->document().domWindow())
+ if (element->inShadowIncludingDocument() && element->document().domWindow())
CustomElementScheduler::scheduleCallback(callbacks(), element, CustomElementLifecycleCallbacks::AttachedCallback);
callbacks()->created(element);
}

Powered by Google App Engine
This is Rietveld 408576698