| Index: Source/core/html/forms/ImageInputType.cpp
|
| diff --git a/Source/core/html/ImageInputType.cpp b/Source/core/html/forms/ImageInputType.cpp
|
| similarity index 98%
|
| rename from Source/core/html/ImageInputType.cpp
|
| rename to Source/core/html/forms/ImageInputType.cpp
|
| index 06ada941de3b14c6facd5527998969ebfd0152c2..f0b17329913dbed3c5eda04a450756c64cb8dad4 100644
|
| --- a/Source/core/html/ImageInputType.cpp
|
| +++ b/Source/core/html/forms/ImageInputType.cpp
|
| @@ -21,7 +21,7 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/html/ImageInputType.h"
|
| +#include "core/html/forms/ImageInputType.h"
|
|
|
| #include "HTMLNames.h"
|
| #include "core/dom/MouseEvent.h"
|
| @@ -30,7 +30,7 @@
|
| #include "core/html/HTMLFormElement.h"
|
| #include "core/html/HTMLImageLoader.h"
|
| #include "core/html/HTMLInputElement.h"
|
| -#include "core/html/InputTypeNames.h"
|
| +#include "core/html/forms/InputTypeNames.h"
|
| #include "core/html/parser/HTMLParserIdioms.h"
|
| #include "core/rendering/RenderImage.h"
|
| #include "wtf/PassOwnPtr.h"
|
| @@ -94,8 +94,9 @@ void ImageInputType::handleDOMActivateEvent(Event* event)
|
| if (event->underlyingEvent() && event->underlyingEvent()->isMouseEvent()) {
|
| MouseEvent* mouseEvent = toMouseEvent(event->underlyingEvent());
|
| m_clickLocation = IntPoint(mouseEvent->offsetX(), mouseEvent->offsetY());
|
| - } else
|
| + } else {
|
| m_clickLocation = IntPoint();
|
| + }
|
| element->form()->prepareForSubmission(event); // Event handlers can run.
|
| element->setActivatedSubmit(false);
|
| event->setDefaultHandled();
|
|
|