Back to index

lightning-sunbird  0.9+nobinonly
Classes | Typedefs | Functions
nsSVGUseFrame.cpp File Reference
#include "nsIDOMSVGTransformable.h"
#include "nsSVGDefsFrame.h"
#include "nsIDOMSVGAnimatedLength.h"
#include "nsSVGLength.h"
#include "nsSVGGFrame.h"
#include "nsIDOMSVGUseElement.h"
#include "nsISVGValue.h"
#include "nsIAnonymousContentCreator.h"
#include "nsSVGMatrix.h"
#include "nsLayoutAtoms.h"

Go to the source code of this file.

Classes

class  nsSVGUseFrame

Typedefs

typedef nsSVGGFrame nsSVGUseFrameBase

Functions

nsresult NS_NewSVGUseFrame (nsIPresShell *aPresShell, nsIContent *aContent, nsIFrame **aNewFrame)

Typedef Documentation

Definition at line 48 of file nsSVGUseFrame.cpp.


Function Documentation

nsresult NS_NewSVGUseFrame ( nsIPresShell aPresShell,
nsIContent aContent,
nsIFrame **  aNewFrame 
)

Definition at line 102 of file nsSVGUseFrame.cpp.

{
  *aNewFrame = nsnull;
  
  nsCOMPtr<nsIDOMSVGTransformable> transformable = do_QueryInterface(aContent);
  if (!transformable) {
#ifdef DEBUG
    printf("warning: trying to construct an SVGUseFrame for a content element that doesn't support the right interfaces\n");
#endif
    return NS_ERROR_FAILURE;
  }
  
  nsSVGUseFrame* it = new (aPresShell) nsSVGUseFrame;
  if (it == nsnull)
    return NS_ERROR_OUT_OF_MEMORY;

  *aNewFrame = it;

  return NS_OK;
}

Here is the call graph for this function: