Bug 556487 - Disable layers for non-ipc usage. r=roc a=blocking2.0

This commit is contained in:
Oleg Romashin 2010-09-16 21:09:27 -07:00
parent 0bd5de10b8
commit d0a0315771

View File

@ -2821,6 +2821,10 @@ nsPluginInstanceOwner::SetInstance(nsIPluginInstance *aInstance)
NS_ASSERTION(!mInstance || !aInstance, "mInstance should only be set once!");
mInstance = aInstance;
PRBool useAsyncPainting = PR_FALSE;
if (mInstance &&
NS_SUCCEEDED(mInstance->UseAsyncPainting(&useAsyncPainting)))
mUsePluginLayers = useAsyncPainting;
return NS_OK;
}