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

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

Issue 551283002: Remove HTMLInputElement::isText and isTextType. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/InputType.h ('k') | Source/core/html/forms/TextFieldInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/InputType.cpp
diff --git a/Source/core/html/forms/InputType.cpp b/Source/core/html/forms/InputType.cpp
index 69fdda1ae6607ddec687d09a601925f2b1a8d444..13ed714b80a43a63a95dbe05a7069a727e30d789 100644
--- a/Source/core/html/forms/InputType.cpp
+++ b/Source/core/html/forms/InputType.cpp
@@ -142,11 +142,6 @@ bool InputType::isTextField() const
return false;
}
-bool InputType::isTextType() const
-{
- return false;
-}
-
bool InputType::shouldSaveAndRestoreFormControlState() const
{
return true;
@@ -239,6 +234,11 @@ bool InputType::hasBadInput() const
return false;
}
+bool InputType::tooLong(const String&, HTMLTextFormControlElement::NeedsToCheckDirtyFlag) const
+{
+ return false;
+}
+
bool InputType::patternMismatch(const String&) const
{
return false;
@@ -645,6 +645,11 @@ bool InputType::shouldRespectHeightAndWidthAttributes()
return false;
}
+int InputType::maxLength() const
+{
+ return HTMLInputElement::maximumLength;
+}
+
bool InputType::supportsPlaceholder() const
{
return false;
« no previous file with comments | « Source/core/html/forms/InputType.h ('k') | Source/core/html/forms/TextFieldInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698