| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 | 262 |
| 263 formData->setIdentifier(generateFormDataIdentifier()); | 263 formData->setIdentifier(generateFormDataIdentifier()); |
| 264 formData->setContainsPasswordData(containsPasswordData); | 264 formData->setContainsPasswordData(containsPasswordData); |
| 265 AtomicString targetOrBaseTarget = copiedAttributes.target().isEmpty() | 265 AtomicString targetOrBaseTarget = copiedAttributes.target().isEmpty() |
| 266 ? document.baseTarget() | 266 ? document.baseTarget() |
| 267 : copiedAttributes.target(); | 267 : copiedAttributes.target(); |
| 268 return new FormSubmission(copiedAttributes.method(), actionURL, | 268 return new FormSubmission(copiedAttributes.method(), actionURL, |
| 269 targetOrBaseTarget, encodingType, form, | 269 targetOrBaseTarget, encodingType, form, |
| 270 formData.release(), boundary, event); | 270 std::move(formData), boundary, event); |
| 271 } | 271 } |
| 272 | 272 |
| 273 DEFINE_TRACE(FormSubmission) { | 273 DEFINE_TRACE(FormSubmission) { |
| 274 visitor->trace(m_form); | 274 visitor->trace(m_form); |
| 275 visitor->trace(m_event); | 275 visitor->trace(m_event); |
| 276 } | 276 } |
| 277 | 277 |
| 278 KURL FormSubmission::requestURL() const { | 278 KURL FormSubmission::requestURL() const { |
| 279 if (m_method == FormSubmission::PostMethod) | 279 if (m_method == FormSubmission::PostMethod) |
| 280 return m_action; | 280 return m_action; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 306 | 306 |
| 307 frameRequest.resourceRequest().setURL(requestURL()); | 307 frameRequest.resourceRequest().setURL(requestURL()); |
| 308 | 308 |
| 309 frameRequest.setTriggeringEvent(m_event); | 309 frameRequest.setTriggeringEvent(m_event); |
| 310 frameRequest.setForm(m_form); | 310 frameRequest.setForm(m_form); |
| 311 | 311 |
| 312 return frameRequest; | 312 return frameRequest; |
| 313 } | 313 } |
| 314 | 314 |
| 315 } // namespace blink | 315 } // namespace blink |
| OLD | NEW |