-
jianli@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=35707 Reviewed by Dmitry Titov. This patch only addresses the implementation of DOMFormData class and moves the FormData construction logic from HTMLFormElement::createFormData to FormData::create() so that it can be used by both HTMLFormElement and XMLHttpRequest. The DOMFormData IDL interface will be exposed in another patch and the test will be added then. * Android.mk: * GNUmakefile.am: * WebCore.gypi: * WebCore.pro: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * html/DOMFormData.cpp: Added. * html/DOMFormData.h: Added. * html/FormDataList.h: (WebCore::FormDataList::encoding): * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::createFormData): (WebCore::HTMLFormElement::submit): * html/HTMLFormElement.h: * platform/network/FormData.cpp: (WebCore::FormData::create): (WebCore::FormData::createMultiPart): (WebCore::FormData::appendDOMFormData): * platform/network/FormData.h: (WebCore::FormData::boundary): * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::send): * xml/XMLHttpRequest.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fd3fc61f