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

Unified Diff: Source/core/html/ValidityState.cpp

Issue 435753003: Implement minlength for <input> and <textarea>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add layout tests for minlength & maxlength together; fix comments Created 6 years, 2 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
Index: Source/core/html/ValidityState.cpp
diff --git a/Source/core/html/ValidityState.cpp b/Source/core/html/ValidityState.cpp
index 23c36a9d6a61218500b2d847e4781480fa6f9b6c..850b8671c6a5887543fba0f00ff682e061248ed1 100644
--- a/Source/core/html/ValidityState.cpp
+++ b/Source/core/html/ValidityState.cpp
@@ -51,6 +51,11 @@ bool ValidityState::tooLong() const
return m_control->tooLong();
}
+bool ValidityState::tooShort() const
+{
+ return m_control->tooShort();
+}
+
bool ValidityState::rangeUnderflow() const
{
return m_control->rangeUnderflow();

Powered by Google App Engine
This is Rietveld 408576698