Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGLibartBitmapAlpha.cpp File Reference
#include "nsCOMPtr.h"
#include "nsISVGLibartBitmap.h"
#include "nsIRenderingContext.h"
#include "nsIDeviceContext.h"
#include "nsPresContext.h"
#include "nsRect.h"
#include "nsIImage.h"
#include "nsIComponentManager.h"
#include "imgIContainer.h"
#include "gfxIImageFrame.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"

Go to the source code of this file.


class  nsSVGLibartBitmapAlpha
 A libart-bitmap implementation based on gfxIImageFrame that supports compositing through a very ugly hack. More...


nsresult NS_NewSVGLibartBitmap (nsISVGLibartBitmap **result, nsIRenderingContext *ctx, nsPresContext *presContext, const nsRect &rect)

Function Documentation

nsresult NS_NewSVGLibartBitmap ( nsISVGLibartBitmap **  result,
nsIRenderingContext ctx,
nsPresContext presContext,
const nsRect rect 

Definition at line 160 of file nsSVGLibartBitmapAlpha.cpp.

  nsSVGLibartBitmapAlpha* bm = new nsSVGLibartBitmapAlpha();
  if (!bm) return NS_ERROR_OUT_OF_MEMORY;


  nsresult rv = bm->Init(ctx, presContext, rect);

  if (NS_FAILED(rv)) {
    return rv;
  *result = bm;
  return rv;

Here is the call graph for this function: