Suppress NS_MOVE,NS_CREATE, NS_SETZLEVEL events in the viewmanager. b=112861 r=rods sr=attinasi

This commit is contained in:
kmcclusk%netscape.com 2001-12-06 02:40:41 +00:00
parent 046f20a06d
commit 34f7670747

View File

@ -1817,7 +1817,13 @@ NS_IMETHODIMP nsViewManager::DispatchEvent(nsGUIEvent *aEvent, nsEventStatus *aS
break;
}
case NS_CREATE:
case NS_DESTROY:
case NS_SETZLEVEL:
case NS_MOVE:
/* Don't pass these events through. Passing them through
causes performance problems on pages with lots of views/frames
@see bug 112861 */
*aStatus = nsEventStatus_eConsumeNoDefault;
break;