diff options
author | Ben Murdoch <benm@google.com> | 2011-05-13 16:23:25 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-05-16 11:35:02 +0100 |
commit | 65f03d4f644ce73618e5f4f50dd694b26f55ae12 (patch) | |
tree | f478babb801e720de7bfaee23443ffe029f58731 /Source/WebCore/wml/WMLInputElement.cpp | |
parent | 47de4a2fb7262c7ebdb9cd133ad2c54c187454d0 (diff) | |
download | external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.zip external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.tar.gz external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.tar.bz2 |
Merge WebKit at r75993: Initial merge by git.
Change-Id: I602bbdc3974787a3b0450456a30a7868286921c3
Diffstat (limited to 'Source/WebCore/wml/WMLInputElement.cpp')
-rw-r--r-- | Source/WebCore/wml/WMLInputElement.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/WebCore/wml/WMLInputElement.cpp b/Source/WebCore/wml/WMLInputElement.cpp index 2d7310a..687a387 100644 --- a/Source/WebCore/wml/WMLInputElement.cpp +++ b/Source/WebCore/wml/WMLInputElement.cpp @@ -142,7 +142,7 @@ String WMLInputElement::value() const return value; } -void WMLInputElement::setValue(const String& value, bool sendChangeEvent) +void WMLInputElement::setValue(const String& value, bool) { setFormControlValueMatchesRenderer(false); m_data.setValue(constrainValue(value)); @@ -161,7 +161,7 @@ void WMLInputElement::setValue(const String& value, bool sendChangeEvent) InputElement::notifyFormStateChanged(this); } -void WMLInputElement::setValueForUser(const String& value) +void WMLInputElement::setValueForUser(const String&) { /* InputElement class defines pure virtual function 'setValueForUser', which will be useful only in HTMLInputElement. Do nothing in 'WMLInputElement'. @@ -374,7 +374,7 @@ void WMLInputElement::initialize() if (!hasAttribute(WMLNames::emptyokAttr)) { if (m_formatMask.isEmpty() || // check if the format codes is just "*f" - (m_formatMask.length() == 2 && m_formatMask[0] == '*' && formatCodes().find(m_formatMask[1]) != -1)) + (m_formatMask.length() == 2 && m_formatMask[0] == '*' && formatCodes().find(m_formatMask[1]) != notFound)) m_isEmptyOk = true; } } @@ -389,11 +389,11 @@ String WMLInputElement::validateInputMask(const String& inputMask) for (unsigned i = 0; i < maskLength; ++i) { formatCode = inputMask[i]; - if (formatCodes().find(formatCode) == -1) { + if (formatCodes().find(formatCode) == notFound) { if (formatCode == '*' || (WTF::isASCIIDigit(formatCode) && formatCode != '0')) { // validate codes which ends with '*f' or 'nf' formatCode = inputMask[++i]; - if ((i + 1 != maskLength) || formatCodes().find(formatCode) == -1) { + if ((i + 1 != maskLength) || formatCodes().find(formatCode) == notFound) { isValid = false; break; } |