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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentWriter.cpp

Issue 1853743005: Oilpan: Remove WillBe types (part 13) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/Source/core/loader/DocumentWriter.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentWriter.cpp b/third_party/WebKit/Source/core/loader/DocumentWriter.cpp
index f6f0067cf32d1ff968b1731465939e90b7c6bcd0..c511b009516d8990fb0a1e78568077d87a6a9fde 100644
--- a/third_party/WebKit/Source/core/loader/DocumentWriter.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentWriter.cpp
@@ -43,9 +43,9 @@
namespace blink {
-PassRefPtrWillBeRawPtr<DocumentWriter> DocumentWriter::create(Document* document, ParserSynchronizationPolicy parsingPolicy, const AtomicString& mimeType, const AtomicString& encoding)
+RawPtr<DocumentWriter> DocumentWriter::create(Document* document, ParserSynchronizationPolicy parsingPolicy, const AtomicString& mimeType, const AtomicString& encoding)
{
- return adoptRefWillBeNoop(new DocumentWriter(document, parsingPolicy, mimeType, encoding));
+ return new DocumentWriter(document, parsingPolicy, mimeType, encoding);
}
DocumentWriter::DocumentWriter(Document* document, ParserSynchronizationPolicy parserSyncPolicy, const AtomicString& mimeType, const AtomicString& encoding)
@@ -100,7 +100,7 @@ void DocumentWriter::end()
// http://bugs.webkit.org/show_bug.cgi?id=10854
// The frame's last ref may be removed and it can be deleted by checkCompleted(),
// so we'll add a protective refcount
- RefPtrWillBeRawPtr<LocalFrame> protect(m_document->frame());
+ RawPtr<LocalFrame> protect(m_document->frame());
if (!m_parser)
return;
@@ -111,7 +111,7 @@ void DocumentWriter::end()
}
// finish() can result replacing DocumentLoader::m_writer.
- RefPtrWillBeRawPtr<DocumentWriter> protectingThis(this);
+ RawPtr<DocumentWriter> protectingThis(this);
m_parser->finish();
m_parser = nullptr;
m_document = nullptr;

Powered by Google App Engine
This is Rietveld 408576698