Searched refs:proposedValue (Results 1 – 12 of 12) sorted by relevance
221 String NumberInputType::localizeValue(const String& proposedValue) const in localizeValue()223 if (proposedValue.isEmpty()) in localizeValue()224 return proposedValue; in localizeValue()226 if (proposedValue.find(isE) != kNotFound) in localizeValue()227 return proposedValue; in localizeValue()228 return element().locale().convertToLocalizedNumber(proposedValue); in localizeValue()246 String NumberInputType::sanitizeValue(const String& proposedValue) const in sanitizeValue()248 if (proposedValue.isEmpty()) in sanitizeValue()249 return proposedValue; in sanitizeValue()250 return std::isfinite(parseToDoubleForNumberType(proposedValue)) ? proposedValue : emptyString(); in sanitizeValue()
153 String BaseDateAndTimeInputType::localizeValue(const String& proposedValue) const in localizeValue()156 if (!parseToDateComponents(proposedValue, &date)) in localizeValue()157 return proposedValue; in localizeValue()160 return localized.isEmpty() ? proposedValue : localized; in localizeValue()168 String BaseDateAndTimeInputType::sanitizeValue(const String& proposedValue) const in sanitizeValue()170 return typeMismatchFor(proposedValue) ? emptyString() : proposedValue; in sanitizeValue()
116 String TimeInputType::localizeValue(const String& proposedValue) const in localizeValue()119 if (!parseToDateComponents(proposedValue, &date)) in localizeValue()120 return proposedValue; in localizeValue()125 return localized.isEmpty() ? proposedValue : localized; in localizeValue()
110 String ColorInputType::sanitizeValue(const String& proposedValue) const in sanitizeValue()112 if (!isValidColorString(proposedValue)) in sanitizeValue()115 return proposedValue.lower(); in sanitizeValue()
72 static Decimal ensureMaximum(const Decimal& proposedValue, const Decimal& minimum, const Decimal& f… in ensureMaximum() argument74 return proposedValue >= minimum ? proposedValue : std::max(minimum, fallbackValue); in ensureMaximum()305 String RangeInputType::sanitizeValue(const String& proposedValue) const in sanitizeValue()308 const Decimal proposedNumericValue = parseToNumber(proposedValue, stepRange.defaultValue()); in sanitizeValue()
68 virtual String sanitizeValue(const String& proposedValue) const OVERRIDE;
238 String EmailInputType::sanitizeValue(const String& proposedValue) const in sanitizeValue()240 String noLineBreakValue = proposedValue.removeCharacters(isHTMLLineBreak); in sanitizeValue()
595 String InputType::localizeValue(const String& proposedValue) const in localizeValue()597 return proposedValue; in localizeValue()605 String InputType::sanitizeValue(const String& proposedValue) const in sanitizeValue()607 return proposedValue; in sanitizeValue()
427 String TextFieldInputType::sanitizeValue(const String& proposedValue) const in sanitizeValue()429 …return limitLength(proposedValue.removeCharacters(isASCIILineBreak), HTMLInputElement::maximumLeng… in sanitizeValue()
179 WebString WebInputElement::localizeValue(const WebString& proposedValue) const in localizeValue()181 return constUnwrap<HTMLInputElement>()->localizeValue(proposedValue); in localizeValue()
308 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) in sanitizeUserInputValue() argument310 if (maxLength > 0 && U16_IS_LEAD(proposedValue[maxLength - 1])) in sanitizeUserInputValue()312 return proposedValue.left(maxLength); in sanitizeUserInputValue()
1357 String HTMLInputElement::sanitizeValue(const String& proposedValue) const in sanitizeValue()1359 if (proposedValue.isNull()) in sanitizeValue()1360 return proposedValue; in sanitizeValue()1361 return m_inputType->sanitizeValue(proposedValue); in sanitizeValue()1364 String HTMLInputElement::localizeValue(const String& proposedValue) const in localizeValue()1366 if (proposedValue.isNull()) in localizeValue()1367 return proposedValue; in localizeValue()1368 return m_inputType->localizeValue(proposedValue); in localizeValue()