Bug 599704 - mozilla.plugins.use_layers - does not have any effect. r=roc a=beta7

This commit is contained in:
Oleg Romashin 2010-09-29 20:32:55 -07:00
Родитель 37c7622be4
Коммит 8dbc102a0e
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -2881,8 +2881,10 @@ nsPluginInstanceOwner::SetInstance(nsIPluginInstance *aInstance)
mInstance = aInstance;
PRBool useAsyncPainting = PR_FALSE;
if (mInstance &&
NS_SUCCEEDED(mInstance->UseAsyncPainting(&useAsyncPainting)))
mUsePluginLayers = useAsyncPainting;
mUsePluginLayers &&
NS_SUCCEEDED(mInstance->UseAsyncPainting(&useAsyncPainting)) &&
!useAsyncPainting)
mUsePluginLayers = PR_FALSE;
return NS_OK;
}