Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index b95b1f66f6fd24317f10be61ab00b92a7e0cd369..8aa13a37349ccc9df8cfd1a77e280f12a1f8f469 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -30,6 +30,7 @@ |
#include "bindings/core/v8/ExceptionStatePlaceholder.h" |
#include "core/HTMLNames.h" |
+#include "core/InputTypeNames.h" |
#include "core/SVGNames.h" |
#include "core/clipboard/DataObject.h" |
#include "core/clipboard/DataTransfer.h" |
@@ -975,7 +976,7 @@ static LocalFrame* subframeForHitTestResult(const MouseEventWithHitTestResults& |
static bool isSubmitImage(Node* node) |
{ |
- return isHTMLInputElement(node) && toHTMLInputElement(node)->isImageButton(); |
+ return isHTMLInputElement(node) && toHTMLInputElement(node)->type() == InputTypeNames::image; |
} |
bool EventHandler::useHandCursor(Node* node, bool isOverLink) |