Index: Source/core/html/FormDataList.cpp |
diff --git a/Source/core/html/FormDataList.cpp b/Source/core/html/FormDataList.cpp |
index b564d2cc1021937fb99f861a154737020ea16a7c..6f7d69df46a2af001afb4b562aab534956f0f971 100644 |
--- a/Source/core/html/FormDataList.cpp |
+++ b/Source/core/html/FormDataList.cpp |
@@ -40,10 +40,10 @@ void FormDataList::appendString(const String& string) |
void FormDataList::appendString(const CString& string) |
{ |
- m_items.append(string); |
+ m_items.append(Item(string)); |
Mads Ager (chromium)
2014/02/26 11:00:29
It can no longer use the implicit conversion?
sof
2014/02/26 21:51:25
It can; temporary change not fully backed out.
|
} |
-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) { |
@@ -145,4 +145,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 |