Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(877)

Unified Diff: Source/core/html/FormDataList.cpp

Issue 176853004: Oilpan: move core/fileapi to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698