Home
last modified time | relevance | path

Searched refs:proposedValue (Results 1 – 11 of 11) sorted by relevance

/external/webkit/Source/WebCore/html/
DNumberInputType.cpp240 bool NumberInputType::isAcceptableValue(const String& proposedValue) in isAcceptableValue() argument
242 …return proposedValue.isEmpty() || isfinite(parseLocalizedNumber(proposedValue)) || parseToDoubleFo… in isAcceptableValue()
245 String NumberInputType::sanitizeValue(const String& proposedValue) in sanitizeValue() argument
247 if (proposedValue.isEmpty()) in sanitizeValue()
248 return proposedValue; in sanitizeValue()
249 return parseToDoubleForNumberType(proposedValue, 0) ? proposedValue : emptyAtom.string(); in sanitizeValue()
DRangeInputType.cpp274 String RangeInputType::sanitizeValue(const String& proposedValue) in sanitizeValue() argument
279 if (proposedValue.isNull()) in sanitizeValue()
280 return proposedValue; in sanitizeValue()
282 return serializeForNumberType(StepRange(element()).clampValue(proposedValue)); in sanitizeValue()
DTextFieldInputType.cpp122 String TextFieldInputType::sanitizeValue(const String& proposedValue) in sanitizeValue() argument
124 return InputElement::sanitizeValueForTextField(element(), proposedValue); in sanitizeValue()
DHTMLTextAreaElement.cpp265 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) in sanitizeUserInputValue() argument
267 return proposedValue.left(numCharactersInGraphemeClusters(proposedValue, maxLength)); in sanitizeUserInputValue()
DTextFieldInputType.h55 virtual String sanitizeValue(const String& proposedValue);
DRangeInputType.h70 virtual String sanitizeValue(const String& proposedValue);
DInputType.cpp535 String InputType::sanitizeValue(const String& proposedValue) in sanitizeValue() argument
537 return proposedValue; in sanitizeValue()
DHTMLInputElement.cpp1201 bool HTMLInputElement::isAcceptableValue(const String& proposedValue) const in isAcceptableValue()
1203 return m_inputType->isAcceptableValue(proposedValue); in isAcceptableValue()
1206 String HTMLInputElement::sanitizeValue(const String& proposedValue) const in sanitizeValue()
1208 return m_inputType->sanitizeValue(proposedValue); in sanitizeValue()
/external/webkit/Source/WebCore/dom/
DInputElement.cpp138 …laceEOLAndLimitLength(const InputElement* inputElement, const String& proposedValue, int maxLength) in replaceEOLAndLimitLength() argument
141 return proposedValue; in replaceEOLAndLimitLength()
143 String string = proposedValue; in replaceEOLAndLimitLength()
159 …utElement::sanitizeValueForTextField(const InputElement* inputElement, const String& proposedValue) in sanitizeValueForTextField() argument
163 if (!isConformToInputMask(data, proposedValue)) { in sanitizeValueForTextField()
169 return replaceEOLAndLimitLength(inputElement, proposedValue, s_maximumLength); in sanitizeValueForTextField()
172 …anitizeUserInputValue(const InputElement* inputElement, const String& proposedValue, int maxLength) in sanitizeUserInputValue() argument
174 return replaceEOLAndLimitLength(inputElement, proposedValue, maxLength); in sanitizeUserInputValue()
/external/webkit/Source/WebCore/wml/
DWMLInputElement.h93 …virtual String sanitizeValue(const String& proposedValue) const { return constrainValue(proposedVa… in sanitizeValue() argument
DWMLInputElement.cpp332 String WMLInputElement::constrainValue(const String& proposedValue) const in constrainValue()
334 return InputElement::sanitizeUserInputValue(this, proposedValue, m_data.maxLength()); in constrainValue()