Home | History | Annotate | Download | only in dom

Lines Matching refs:maxLength

138 static String replaceEOLAndLimitLength(const InputElement* inputElement, const String& proposedValue, int maxLength)
148 unsigned newLength = numCharactersInGraphemeClusters(string, maxLength);
172 String InputElement::sanitizeUserInputValue(const InputElement* inputElement, const String& proposedValue, int maxLength)
174 return replaceEOLAndLimitLength(inputElement, proposedValue, maxLength);
180 // Make sure that the text to be inserted will not violate the maxLength.
197 unsigned maxLength = static_cast<unsigned>(inputElement->supportsMaxLength() ? data.maxLength() : s_maximumLength); // maxLength() can never be negative.
198 unsigned appendableLength = maxLength > baseLength ? maxLength - baseLength : 0;
200 // Truncate the inserted text to avoid violating the maxLength and other constraints.
227 int maxLength = attribute->isNull() ? InputElement::s_maximumLength : attribute->value().toInt();
228 if (maxLength <= 0 || maxLength > InputElement::s_maximumLength)
229 maxLength = InputElement::s_maximumLength;
231 int oldMaxLength = data.maxLength();
232 data.setMaxLength(maxLength);
234 if (oldMaxLength != maxLength)