| Index: third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp b/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
|
| index b7b1cb428261a51eb5c912a902a38dcaf1370c94..2a179e797273c4119575a7c54b32adcbc8ab7919 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp
|
| @@ -110,10 +110,8 @@ void ImageInputType::handleDOMActivateEvent(Event* event)
|
| {
|
| if (element().isDisabledFormControl() || !element().form())
|
| return;
|
| - element().setActivatedSubmit(true);
|
| m_clickLocation = extractClickLocation(event);
|
| - element().form()->prepareForSubmission(event); // Event handlers can run.
|
| - element().setActivatedSubmit(false);
|
| + element().form()->prepareForSubmission(event, &element()); // Event handlers can run.
|
| event->setDefaultHandled();
|
| }
|
|
|
|
|