| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 PassRefPtr<FormData> HTMLFormElement::createFormData() | 203 PassRefPtr<FormData> HTMLFormElement::createFormData() |
| 204 { | 204 { |
| 205 RefPtr<DOMFormData> domFormData = DOMFormData::create(dataEncoding().encodin
gForFormSubmission()); | 205 RefPtr<DOMFormData> domFormData = DOMFormData::create(dataEncoding().encodin
gForFormSubmission()); |
| 206 for (unsigned i = 0; i < m_associatedElements.size(); ++i) { | 206 for (unsigned i = 0; i < m_associatedElements.size(); ++i) { |
| 207 HTMLFormControlElement* control = m_associatedElements[i]; | 207 HTMLFormControlElement* control = m_associatedElements[i]; |
| 208 if (!control->disabled()) | 208 if (!control->disabled()) |
| 209 control->appendFormData(*domFormData, m_formDataBuilder.isMultiPartF
orm()); | 209 control->appendFormData(*domFormData, m_formDataBuilder.isMultiPartF
orm()); |
| 210 } | 210 } |
| 211 | 211 |
| 212 RefPtr<FormData> result = (m_formDataBuilder.isMultiPartForm()) ? FormData::
createMultiPart(*domFormData, document()) : FormData::create(*domFormData); | 212 RefPtr<FormData> result = (m_formDataBuilder.isMultiPartForm()) ? FormData::
createMultiPart(domFormData->items(), domFormData->encoding(), document()) : For
mData::create(domFormData->items(), domFormData->encoding()); |
| 213 | 213 |
| 214 result->setIdentifier(generateFormDataIdentifier()); | 214 result->setIdentifier(generateFormDataIdentifier()); |
| 215 return result; | 215 return result; |
| 216 } | 216 } |
| 217 | 217 |
| 218 bool HTMLFormElement::isMailtoForm() const | 218 bool HTMLFormElement::isMailtoForm() const |
| 219 { | 219 { |
| 220 return protocolIs(m_url, "mailto"); | 220 return protocolIs(m_url, "mailto"); |
| 221 } | 221 } |
| 222 | 222 |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 } | 681 } |
| 682 | 682 |
| 683 void HTMLFormElement::didMoveToNewOwnerDocument() | 683 void HTMLFormElement::didMoveToNewOwnerDocument() |
| 684 { | 684 { |
| 685 if (!m_autocomplete) | 685 if (!m_autocomplete) |
| 686 document()->registerForDocumentActivationCallbacks(this); | 686 document()->registerForDocumentActivationCallbacks(this); |
| 687 HTMLElement::didMoveToNewOwnerDocument(); | 687 HTMLElement::didMoveToNewOwnerDocument(); |
| 688 } | 688 } |
| 689 | 689 |
| 690 } // namespace | 690 } // namespace |
| OLD | NEW |