Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGPolylineFrame.cpp File Reference
#include "nsSVGPathGeometryFrame.h"
#include "nsIDOMSVGAnimatedPoints.h"
#include "nsIDOMSVGPointList.h"
#include "nsIDOMSVGPoint.h"
#include "nsISVGRendererPathBuilder.h"
#include "nsISVGMarkable.h"
#include "nsSVGMarkerFrame.h"
#include "nsLayoutAtoms.h"

Go to the source code of this file.

Classes

class  nsSVGPolylineFrame

Functions

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

Function Documentation

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

Definition at line 104 of file nsSVGPolylineFrame.cpp.

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

  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function: