| Index: Source/core/clipboard/DataObjectItem.cpp
|
| diff --git a/Source/core/clipboard/DataObjectItem.cpp b/Source/core/clipboard/DataObjectItem.cpp
|
| index 896a70fb54b7cebb96f728b9b8e2f07a1438610f..10fc8314dfe9d7a8243f598d60fb3ca9cad9b5c5 100644
|
| --- a/Source/core/clipboard/DataObjectItem.cpp
|
| +++ b/Source/core/clipboard/DataObjectItem.cpp
|
| @@ -48,7 +48,7 @@ PassRefPtrWillBeRawPtr<DataObjectItem> DataObjectItem::createFromString(const St
|
| return item.release();
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<DataObjectItem> DataObjectItem::createFromFile(PassRefPtr<File> file)
|
| +PassRefPtrWillBeRawPtr<DataObjectItem> DataObjectItem::createFromFile(PassRefPtrWillBeRawPtr<File> file)
|
| {
|
| RefPtrWillBeRawPtr<DataObjectItem> item = adoptRefWillBeNoop(new DataObjectItem(FileKind, file->type()));
|
| item->m_file = file;
|
| @@ -102,14 +102,14 @@ DataObjectItem::DataObjectItem(Kind kind, const String& type, uint64_t sequenceN
|
| {
|
| }
|
|
|
| -PassRefPtr<Blob> DataObjectItem::getAsFile() const
|
| +PassRefPtrWillBeRawPtr<Blob> DataObjectItem::getAsFile() const
|
| {
|
| if (kind() != FileKind)
|
| return nullptr;
|
|
|
| if (m_source == InternalSource) {
|
| if (m_file)
|
| - return m_file;
|
| + return m_file.get();
|
| ASSERT(m_sharedBuffer);
|
| // FIXME: This code is currently impossible--we never populate m_sharedBuffer when dragging
|
| // in. At some point though, we may need to support correctly converting a shared buffer
|
| @@ -172,5 +172,10 @@ bool DataObjectItem::isFilename() const
|
| return m_kind == FileKind && m_file;
|
| }
|
|
|
| +void DataObjectItem::trace(Visitor* visitor)
|
| +{
|
| + visitor->trace(m_file);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|
|
|