Bug 498340. Backout previous fix

This commit is contained in:
Robert O'Callahan 2009-11-16 11:48:18 +13:00
parent b3b8c2e1b9
commit df12cdae81

View File

@ -451,6 +451,7 @@ void nsViewManager::Refresh(nsView *aView, nsIRenderingContext *aContext,
}
{
nsAutoScriptBlocker scriptBlocker;
SetPainting(PR_TRUE);
nsCOMPtr<nsIRenderingContext> localcx;
@ -898,12 +899,6 @@ NS_IMETHODIMP nsViewManager::DispatchEvent(nsGUIEvent *aEvent,
{
nsPaintEvent *event = static_cast<nsPaintEvent*>(aEvent);
// We don't want script to execute anywhere in here. Since
// the widget layer has already set up a DC for painting,
// scripted changes to the widget tree (or accidental changes
// induced by script) can make painting very confused.
nsAutoScriptBlocker scriptBlocker;
if (!aView || !mContext)
break;