Index: Source/core/fileapi/FileReader.cpp |
diff --git a/Source/core/fileapi/FileReader.cpp b/Source/core/fileapi/FileReader.cpp |
index 2e0109854e8ab9b41c05500c9ffc135dd7088b96..5fb2467de1b2eaed402fc5dc6f6667e90f7f25cc 100644 |
--- a/Source/core/fileapi/FileReader.cpp |
+++ b/Source/core/fileapi/FileReader.cpp |
@@ -132,9 +132,9 @@ private: |
HashSet<FileReader*> m_runningReaders; |
}; |
-PassRefPtr<FileReader> FileReader::create(ExecutionContext* context) |
+PassRefPtrWillBeRawPtr<FileReader> FileReader::create(ExecutionContext* context) |
{ |
- RefPtr<FileReader> fileReader(adoptRef(new FileReader(context))); |
+ RefPtrWillBeRawPtr<FileReader> fileReader(adoptRefWillBeRefCountedGarbageCollected(new FileReader(context))); |
fileReader->suspendIfNeeded(); |
return fileReader.release(); |
} |
@@ -404,4 +404,9 @@ String FileReader::stringResult() |
return m_loader->stringResult(); |
} |
+void FileReader::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_error); |
+} |
+ |
} // namespace WebCore |