Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsSVGImageFrame.cpp File Reference
#include "nsSVGPathGeometryFrame.h"
#include "nsIDOMSVGAnimatedLength.h"
#include "nsIDOMSVGLength.h"
#include "nsIDOMSVGImageElement.h"
#include "nsIDOMSVGElement.h"
#include "nsISVGRendererPathBuilder.h"
#include "nsISVGRendererSurface.h"
#include "nsISVGRendererCanvas.h"
#include "nsISVGRenderer.h"
#include "nsIDOMSVGMatrix.h"
#include "nsIDOMSVGAnimPresAspRatio.h"
#include "nsIDOMSVGPresAspectRatio.h"
#include "imgIDecoderObserver.h"
#include "imgIContainerObserver.h"
#include "nsIImageLoadingContent.h"
#include "imgIContainer.h"
#include "gfxIImageFrame.h"
#include "nsIImage.h"
#include "imgIRequest.h"
#include "nsSVGClipPathFrame.h"
#include "nsLayoutAtoms.h"
#include "nsSVGUtils.h"

Go to the source code of this file.

Classes

class  nsSVGImageListener
class  nsSVGImageFrame

Defines

#define NS_GET_BIT(rowptr, x)   (rowptr[(x)>>3] & (1<<(7-(x)&0x7)))

Functions

nsresult NS_NewSVGImageFrame (nsIPresShell *aPresShell, nsIContent *aContent, nsIFrame **aNewFrame)
 NS_IMPL_ISUPPORTS2 (nsSVGImageListener, imgIDecoderObserver, imgIContainerObserver) nsSVGImageListener

Define Documentation

#define NS_GET_BIT (   rowptr,
  x 
)    (rowptr[(x)>>3] & (1<<(7-(x)&0x7)))

Definition at line 60 of file nsSVGImageFrame.cpp.


Function Documentation

Definition at line 733 of file nsSVGImageFrame.cpp.

                                                              :  mFrame(aFrame)
{
}
nsresult NS_NewSVGImageFrame ( nsIPresShell aPresShell,
nsIContent aContent,
nsIFrame **  aNewFrame 
)

Definition at line 142 of file nsSVGImageFrame.cpp.

{
  *aNewFrame = nsnull;

  nsCOMPtr<nsIDOMSVGImageElement> Rect = do_QueryInterface(aContent);
  if (!Rect) {
#ifdef DEBUG
    printf("warning: trying to construct an SVGImageFrame for a content element that doesn't support the right interfaces\n");
#endif
    return NS_ERROR_FAILURE;
  }

  nsSVGImageFrame* it = new (aPresShell) nsSVGImageFrame;
  if (nsnull == it)
    return NS_ERROR_OUT_OF_MEMORY;

  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function: