mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 498340. Backout previous fix
This commit is contained in:
parent
b3b8c2e1b9
commit
df12cdae81
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user