Index: Source/core/dom/custom/CustomElementCallbackInvocation.cpp |
diff --git a/Source/core/dom/custom/CustomElementCallbackInvocation.cpp b/Source/core/dom/custom/CustomElementCallbackInvocation.cpp |
index 119fa1ff0c98ede610416490f960cd5ab94b3ad2..7263ffc011bc45aba57cca4ed98b6e0528c12a70 100644 |
--- a/Source/core/dom/custom/CustomElementCallbackInvocation.cpp |
+++ b/Source/core/dom/custom/CustomElementCallbackInvocation.cpp |
@@ -50,7 +50,7 @@ private: |
void CreatedInvocation::dispatch(Element* element) |
{ |
- if (element->inDocument() && element->document().defaultView()) |
+ if (element->inDocument() && element->document().domWindow()) |
CustomElementCallbackScheduler::scheduleEnteredViewCallback(callbacks(), element); |
callbacks()->created(element); |
} |