Index: third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp |
diff --git a/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp b/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp |
index 59c7aaf6d11a1c3f82d5d5fa3d4ce6baaf47d99e..e3b2b0db991f21a9e328959e6ebb58b68b63ddfa 100644 |
--- a/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp |
+++ b/third_party/WebKit/Source/core/html/forms/SubmitInputType.cpp |
@@ -66,9 +66,7 @@ void SubmitInputType::handleDOMActivateEvent(Event* event) |
{ |
if (element().isDisabledFormControl() || !element().form()) |
return; |
- element().setActivatedSubmit(true); |
- element().form()->prepareForSubmission(event); // Event handlers can run. |
- element().setActivatedSubmit(false); |
+ element().form()->prepareForSubmission(event, &element()); // Event handlers can run. |
event->setDefaultHandled(); |
} |