| Index: WebCore/html/HTMLFormElement.cpp
|
| ===================================================================
|
| --- WebCore/html/HTMLFormElement.cpp (revision 53684)
|
| +++ WebCore/html/HTMLFormElement.cpp (working copy)
|
| @@ -74,6 +74,7 @@
|
|
|
| HTMLFormElement::HTMLFormElement(const QualifiedName& tagName, Document* document)
|
| : HTMLElement(tagName, document)
|
| + , m_submissionTrigger(NotSubmittedByJavaScript)
|
| , m_autocomplete(true)
|
| , m_insubmit(false)
|
| , m_doingsubmit(false)
|
| @@ -370,6 +371,7 @@
|
| }
|
|
|
| m_insubmit = true;
|
| + m_submissionTrigger = formSubmissionTrigger;
|
|
|
| HTMLFormControlElement* firstSuccessfulSubmitButton = 0;
|
| bool needButtonActivation = activateSubmitButton; // do we need to activate a submit button?
|
| @@ -559,6 +561,11 @@
|
| return getAttribute(targetAttr);
|
| }
|
|
|
| +FormSubmissionTrigger HTMLFormElement::submissionTrigger() const
|
| +{
|
| + return m_submissionTrigger;
|
| +}
|
| +
|
| HTMLFormControlElement* HTMLFormElement::defaultButton() const
|
| {
|
| for (unsigned i = 0; i < m_associatedElements.size(); ++i) {
|
|
|