Index: Source/modules/filesystem/FileWriter.cpp |
diff --git a/Source/modules/filesystem/FileWriter.cpp b/Source/modules/filesystem/FileWriter.cpp |
index a22fac948d30ba7d7b9648af4fd849b991d356b8..b67ab1274bcae937ce02609af1030e80bef276b3 100644 |
--- a/Source/modules/filesystem/FileWriter.cpp |
+++ b/Source/modules/filesystem/FileWriter.cpp |
@@ -44,9 +44,9 @@ namespace WebCore { |
static const int kMaxRecursionDepth = 3; |
static const double progressNotificationIntervalMS = 50; |
-PassRefPtr<FileWriter> FileWriter::create(ExecutionContext* context) |
+PassRefPtrWillBeRawPtr<FileWriter> FileWriter::create(ExecutionContext* context) |
{ |
- RefPtr<FileWriter> fileWriter(adoptRef(new FileWriter(context))); |
+ RefPtrWillBeRawPtr<FileWriter> fileWriter(adoptRefWillBeRefCountedGarbageCollected(new FileWriter(context))); |
fileWriter->suspendIfNeeded(); |
return fileWriter.release(); |
} |
@@ -319,4 +319,11 @@ void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionState& except |
m_error = FileError::create(errorCode); |
} |
+void FileWriter::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_error); |
+ visitor->trace(m_blobBeingWritten); |
+ FileWriterBase::trace(visitor); |
+} |
+ |
} // namespace WebCore |