Back to index

lightning-sunbird  0.9+nobinonly
Classes | Typedefs | Functions
nsXTFXMLDisplayFrame.cpp File Reference
#include "nsCOMPtr.h"
#include "nsStyleSet.h"
#include "nsPresContext.h"
#include "nsIPresShell.h"
#include "nsBlockFrame.h"
#include "nsInlineFrame.h"
#include "nsIXTFXMLVisual.h"
#include "nsIDOMElement.h"
#include "nsIXTFVisualWrapperPrivate.h"
#include "nsIAnonymousContentCreator.h"
#include "nsXTFFrameUtils.h"

Go to the source code of this file.

Classes

class  nsXTFXMLBlockDisplayFrame
class  nsXTFXMLInlineDisplayFrame

Typedefs

typedef nsBlockFrame nsXTFXMLBlockDisplayFrameBase
typedef nsInlineFrame nsXTFXMLInlineDisplayFrameBase

Functions

nsresult NS_NewXTFXMLDisplayFrame (nsIPresShell *aPresShell, PRBool isBlock, nsIFrame **aNewFrame)

Typedef Documentation

Definition at line 58 of file nsXTFXMLDisplayFrame.cpp.

Definition at line 155 of file nsXTFXMLDisplayFrame.cpp.


Function Documentation

nsresult NS_NewXTFXMLDisplayFrame ( nsIPresShell aPresShell,
PRBool  isBlock,
nsIFrame **  aNewFrame 
)

Definition at line 249 of file nsXTFXMLDisplayFrame.cpp.

{
  if (isBlock)
    *aNewFrame = new (aPresShell) nsXTFXMLBlockDisplayFrame();
  else
    *aNewFrame = new (aPresShell) nsXTFXMLInlineDisplayFrame();
  
  if (nsnull == *aNewFrame)
    return NS_ERROR_OUT_OF_MEMORY;

  return NS_OK;
}