Bug 673440 - add support for NPNVSupportsCompositingCoreAnimationPluginsBool; r=josh

This commit is contained in:
Benoit Girard 2011-07-31 13:37:06 -04:00
parent a4e884d4db
commit 5892baba3e
2 changed files with 18 additions and 8 deletions

View File

@ -2189,18 +2189,23 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
return NPERR_NO_ERROR;
}
case NPNVsupportsCoreAnimationBool: {
*(NPBool*)result = PR_TRUE;
case NPNVsupportsCoreAnimationBool: {
*(NPBool*)result = PR_TRUE;
return NPERR_NO_ERROR;
}
return NPERR_NO_ERROR;
}
case NPNVsupportsInvalidatingCoreAnimationBool: {
*(NPBool*)result = PR_TRUE;
case NPNVsupportsInvalidatingCoreAnimationBool: {
*(NPBool*)result = PR_TRUE;
return NPERR_NO_ERROR;
}
return NPERR_NO_ERROR;
}
case NPNVSupportsCompositingCoreAnimationPluginsBool: {
*(NPBool*)result = PR_TRUE;
return NPERR_NO_ERROR;
}
#ifndef NP_NO_CARBON
case NPNVsupportsCarbonBool: {

View File

@ -402,6 +402,11 @@ PluginInstanceChild::NPN_GetValue(NPNVariable aVar,
return NPERR_NO_ERROR;
}
case NPNVSupportsCompositingCoreAnimationPluginsBool: {
*((NPBool*)aValue) = true;
return NPERR_NO_ERROR;
}
case NPNVsupportsCocoaBool: {
*((NPBool*)aValue) = true;
return NPERR_NO_ERROR;