Index: Source/core/html/BaseClickableWithKeyInputType.cpp |
diff --git a/Source/core/html/BaseClickableWithKeyInputType.cpp b/Source/core/html/BaseClickableWithKeyInputType.cpp |
index 063f2f9ddc568898e31833db1315adcdb75a9e3b..c3d10232d82325dfea595794c0bb63d5a1172ada 100644 |
--- a/Source/core/html/BaseClickableWithKeyInputType.cpp |
+++ b/Source/core/html/BaseClickableWithKeyInputType.cpp |
@@ -39,7 +39,12 @@ namespace WebCore { |
using namespace HTMLNames; |
-void BaseClickableWithKeyInputType::handleKeydownEvent(HTMLInputElement* element, KeyboardEvent* event) |
+BaseClickableWithKeyInputType::BaseClickableWithKeyInputType(const Handle<HTMLInputElement>& element) |
+ : InputType(element) |
+{ |
+} |
+ |
+void BaseClickableWithKeyInputType::handleKeydownEvent(Handle<HTMLInputElement> element, KeyboardEvent* event) |
{ |
const String& key = event->keyIdentifier(); |
if (key == "U+0020") { |
@@ -49,7 +54,7 @@ void BaseClickableWithKeyInputType::handleKeydownEvent(HTMLInputElement* element |
} |
} |
-void BaseClickableWithKeyInputType::handleKeypressEvent(HTMLInputElement* element, KeyboardEvent* event) |
+void BaseClickableWithKeyInputType::handleKeypressEvent(Handle<HTMLInputElement> element, KeyboardEvent* event) |
{ |
int charCode = event->charCode(); |
if (charCode == '\r') { |
@@ -73,7 +78,7 @@ void BaseClickableWithKeyInputType::handleKeyupEvent(InputType& inputType, Keybo |
} |
// FIXME: Could share this with BaseCheckableInputType and RangeInputType if we had a common base class. |
-void BaseClickableWithKeyInputType::accessKeyAction(HTMLInputElement* element, bool sendMouseEvents) |
+void BaseClickableWithKeyInputType::accessKeyAction(Handle<HTMLInputElement> element, bool sendMouseEvents) |
{ |
element->dispatchSimulatedClick(0, sendMouseEvents ? SendMouseUpDownEvents : SendNoEvents); |
} |