Back to index

lightning-sunbird  0.9+nobinonly
Classes | Typedefs | Functions
nsSVGOuterSVGFrame.cpp File Reference
#include "nsContainerFrame.h"
#include "nsCSSRendering.h"
#include "nsISVGSVGElement.h"
#include "nsPresContext.h"
#include "nsIDOMSVGAnimatedLength.h"
#include "nsIDOMSVGLength.h"
#include "nsISVGContainerFrame.h"
#include "nsISVGChildFrame.h"
#include "nsISVGOuterSVGFrame.h"
#include "nsISVGRendererCanvas.h"
#include "nsIView.h"
#include "nsIViewManager.h"
#include "nsWeakReference.h"
#include "nsISVGValue.h"
#include "nsISVGValueObserver.h"
#include "nsHTMLParts.h"
#include "nsReflowPath.h"
#include "nsISVGRenderer.h"
#include "nsISVGRendererRegion.h"
#include "nsIServiceManager.h"
#include "nsISVGRectangleSink.h"
#include "nsISVGValueUtils.h"
#include "nsIDOMSVGRect.h"
#include "nsIDOMSVGNumber.h"
#include "nsSVGCoordCtxProvider.h"
#include "nsISVGEnum.h"
#include "nsIDOMSVGPoint.h"
#include "nsIDOMSVGZoomAndPan.h"
#include "nsIDOMSVGAnimatedRect.h"
#include "nsIDOMSVGFitToViewBox.h"
#include "nsSVGRect.h"
#include "nsLayoutAtoms.h"
#include "nsIDocument.h"

Go to the source code of this file.

Classes

class  VMRectInvalidator
class  nsSVGOuterSVGFrame

Typedefs

typedef nsContainerFrame nsSVGOuterSVGFrameBase

Functions

already_AddRefed
< nsISVGRectangleSink
CreateVMRectInvalidator (nsIViewManager *vm, nsIView *view, int twipsPerPx)
nsresult NS_NewSVGOuterSVGFrame (nsIPresShell *aPresShell, nsIContent *aContent, nsIFrame **aNewFrame)

Typedef Documentation

Definition at line 158 of file nsSVGOuterSVGFrame.cpp.


Function Documentation

Definition at line 118 of file nsSVGOuterSVGFrame.cpp.

{
  nsISVGRectangleSink* retval = new VMRectInvalidator(vm, view, twipsPerPx);
  NS_IF_ADDREF(retval);
  return retval;
}

Here is the caller graph for this function:

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

Definition at line 296 of file nsSVGOuterSVGFrame.cpp.

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

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

  *aNewFrame = it;

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: