| Index: Source/core/dom/ContainerNode.cpp
|
| diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
|
| index caf75b145a1878cf14f938375842cc74ff8e5fc6..406ca8b737d8ddfc56f8db3c601745c74b421dcf 100644
|
| --- a/Source/core/dom/ContainerNode.cpp
|
| +++ b/Source/core/dom/ContainerNode.cpp
|
| @@ -1028,8 +1028,8 @@ static void dispatchChildInsertionEvents(Node& child)
|
|
|
| ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden());
|
|
|
| - RefPtr<Node> c(child);
|
| - RefPtr<Document> document(child.document());
|
| + RefPtrWillBeRawPtr<Node> c(child);
|
| + RefPtrWillBeRawPtr<Document> document(child.document());
|
|
|
| if (c->parentNode() && document->hasListenerType(Document::DOMNODEINSERTED_LISTENER))
|
| c->dispatchScopedEvent(MutationEvent::create(EventTypeNames::DOMNodeInserted, true, c->parentNode()));
|
| @@ -1052,8 +1052,8 @@ static void dispatchChildRemovalEvents(Node& child)
|
|
|
| InspectorInstrumentation::willRemoveDOMNode(&child);
|
|
|
| - RefPtr<Node> c(child);
|
| - RefPtr<Document> document(child.document());
|
| + RefPtrWillBeRawPtr<Node> c(child);
|
| + RefPtrWillBeRawPtr<Document> document(child.document());
|
|
|
| // dispatch pre-removal mutation events
|
| if (c->parentNode() && document->hasListenerType(Document::DOMNODEREMOVED_LISTENER)) {
|
|
|