Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Unified Diff: WebCore/html/HTMLFormElement.cpp

Issue 3279009: Revert 58049 - Revert 53685 - Merge 63786 - 2010-07-16 James Hawkins <jhawk... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/472/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/html/HTMLFormElement.h ('k') | WebKit/chromium/public/WebFormElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/html/HTMLFormElement.cpp
===================================================================
--- WebCore/html/HTMLFormElement.cpp (revision 58051)
+++ 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) {
« no previous file with comments | « WebCore/html/HTMLFormElement.h ('k') | WebKit/chromium/public/WebFormElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698