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

Unified Diff: Source/core/html/forms/BaseTextInputType.h

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/forms/BaseTextInputType.h
diff --git a/Source/core/html/forms/BaseTextInputType.h b/Source/core/html/forms/BaseTextInputType.h
index 3d488fa87d2c0ecd619d2ca18ea05cffc742db7e..b93d8491901a68408facf8baeaded2e7ccdca5cd 100644
--- a/Source/core/html/forms/BaseTextInputType.h
+++ b/Source/core/html/forms/BaseTextInputType.h
@@ -43,7 +43,9 @@ protected:
private:
virtual bool tooLong(const String&, HTMLTextFormControlElement::NeedsToCheckDirtyFlag) const override final;
+ virtual bool tooShort(const String&, HTMLTextFormControlElement::NeedsToCheckDirtyFlag) const override final;
virtual int maxLength() const override final;
+ virtual int minLength() const override final;
virtual bool patternMismatch(const String&) const override final;
virtual bool supportsPlaceholder() const override final;
virtual bool supportsSelectionAPI() const override;

Powered by Google App Engine
This is Rietveld 408576698