From 16c3058c54229b7f0370c19f458b84af48dc36e1 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 11 Apr 2014 11:09:40 -0400 Subject: [PATCH] Bug 994940 - Lazily initialize the editor for input elements that have overflown text; r=roc --- content/html/content/src/HTMLInputElement.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/html/content/src/HTMLInputElement.cpp b/content/html/content/src/HTMLInputElement.cpp index ca5bb99ff285..0c597a092635 100644 --- a/content/html/content/src/HTMLInputElement.cpp +++ b/content/html/content/src/HTMLInputElement.cpp @@ -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;