| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 298c602884fe7b76f02d5a09127feda70e1e4d00..1311a31a56f41844785cc68596acc8948467e56f 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -2645,7 +2645,7 @@ bool Document::dispatchBeforeUnloadEvent(Chrome& chrome, bool& didAllowNavigatio
|
| if (!body())
|
| return true;
|
|
|
| - RefPtr<Document> protect(this);
|
| + RefPtrWillBeRawPtr<Document> protect(this);
|
|
|
| RefPtrWillBeRawPtr<BeforeUnloadEvent> beforeUnloadEvent = BeforeUnloadEvent::create();
|
| m_loadEventProgress = BeforeUnloadEventInProgress;
|
| @@ -2671,7 +2671,7 @@ bool Document::dispatchBeforeUnloadEvent(Chrome& chrome, bool& didAllowNavigatio
|
|
|
| void Document::dispatchUnloadEvents()
|
| {
|
| - RefPtr<Document> protect(this);
|
| + RefPtrWillBeRawPtr<Document> protect(this);
|
| if (m_parser)
|
| m_parser->stopParsing();
|
|
|
| @@ -4654,7 +4654,7 @@ void Document::finishedParsing()
|
| // The loader's finishedParsing() method may invoke script that causes this object to
|
| // be dereferenced (when this document is in an iframe and the onload causes the iframe's src to change).
|
| // Keep it alive until we are done.
|
| - RefPtr<Document> protect(this);
|
| + RefPtrWillBeRawPtr<Document> protect(this);
|
|
|
| if (RefPtr<LocalFrame> f = frame()) {
|
| // Don't update the render tree if we haven't requested the main resource yet to avoid
|
|
|