Home | History | Annotate | Download | only in dom

Lines Matching refs:maxLength

144 String InputElement::sanitizeUserInputValue(const InputElement* inputElement, const String& proposedValue, int maxLength)
154 unsigned newLength = string.numCharactersInGraphemeClusters(maxLength);
168 // Make sure that the text to be inserted will not violate the maxLength.
181 unsigned maxLength = static_cast<unsigned>(data.maxLength()); // maxLength() can never be negative.
182 unsigned appendableLength = maxLength > baseLength ? maxLength - baseLength : 0;
184 // Truncate the inserted text to avoid violating the maxLength and other constraints.
199 int maxLength = attribute->isNull() ? InputElement::s_maximumLength : attribute->value().toInt();
200 if (maxLength <= 0 || maxLength > InputElement::s_maximumLength)
201 maxLength = InputElement::s_maximumLength;
203 int oldMaxLength = data.maxLength();
204 data.setMaxLength(maxLength);
206 if (oldMaxLength != maxLength)