Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGEllipseFrame.cpp File Reference
#include "nsSVGPathGeometryFrame.h"
#include "nsIDOMSVGAnimatedLength.h"
#include "nsIDOMSVGLength.h"
#include "nsIDOMSVGPoint.h"
#include "nsIDOMSVGEllipseElement.h"
#include "nsIDOMSVGElement.h"
#include "nsIDOMSVGSVGElement.h"
#include "nsISVGRendererPathBuilder.h"
#include "nsLayoutAtoms.h"

Go to the source code of this file.


class  nsSVGEllipseFrame


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

Function Documentation

nsresult NS_NewSVGEllipseFrame ( nsIPresShell aPresShell,
nsIContent aContent,
nsIFrame **  aNewFrame 

Definition at line 90 of file nsSVGEllipseFrame.cpp.

  *aNewFrame = nsnull;

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

  nsSVGEllipseFrame* it = new (aPresShell) nsSVGEllipseFrame;
  if (nsnull == it)

  *aNewFrame = it;
  return NS_OK;

Here is the call graph for this function: