Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGLibartBitmapMac.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  nsSVGLibartBitmapMac
 A libart bitmap implementation based on gfxIImageFrame that should work for Mac but doesn't support obtaining RenderingContexts with Lock/UnlockRenderingContext. 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 139 of file nsSVGLibartBitmapMac.cpp.

  nsSVGLibartBitmapMac* bm = new nsSVGLibartBitmapMac();
  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:

Here is the caller graph for this function: