Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Unified Diff: Source/core/dom/Document.cpp

Issue 301233010: Oilpan: use transition types for remaining RefPtr<Document>s in dom/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698