FormDataBuilder should not use Document
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Oct 2014 08:02:20 +0000 (08:02 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Oct 2014 08:02:20 +0000 (08:02 +0000)
commitac8095b978348e9423b49e4ef3875c37f8cc4fb1
treee06a7b6b45073ccb4ff3ff21accf1a790d21c828
parente0eb500a821844c6dc19b9409043441659310f99
FormDataBuilder should not use Document
https://bugs.webkit.org/show_bug.cgi?id=138172

Reviewed by Alexey Proskuryakov.

It's only used by encodingFromAcceptCharset() to fallback to
document input encoding. That method is only used by
FormSubmission::create(), so it could be moved as a static
function to FormSubmission.cpp.

* loader/FormSubmission.cpp:
(WebCore::encodingFromAcceptCharset):
(WebCore::FormSubmission::create):
* platform/network/FormDataBuilder.cpp:
(WebCore::FormDataBuilder::encodingFromAcceptCharset): Deleted.
* platform/network/FormDataBuilder.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/loader/FormSubmission.cpp
Source/WebCore/platform/network/FormDataBuilder.cpp
Source/WebCore/platform/network/FormDataBuilder.h