Bug 1253534 - Suspicious code with probably reversed parms in call to IsSingleLineTextControl, r=mounir

This commit is contained in:
Mark Capella
2016-03-05 22:04:41 -05:00
parent a3661f3652
commit 35395c0ef4

View File

@@ -4357,8 +4357,8 @@ HTMLInputElement::HandleTypeChange(uint8_t aNewType)
// previous type does, we should clear out mFocusedValue.
if (MayFireChangeOnBlur(mType) && !MayFireChangeOnBlur(oldType)) {
GetValue(mFocusedValue);
} else if (!IsSingleLineTextControl(mType, false) &&
IsSingleLineTextControl(oldType, false)) {
} else if (!IsSingleLineTextControl(false, mType) &&
IsSingleLineTextControl(false, oldType)) {
mFocusedValue.Truncate();
}