Index: Source/core/html/FormDataList.cpp |
diff --git a/Source/core/html/FormDataList.cpp b/Source/core/html/FormDataList.cpp |
index 2270f03e60fb9dae1bb58c92d4bad5ab98773559..61127d3a3071e10d1c4a616abdc5b6071642512c 100644 |
--- a/Source/core/html/FormDataList.cpp |
+++ b/Source/core/html/FormDataList.cpp |
@@ -43,7 +43,7 @@ void FormDataList::appendString(const CString& string) |
m_items.append(string); |
} |
-void FormDataList::appendBlob(PassRefPtr<Blob> blob, const String& filename) |
+void FormDataList::appendBlob(PassRefPtrWillBeRawPtr<Blob> blob, const String& filename) |
{ |
m_items.append(Item(blob, filename)); |
} |
@@ -69,7 +69,7 @@ void FormDataList::appendKeyValuePairItemsTo(FormData* formData, const WTF::Text |
Vector<char> encodedData; |
- const Vector<FormDataList::Item>& items = this->items(); |
+ const WillBeHeapVector<Item>& items = this->items(); |
size_t formDataListSize = items.size(); |
ASSERT(!(formDataListSize % 2)); |
for (size_t i = 0; i < formDataListSize; i += 2) { |
@@ -140,4 +140,14 @@ void FormDataList::appendKeyValuePairItemsTo(FormData* formData, const WTF::Text |
formData->appendData(encodedData.data(), encodedData.size()); |
} |
+void FormDataList::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_items); |
+} |
+ |
+void FormDataList::Item::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_blob); |
+} |
+ |
} // namespace |