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

Unified Diff: Source/core/html/forms/ImageInputType.cpp

Issue 24246011: Move form-related 78 files to core/html/forms/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | « Source/core/html/forms/ImageInputType.h ('k') | Source/core/html/forms/InputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/html/forms/ImageInputType.h ('k') | Source/core/html/forms/InputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698