OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "WebFormElement.h" | 35 #include "WebFormElement.h" |
36 #include "WebInputElement.h" | 36 #include "WebInputElement.h" |
37 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
38 #include "core/html/FormDataList.h" | 38 #include "core/html/FormDataList.h" |
39 #include "core/html/HTMLFormControlElement.h" | 39 #include "core/html/HTMLFormControlElement.h" |
40 #include "core/html/HTMLFormElement.h" | 40 #include "core/html/HTMLFormElement.h" |
41 #include "core/html/HTMLInputElement.h" | 41 #include "core/html/HTMLInputElement.h" |
42 #include "core/html/HTMLOptionElement.h" | 42 #include "core/html/HTMLOptionElement.h" |
43 #include "core/html/HTMLSelectElement.h" | 43 #include "core/html/HTMLSelectElement.h" |
44 #include "core/html/HTMLTextAreaElement.h" | 44 #include "core/html/HTMLTextAreaElement.h" |
45 #include "core/platform/network/FormDataBuilder.h" | 45 #include "platform/network/FormDataBuilder.h" |
46 #include "wtf/text/TextEncoding.h" | 46 #include "wtf/text/TextEncoding.h" |
47 | 47 |
48 using namespace WebCore; | 48 using namespace WebCore; |
49 using namespace HTMLNames; | 49 using namespace HTMLNames; |
50 | 50 |
51 namespace { | 51 namespace { |
52 | 52 |
53 // Gets the encoding for the form. | 53 // Gets the encoding for the form. |
54 void GetFormEncoding(const HTMLFormElement* form, WTF::TextEncoding* encoding) | 54 void GetFormEncoding(const HTMLFormElement* form, WTF::TextEncoding* encoding) |
55 { | 55 { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 288 |
289 String action(formElement->action()); | 289 String action(formElement->action()); |
290 KURL url(formElement->document().completeURL(action.isNull() ? "" : action))
; | 290 KURL url(formElement->document().completeURL(action.isNull() ? "" : action))
; |
291 RefPtr<FormData> formData = FormData::create(encodedString); | 291 RefPtr<FormData> formData = FormData::create(encodedString); |
292 url.setQuery(formData->flattenToString()); | 292 url.setQuery(formData->flattenToString()); |
293 m_url = url; | 293 m_url = url; |
294 m_encoding = String(encoding.name()); | 294 m_encoding = String(encoding.name()); |
295 } | 295 } |
296 | 296 |
297 } // namespace WebKit | 297 } // namespace WebKit |
OLD | NEW |