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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of the WebKit project. 2 * This file is part of the WebKit project.
3 * 3 *
4 * Copyright (C) 2009 Michelangelo De Simone <micdesim@gmail.com> 4 * Copyright (C) 2009 Michelangelo De Simone <micdesim@gmail.com>
5 * Copyright (C) 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool ValidityState::patternMismatch() const 44 bool ValidityState::patternMismatch() const
45 { 45 {
46 return m_control->patternMismatch(); 46 return m_control->patternMismatch();
47 } 47 }
48 48
49 bool ValidityState::tooLong() const 49 bool ValidityState::tooLong() const
50 { 50 {
51 return m_control->tooLong(); 51 return m_control->tooLong();
52 } 52 }
53 53
54 bool ValidityState::tooShort() const
55 {
56 return m_control->tooShort();
57 }
58
54 bool ValidityState::rangeUnderflow() const 59 bool ValidityState::rangeUnderflow() const
55 { 60 {
56 return m_control->rangeUnderflow(); 61 return m_control->rangeUnderflow();
57 } 62 }
58 63
59 bool ValidityState::rangeOverflow() const 64 bool ValidityState::rangeOverflow() const
60 { 65 {
61 return m_control->rangeOverflow(); 66 return m_control->rangeOverflow();
62 } 67 }
63 68
(...skipping 11 matching lines...) Expand all
75 { 80 {
76 return m_control->customError(); 81 return m_control->customError();
77 } 82 }
78 83
79 bool ValidityState::valid() const 84 bool ValidityState::valid() const
80 { 85 {
81 return m_control->valid(); 86 return m_control->valid();
82 } 87 }
83 88
84 } // namespace 89 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698