Index: Source/core/dom/custom/CustomElement.cpp |
diff --git a/Source/core/dom/custom/CustomElement.cpp b/Source/core/dom/custom/CustomElement.cpp |
index f33e612c14ece65b1f2e32be78c5f04e4134cec5..a2a150cc0d57e7c56f0dcd2b9e9b980c99114a42 100644 |
--- a/Source/core/dom/custom/CustomElement.cpp |
+++ b/Source/core/dom/custom/CustomElement.cpp |
@@ -135,7 +135,7 @@ void CustomElement::attributeDidChange(Element* element, const AtomicString& nam |
void CustomElement::didEnterDocument(Element* element, const Document& document) |
{ |
ASSERT(element->customElementState() == Element::Upgraded); |
- if (!document.defaultView()) |
+ if (!document.domWindow()) |
return; |
CustomElementCallbackScheduler::scheduleEnteredViewCallback(definitionFor(element)->callbacks(), element); |
} |
@@ -143,7 +143,7 @@ void CustomElement::didEnterDocument(Element* element, const Document& document) |
void CustomElement::didLeaveDocument(Element* element, const Document& document) |
{ |
ASSERT(element->customElementState() == Element::Upgraded); |
- if (!document.defaultView()) |
+ if (!document.domWindow()) |
return; |
CustomElementCallbackScheduler::scheduleLeftViewCallback(definitionFor(element)->callbacks(), element); |
} |