Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsGfxFactoryXlib.cpp File Reference
#include "nsIGenericFactory.h"
#include "nsIModule.h"
#include "nsCOMPtr.h"
#include "nsGfxCIID.h"
#include "nsBlender.h"
#include "nsFontMetricsXlib.h"
#include "nsRenderingContextXlib.h"
#include "nsDeviceContextSpecXlib.h"
#include "nsDeviceContextSpecFactoryX.h"
#include "nsScreenManagerXlib.h"
#include "nsScriptableRegion.h"
#include "nsDeviceContextXlib.h"
#include "nsImageXlib.h"
#include "nsFontList.h"
#include "nsPrintOptionsXlib.h"
#include "nsPrintSession.h"
#include "gfxImageFrame.h"

Go to the source code of this file.

Functions

static nsresult nsScriptableRegionConstructor (nsISupports *aOuter, REFNSIID aIID, void **aResult)
 nsGfxXlibModuleDtor (nsIModule *self)

Variables

static const nsModuleComponentInfo components []

Function Documentation

Definition at line 201 of file nsGfxFactoryXlib.cpp.

{
}
static nsresult nsScriptableRegionConstructor ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 82 of file nsGfxFactoryXlib.cpp.

{
  nsresult rv;

  nsIScriptableRegion *inst = nsnull;

  if ( NULL == aResult )
  {
    rv = NS_ERROR_NULL_POINTER;
    return rv;
  }
  *aResult = NULL;
  if (NULL != aOuter)
  {
    rv = NS_ERROR_NO_AGGREGATION;
    return rv;
  }
  // create an nsRegionXlib and get the scriptable region from it
  nsCOMPtr <nsIRegion> rgn;
  NS_NEWXPCOM(rgn, nsRegionXlib);
  if (rgn != nsnull)
  {
    nsCOMPtr<nsIScriptableRegion> scriptableRgn = new nsScriptableRegion(rgn);
    inst = scriptableRgn;
  }
  if (NULL == inst)
  {
    rv = NS_ERROR_OUT_OF_MEMORY;
    return rv;
  }
  NS_ADDREF(inst);
  rv = inst->QueryInterface(aIID, aResult);
  NS_RELEASE(inst);

  return rv;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 119 of file nsGfxFactoryXlib.cpp.