Back to index

lightning-sunbird  0.9+nobinonly
Classes | Typedefs | Functions
nsSVGStopFrame.cpp File Reference
#include "nsWeakReference.h"
#include "nsIDOMSVGStopElement.h"
#include "nsStyleContext.h"
#include "nsContainerFrame.h"
#include "nsLayoutAtoms.h"
#include "nsIDOMSVGAnimatedNumber.h"
#include "nsISVGValueObserver.h"
#include "nsISVGValueUtils.h"
#include "nsISVGValue.h"

Go to the source code of this file.

Classes

class  nsSVGStopFrame

Typedefs

typedef nsFrame nsSVGStopFrameBase

Functions

nsresult NS_NewSVGStopFrame (nsIPresShell *aPresShell, nsIContent *aContent, nsIFrame *aParentFrame, nsIFrame **aNewFrame)

Typedef Documentation

Definition at line 54 of file nsSVGStopFrame.cpp.


Function Documentation

nsresult NS_NewSVGStopFrame ( nsIPresShell aPresShell,
nsIContent aContent,
nsIFrame aParentFrame,
nsIFrame **  aNewFrame 
)

Definition at line 208 of file nsSVGStopFrame.cpp.

{
  *aNewFrame = nsnull;
  
#ifdef DEBUG_scooter
  printf("NS_NewSVGStopFrame\n");
#endif

  nsCOMPtr<nsIDOMSVGStopElement> grad = do_QueryInterface(aContent);
  NS_ASSERTION(grad, "NS_NewSVGStopFrame -- Content doesn't support nsIDOMSVGStopElement");
  if (!grad)
    return NS_ERROR_FAILURE;

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

  *aNewFrame = it;

  return NS_OK;
}

Here is the call graph for this function: