OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 inline FormState::FormState(HTMLFormElement& form, FormSubmissionTrigger formSub
missionTrigger) | 36 inline FormState::FormState(HTMLFormElement& form, FormSubmissionTrigger formSub
missionTrigger) |
37 : m_form(form) | 37 : m_form(form) |
38 , m_sourceDocument(form.document()) | 38 , m_sourceDocument(form.document()) |
39 , m_formSubmissionTrigger(formSubmissionTrigger) | 39 , m_formSubmissionTrigger(formSubmissionTrigger) |
40 { | 40 { |
41 } | 41 } |
42 | 42 |
43 PassRefPtr<FormState> FormState::create(HTMLFormElement& form, FormSubmissionTri
gger formSubmissionTrigger) | 43 PassRefPtrWillBeRawPtr<FormState> FormState::create(HTMLFormElement& form, FormS
ubmissionTrigger formSubmissionTrigger) |
44 { | 44 { |
45 return adoptRef(new FormState(form, formSubmissionTrigger)); | 45 return adoptRefWillBeNoop(new FormState(form, formSubmissionTrigger)); |
| 46 } |
| 47 |
| 48 void FormState::trace(Visitor* visitor) |
| 49 { |
| 50 visitor->trace(m_form); |
| 51 visitor->trace(m_sourceDocument); |
46 } | 52 } |
47 | 53 |
48 } | 54 } |
OLD | NEW |