Bug 994940 - Lazily initialize the editor for input elements that have overflown text; r=roc

This commit is contained in:
Ehsan Akhgari 2014-04-11 11:09:40 -04:00
Родитель 3f38fa6efe
Коммит 16c3058c54
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -3230,7 +3230,7 @@ HTMLInputElement::NeedToInitializeEditorForEvent(
// are lazily initialized. We don't need to initialize the control for
// certain types of events, because we know that those events are safe to be
// handled without the editor being initialized. These events include:
// mousein/move/out, and DOM mutation events.
// mousein/move/out, overflow/underflow, and DOM mutation events.
if (!IsSingleLineTextControl(false) ||
aVisitor.mEvent->eventStructType == NS_MUTATION_EVENT) {
return false;
@ -3242,6 +3242,8 @@ HTMLInputElement::NeedToInitializeEditorForEvent(
case NS_MOUSE_EXIT:
case NS_MOUSE_ENTER_SYNTH:
case NS_MOUSE_EXIT_SYNTH:
case NS_SCROLLPORT_UNDERFLOW:
case NS_SCROLLPORT_OVERFLOW:
return false;
default:
return true;