Index: Source/core/dom/CustomElement.cpp |
diff --git a/Source/core/dom/CustomElement.cpp b/Source/core/dom/CustomElement.cpp |
index 0529882b8d4e0f1fd3006eca00ee002fe7188b60..8c27b0fee45008643225dfef6b88196fe26f79b9 100644 |
--- a/Source/core/dom/CustomElement.cpp |
+++ b/Source/core/dom/CustomElement.cpp |
@@ -132,18 +132,18 @@ void CustomElement::attributeDidChange(Element* element, const AtomicString& nam |
CustomElementCallbackScheduler::scheduleAttributeChangedCallback(definitionFor(element)->callbacks(), element, name, oldValue, newValue); |
} |
-void CustomElement::didEnterDocument(Element* element, Document* document) |
+void CustomElement::didEnterDocument(Element* element, const Document& document) |
{ |
ASSERT(element->customElementState() == Element::Upgraded); |
- if (!document->defaultView()) |
+ if (!document.defaultView()) |
return; |
CustomElementCallbackScheduler::scheduleEnteredDocumentCallback(definitionFor(element)->callbacks(), element); |
} |
-void CustomElement::didLeaveDocument(Element* element, Document* document) |
+void CustomElement::didLeaveDocument(Element* element, const Document& document) |
{ |
ASSERT(element->customElementState() == Element::Upgraded); |
- if (!document->defaultView()) |
+ if (!document.defaultView()) |
return; |
CustomElementCallbackScheduler::scheduleLeftDocumentCallback(definitionFor(element)->callbacks(), element); |
} |