Home
last modified time | relevance | path

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

/external/chromium_org/third_party/WebKit/Source/core/html/forms/
DNumberInputType.cpp221 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()
DBaseDateAndTimeInputType.cpp153 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()
DTimeInputType.cpp116 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()
DColorInputType.cpp110 String ColorInputType::sanitizeValue(const String& proposedValue) const in sanitizeValue()
112 if (!isValidColorString(proposedValue)) in sanitizeValue()
115 return proposedValue.lower(); in sanitizeValue()
DRangeInputType.cpp72 static Decimal ensureMaximum(const Decimal& proposedValue, const Decimal& minimum, const Decimal& f… in ensureMaximum() argument
74 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()
DRangeInputType.h68 virtual String sanitizeValue(const String& proposedValue) const OVERRIDE;
DEmailInputType.cpp238 String EmailInputType::sanitizeValue(const String& proposedValue) const in sanitizeValue()
240 String noLineBreakValue = proposedValue.removeCharacters(isHTMLLineBreak); in sanitizeValue()
DInputType.cpp595 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()
DTextFieldInputType.cpp427 String TextFieldInputType::sanitizeValue(const String& proposedValue) const in sanitizeValue()
429 …return limitLength(proposedValue.removeCharacters(isASCIILineBreak), HTMLInputElement::maximumLeng… in sanitizeValue()
/external/chromium_org/third_party/WebKit/Source/web/
DWebInputElement.cpp179 WebString WebInputElement::localizeValue(const WebString& proposedValue) const in localizeValue()
181 return constUnwrap<HTMLInputElement>()->localizeValue(proposedValue); in localizeValue()
/external/chromium_org/third_party/WebKit/Source/core/html/
DHTMLTextAreaElement.cpp308 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) in sanitizeUserInputValue() argument
310 if (maxLength > 0 && U16_IS_LEAD(proposedValue[maxLength - 1])) in sanitizeUserInputValue()
312 return proposedValue.left(maxLength); in sanitizeUserInputValue()
DHTMLInputElement.cpp1357 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()