Index: Source/bindings/v8/SerializedScriptValue.cpp |
diff --git a/Source/bindings/v8/SerializedScriptValue.cpp b/Source/bindings/v8/SerializedScriptValue.cpp |
index 1a14881f71fcfea0e32f0045f23a23679038f60b..f9e6d66e5fd5edd91747f7f1f5deb7caffcaeda0 100644 |
--- a/Source/bindings/v8/SerializedScriptValue.cpp |
+++ b/Source/bindings/v8/SerializedScriptValue.cpp |
@@ -62,6 +62,7 @@ |
#include "core/fileapi/FileList.h" |
#include "core/html/ImageData.h" |
#include "core/html/canvas/DataView.h" |
+#include "heap/Handle.h" |
#include "platform/SharedBuffer.h" |
#include "wtf/ArrayBuffer.h" |
#include "wtf/ArrayBufferContents.h" |
@@ -1855,7 +1856,7 @@ private: |
return false; |
if (!doReadUint64(&size)) |
return false; |
- RefPtr<Blob> blob = Blob::create(getOrCreateBlobDataHandle(uuid, type, size)); |
+ RefPtrWillBeRawPtr<Blob> blob = Blob::create(getOrCreateBlobDataHandle(uuid, type, size)); |
*value = toV8(blob.release(), v8::Handle<v8::Object>(), m_isolate); |
return true; |
} |
@@ -1878,7 +1879,7 @@ private: |
bool readFile(v8::Handle<v8::Value>* value) |
{ |
- RefPtr<File> file = doReadFileHelper(); |
+ RefPtrWillBeRawPtr<File> file = doReadFileHelper(); |
if (!file) |
return false; |
*value = toV8(file.release(), v8::Handle<v8::Object>(), m_isolate); |
@@ -1892,9 +1893,9 @@ private: |
uint32_t length; |
if (!doReadUint32(&length)) |
return false; |
- RefPtr<FileList> fileList = FileList::create(); |
+ RefPtrWillBeRawPtr<FileList> fileList = FileList::create(); |
for (unsigned i = 0; i < length; ++i) { |
- RefPtr<File> file = doReadFileHelper(); |
+ RefPtrWillBeRawPtr<File> file = doReadFileHelper(); |
if (!file) |
return false; |
fileList->append(file.release()); |
@@ -1903,7 +1904,7 @@ private: |
return true; |
} |
- PassRefPtr<File> doReadFileHelper() |
+ PassRefPtrWillBeRawPtr<File> doReadFileHelper() |
{ |
if (m_version < 3) |
return nullptr; |