Polish code for r189579.
[WebKit-https.git] / Source / WebCore / loader / FormSubmission.cpp
index 43435d5c2b489517c7fc5456a5bf14de3fc394b3..7a83ef3dec164b6cae8cf9b13909dd005f001526 100644 (file)
@@ -151,7 +151,7 @@ static TextEncoding encodingFromAcceptCharset(const String& acceptCharset, Docum
             return encoding;
     }
 
-    return TextEncoding(document.encoding());
+    return document.textEncoding();
 }
 
 Ref<FormSubmission> FormSubmission::create(HTMLFormElement* form, const Attributes& attributes, PassRefPtr<Event> event, LockHistory lockHistory, FormSubmissionTrigger trigger)