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

Unified Diff: Source/core/html/forms/TextFieldInputType.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/TextFieldInputType.h ('k') | Source/core/html/forms/TextInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/html/forms/TextFieldInputType.h ('k') | Source/core/html/forms/TextInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698