| Index: third_party/WebKit/Source/platform/network/EncodedFormData.cpp
|
| diff --git a/third_party/WebKit/Source/platform/network/EncodedFormData.cpp b/third_party/WebKit/Source/platform/network/EncodedFormData.cpp
|
| index 3e279dc954e52d63383afbd66a3d36fad9656192..04a2880888942330b78e4f86f962329226162ef6 100644
|
| --- a/third_party/WebKit/Source/platform/network/EncodedFormData.cpp
|
| +++ b/third_party/WebKit/Source/platform/network/EncodedFormData.cpp
|
| @@ -108,9 +108,9 @@ PassRefPtr<EncodedFormData> EncodedFormData::deepCopy() const {
|
| }
|
|
|
| void EncodedFormData::appendData(const void* data, size_t size) {
|
| - if (m_elements.isEmpty() || m_elements.last().m_type != FormDataElement::data)
|
| + if (m_elements.isEmpty() || m_elements.back().m_type != FormDataElement::data)
|
| m_elements.append(FormDataElement());
|
| - FormDataElement& e = m_elements.last();
|
| + FormDataElement& e = m_elements.back();
|
| size_t oldSize = e.m_data.size();
|
| e.m_data.grow(oldSize + size);
|
| memcpy(e.m_data.data() + oldSize, data, size);
|
|
|