Index: Source/core/html/forms/TextFieldInputType.cpp |
diff --git a/Source/core/html/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp |
similarity index 98% |
rename from Source/core/html/TextFieldInputType.cpp |
rename to Source/core/html/forms/TextFieldInputType.cpp |
index 65693bd25f7d9493f92aca42a9e097f91430facf..7d915cfb90196b317ffc54aa459809ed03a76af0 100644 |
--- a/Source/core/html/TextFieldInputType.cpp |
+++ b/Source/core/html/forms/TextFieldInputType.cpp |
@@ -30,7 +30,7 @@ |
*/ |
#include "config.h" |
-#include "core/html/TextFieldInputType.h" |
+#include "core/html/forms/TextFieldInputType.h" |
#include "HTMLNames.h" |
#include "bindings/v8/ExceptionStatePlaceholder.h" |
@@ -192,8 +192,9 @@ void TextFieldInputType::forwardEvent(Event* event) |
} |
renderTextControl->capsLockStateMayHaveChanged(); |
- } else if (event->type() == eventNames().focusEvent) |
+ } else if (event->type() == eventNames().focusEvent) { |
renderTextControl->capsLockStateMayHaveChanged(); |
+ } |
element()->forwardEvent(event); |
} |
@@ -213,7 +214,7 @@ void TextFieldInputType::handleBlurEvent() |
bool TextFieldInputType::shouldSubmitImplicitly(Event* event) |
{ |
- return (event->type() == eventNames().textInputEvent && event->hasInterface(eventNames().interfaceForTextEvent) && static_cast<TextEvent*>(event)->data() == "\n") || InputType::shouldSubmitImplicitly(event); |
+ return (event->type() == eventNames().textInputEvent && event->hasInterface(eventNames().interfaceForTextEvent) && toTextEvent(event)->data() == "\n") || InputType::shouldSubmitImplicitly(event); |
} |
RenderObject* TextFieldInputType::createRenderer(RenderStyle*) const |