Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsHTMLParts.h File Reference
#include "nscore.h"
#include "nsISupports.h"
#include "nsReflowType.h"

Go to the source code of this file.

Defines

#define NS_BLOCK_SHRINK_WRAP   0x00100000
 Additional frame-state bits used by nsBlockFrame See the meanings at http://www.mozilla.org/newlayout/doc/block-and-line.html.
#define NS_BLOCK_NO_AUTO_MARGINS   0x00200000
#define NS_BLOCK_MARGIN_ROOT   0x00400000
#define NS_BLOCK_SPACE_MGR   0x00800000
#define NS_BLOCK_HAS_FIRST_LETTER_STYLE   0x20000000
#define NS_BLOCK_FRAME_HAS_OUTSIDE_BULLET   0x40000000
#define NS_BLOCK_FLAGS_MASK   0xF0F00000

Functions

nsresult NS_NewFrameContentIterator (nsPresContext *aPresContext, nsIFrame *aFrame, nsIContentIterator **aIterator)
nsresult NS_NewBlockFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, PRUint32 aFlags=0)
nsresult NS_NewAttributeContent (nsNodeInfoManager *aNodeInfoManager, PRInt32 aNameSpaceID, nsIAtom *aAttrName, nsIContent **aResult)
nsresult NS_NewSelectsAreaFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, PRUint32 aFlags)
nsresult NS_NewAreaFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, PRUint32 aFlags)
nsresult NS_NewTableCellInnerFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewDocumentElementFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewAbsoluteItemWrapperFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewFloatingItemWrapperFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewRelativeItemWrapperFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewBRFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewCommentFrame (nsIPresShell *aPresShell, nsIFrame **aFrameResult)
nsresult NS_NewSubDocumentFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewHTMLFramesetFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewViewportFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewCanvasFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewImageFrame (nsIPresShell *aPresShell, nsIFrame **aFrameResult)
nsresult NS_NewInlineFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewPositionedInlineFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewObjectFrame (nsIPresShell *aPresShell, nsIFrame **aFrameResult)
nsresult NS_NewSpacerFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewTextFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewContinuingTextFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewEmptyFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewWBRFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewColumnSetFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, PRUint32 aStateFlags)
 Tracking issues:
nsresult NS_NewSimplePageSequenceFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewPageFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewPageContentFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewPageBreakFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewFirstLetterFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewFirstLineFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewGfxButtonControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewNativeButtonControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewImageControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewHTMLButtonControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewGfxCheckboxControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewNativeCheckboxControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewFieldSetFrame (nsIPresShell *aPresShell, nsIFrame **aResult, PRUint32 aFlags)
nsresult NS_NewFileControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewLegendFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewNativeTextControlFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewTextControlFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewGfxAutoTextControlFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewGfxRadioControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewNativeRadioControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewNativeSelectControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewListControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewComboboxControlFrame (nsIPresShell *aPresShell, nsIFrame **aResult, PRUint32 aFlags)
nsresult NS_NewIsIndexFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewTableOuterFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewTableFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewTableCaptionFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewTableColFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewTableColGroupFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewTableRowFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewTableRowGroupFrame (nsIPresShell *aPresShell, nsIFrame **aResult)
nsresult NS_NewTableCellFrame (nsIPresShell *aPresShell, PRBool aIsBorderCollapse, nsIFrame **aResult)
nsresult NS_NewHTMLContentSink (nsIHTMLContentSink **aInstancePtrResult, nsIDocument *aDoc, nsIURI *aURL, nsISupports *aContainer, nsIChannel *aChannel)
nsresult NS_NewHTMLFragmentContentSink (nsIFragmentContentSink **aInstancePtrResult)
nsresult NS_NewHTMLFragmentContentSink2 (nsIFragmentContentSink **aInstancePtrResult)
nsresult NS_NewHTMLParanoidFragmentSink (nsIFragmentContentSink **aInstancePtrResult)
void NS_HTMLParanoidFragmentSinkShutdown ()

Define Documentation

#define NS_BLOCK_FLAGS_MASK   0xF0F00000

Definition at line 71 of file nsHTMLParts.h.

Definition at line 68 of file nsHTMLParts.h.

Definition at line 67 of file nsHTMLParts.h.

#define NS_BLOCK_MARGIN_ROOT   0x00400000

Definition at line 65 of file nsHTMLParts.h.

#define NS_BLOCK_NO_AUTO_MARGINS   0x00200000

Definition at line 64 of file nsHTMLParts.h.

#define NS_BLOCK_SHRINK_WRAP   0x00100000

Additional frame-state bits used by nsBlockFrame See the meanings at http://www.mozilla.org/newlayout/doc/block-and-line.html.

Definition at line 63 of file nsHTMLParts.h.

#define NS_BLOCK_SPACE_MGR   0x00800000

Definition at line 66 of file nsHTMLParts.h.


Function Documentation

Definition at line 1047 of file nsHTMLFragmentContentSink.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewAbsoluteItemWrapperFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
) [inline]

Definition at line 125 of file nsHTMLParts.h.

                                                                               {
  return NS_NewAreaFrame(aPresShell, aNewFrame, NS_BLOCK_SPACE_MGR|NS_BLOCK_MARGIN_ROOT);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewAreaFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
PRUint32  aFlags 
)

Definition at line 59 of file nsAreaFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsAreaFrame* it = new (aPresShell) nsAreaFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  it->SetFlags(aFlags);
  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewAttributeContent ( nsNodeInfoManager aNodeInfoManager,
PRInt32  aNameSpaceID,
nsIAtom aAttrName,
nsIContent **  aResult 
)

Definition at line 314 of file nsTextNode.cpp.

{
  NS_PRECONDITION(aNodeInfoManager, "Missing nodeInfoManager");
  NS_PRECONDITION(aAttrName, "Must have an attr name");
  NS_PRECONDITION(aNameSpaceID != kNameSpaceID_Unknown, "Must know namespace");
  
  *aResult = nsnull;
  
  nsRefPtr<nsAttributeTextNode> textNode =
    new nsAttributeTextNode(aNodeInfoManager);
  if (!textNode) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  textNode->mListener =
    new nsAttributeTextNode::nsAttrChangeListener(aNameSpaceID,
                                                  aAttrName,
                                                  textNode);
  NS_ENSURE_TRUE(textNode->mListener, NS_ERROR_OUT_OF_MEMORY);

  NS_ADDREF(*aResult = textNode);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewBlockFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
PRUint32  aFlags = 0 
)

Definition at line 265 of file nsBlockFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsBlockFrame* it = new (aPresShell) nsBlockFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  it->SetFlags(aFlags);
  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewBRFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 84 of file nsBRFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsIFrame* frame = new (aPresShell) BRFrame;
  if (nsnull == frame) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = frame;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewCanvasFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 163 of file nsHTMLFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  CanvasFrame* it = new (aPresShell)CanvasFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewColumnSetFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
PRUint32  aStateFlags 
)

Tracking issues:

XXX cursor movement around the top and bottom of colums seems to make the editor lose the caret.

XXX should we support CSS columns applied to table elements?

Definition at line 144 of file nsColumnSetFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");

  nsColumnSetFrame* it = new (aPresShell) nsColumnSetFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  // set the state flags (if any are provided)
  it->AddStateBits(aStateFlags);
  
  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewComboboxControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult,
PRUint32  aFlags 
)

Definition at line 199 of file nsComboboxControlFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsComboboxControlFrame* it = new (aPresShell) nsComboboxControlFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  // set the state flags (if any are provided)
  it->AddStateBits(aStateFlags);
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewCommentFrame ( nsIPresShell aPresShell,
nsIFrame **  aFrameResult 
)
nsresult NS_NewContinuingTextFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 1475 of file nsTextFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsContinuingTextFrame* it = new (aPresShell) nsContinuingTextFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewDocumentElementFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
) [inline]

Definition at line 119 of file nsHTMLParts.h.

                                                                           {
  return NS_NewAreaFrame(aPresShell, aNewFrame, NS_BLOCK_SPACE_MGR|NS_BLOCK_MARGIN_ROOT);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewEmptyFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 425 of file nsFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsFrame* it = new (aPresShell) nsFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewFieldSetFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult,
PRUint32  aFlags 
)

Definition at line 131 of file nsFieldSetFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsFieldSetFrame* it = new (aPresShell) nsFieldSetFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  // set the state flags (if any are provided)
  it->AddStateBits(aStateFlags);
  
  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewFileControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 81 of file nsFileControlFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsFileControlFrame* it = new (aPresShell) nsFileControlFrame();
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewFirstLetterFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 94 of file nsFirstLetterFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsFirstLetterFrame* it = new (aPresShell) nsFirstLetterFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewFirstLineFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 990 of file nsInlineFrame.cpp.

{
  NS_PRECONDITION(nsnull != aNewFrame, "null ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsInlineFrame* it = new (aPresShell) nsFirstLineFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewFloatingItemWrapperFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
) [inline]

Definition at line 131 of file nsHTMLParts.h.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewFrameContentIterator ( nsPresContext aPresContext,
nsIFrame aFrame,
nsIContentIterator **  aIterator 
)

Definition at line 266 of file nsFrameContentIterator.cpp.

{
  NS_ENSURE_ARG_POINTER(aIterator);
  if (!aIterator) {
    return NS_ERROR_NULL_POINTER;
  }
  NS_ENSURE_ARG_POINTER(aFrame);
  if (!aFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  
  // Make sure the frame corresponds to generated content
  NS_ASSERTION(aFrame->GetStateBits() & NS_FRAME_GENERATED_CONTENT, "unexpected frame");

  nsFrameContentIterator* it = new nsFrameContentIterator(aPresContext, aFrame);
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  return it->QueryInterface(NS_GET_IID(nsIContentIterator), (void **)aIterator);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewGfxAutoTextControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)
nsresult NS_NewGfxButtonControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 71 of file nsGfxButtonControlFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsGfxButtonControlFrame* it = new (aPresShell) nsGfxButtonControlFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewGfxCheckboxControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 61 of file nsGfxCheckboxControlFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsGfxCheckboxControlFrame* it = new (aPresShell) nsGfxCheckboxControlFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewGfxRadioControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 57 of file nsGfxRadioControlFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsGfxRadioControlFrame* it = new (aPresShell) nsGfxRadioControlFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewHTMLButtonControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 75 of file nsHTMLButtonControlFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsHTMLButtonControlFrame* it = new (aPresShell) nsHTMLButtonControlFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewHTMLContentSink ( nsIHTMLContentSink **  aInstancePtrResult,
nsIDocument aDoc,
nsIURI aURL,
nsISupports *  aContainer,
nsIChannel aChannel 
)

Definition at line 1807 of file nsHTMLContentSink.cpp.

{
  NS_ENSURE_ARG_POINTER(aResult);

  nsRefPtr<HTMLContentSink> it = new HTMLContentSink();

  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  nsresult rv = it->Init(aDoc, aURI, aContainer, aChannel);

  NS_ENSURE_SUCCESS(rv, rv);

  *aResult = it;
  NS_ADDREF(*aResult);

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 198 of file nsHTMLFragmentContentSink.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 192 of file nsHTMLFragmentContentSink.cpp.

Here is the call graph for this function:

nsresult NS_NewHTMLFramesetFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 1591 of file nsFrameSetFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsHTMLFramesetFrame* it = new (aPresShell) nsHTMLFramesetFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

Definition at line 1033 of file nsHTMLFragmentContentSink.cpp.

Here is the call graph for this function:

nsresult NS_NewImageControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 154 of file nsImageControlFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsImageControlFrame* it = new (aPresShell) nsImageControlFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewImageFrame ( nsIPresShell aPresShell,
nsIFrame **  aFrameResult 
)

Definition at line 171 of file nsImageFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsImageFrame* it = new (aPresShell) nsImageFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewInlineFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 71 of file nsInlineFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsInlineFrame* it = new (aPresShell) nsInlineFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewIsIndexFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 86 of file nsIsIndexFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsIsIndexFrame* it = new (aPresShell) nsIsIndexFrame();
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewLegendFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 59 of file nsLegendFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsLegendFrame* it = new (aPresShell) nsLegendFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewListControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 160 of file nsListControlFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsListControlFrame* it =
    new (aPresShell) nsListControlFrame(aPresShell, aPresShell->GetDocument());
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  it->AddStateBits(NS_FRAME_INDEPENDENT_SELECTION);
#if 0
  // set the state flags (if any are provided)
  it->AddStateBits(NS_BLOCK_SPACE_MGR);
#endif
  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewNativeButtonControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)
nsresult NS_NewNativeCheckboxControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)
nsresult NS_NewNativeRadioControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)
nsresult NS_NewNativeSelectControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)
nsresult NS_NewNativeTextControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)
nsresult NS_NewObjectFrame ( nsIPresShell aPresShell,
nsIFrame **  aFrameResult 
)

Definition at line 2204 of file nsObjectFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsObjectFrame* it = new (aPresShell) nsObjectFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewPageBreakFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 697 of file nsPageFrame.cpp.

{
  NS_PRECONDITION(aPresShell && aNewFrame, "null PresShell or OUT ptr");
#ifdef DEBUG
  //check that we are only creating page break frames when printing
  NS_ASSERTION(aPresShell->GetPresContext()->IsPaginated(), "created a page break frame while not printing");
#endif

  nsPageBreakFrame* it = new (aPresShell) nsPageBreakFrame;
  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:

nsresult NS_NewPageContentFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 57 of file nsPageContentFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");

  nsPageContentFrame* it = new (aPresShell) nsPageContentFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewPageFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 98 of file nsPageFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");

  nsPageFrame* it = new (aPresShell) nsPageFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewPositionedInlineFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 1162 of file nsInlineFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsPositionedInlineFrame* it = new (aPresShell) nsPositionedInlineFrame();
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewRelativeItemWrapperFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
) [inline]

Definition at line 138 of file nsHTMLParts.h.

                                                                               {
  return NS_NewAreaFrame(aPresShell, aNewFrame, 0);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSelectsAreaFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
PRUint32  aFlags 
)

Definition at line 45 of file nsSelectsAreaFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsSelectsAreaFrame* it = new (aShell) nsSelectsAreaFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  // We need NS_BLOCK_SPACE_MGR to ensure that the options inside the select
  // aren't expanded by right floats outside the select.
  it->SetFlags(aFlags | NS_BLOCK_SPACE_MGR);
  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSimplePageSequenceFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 110 of file nsSimplePageSequence.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsSimplePageSequenceFrame*  it = new (aPresShell) nsSimplePageSequenceFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewSpacerFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 69 of file nsSpacerFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  SpacerFrame* it = new (aPresShell) SpacerFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewSubDocumentFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 568 of file nsFrameFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsSubDocumentFrame* it = new (aPresShell) nsSubDocumentFrame;
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewTableCaptionFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 88 of file nsTableOuterFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTableCaptionFrame* it = new (aPresShell) nsTableCaptionFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewTableCellFrame ( nsIPresShell aPresShell,
PRBool  aIsBorderCollapse,
nsIFrame **  aResult 
)

Definition at line 1143 of file nsTableCellFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTableCellFrame* it = (aIsBorderCollapse) ? new (aPresShell) nsBCTableCellFrame 
                                             : new (aPresShell) nsTableCellFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewTableCellInnerFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
) [inline]

Definition at line 111 of file nsHTMLParts.h.

                                                                          {
  return NS_NewBlockFrame(aPresShell, aNewFrame,
                          NS_BLOCK_SPACE_MGR|NS_BLOCK_MARGIN_ROOT);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewTableColFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)
Parameters:
aResultthe new object is returned in this out-param
aContentthe table object to map
aParentthe parent of the new frame
Returns:
NS_OK if the frame was properly allocated, otherwise an error code

Definition at line 266 of file nsTableColFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTableColFrame* it = new (aPresShell) nsTableColFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewTableColGroupFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)
Parameters:
aResultthe new object is returned in this out-param
Returns:
NS_OK if the frame was properly allocated, otherwise an error code

Definition at line 586 of file nsTableColGroupFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTableColGroupFrame* it = new (aPresShell) nsTableColGroupFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewTableFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)
Parameters:
aResultthe new object is returned in this out-param
aContentthe table object to map
aParentthe parent of the new frame
Returns:
NS_OK if the frame was properly allocated, otherwise an error code

Definition at line 4157 of file nsTableFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTableFrame* it = new (aPresShell) nsTableFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewTableOuterFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)
Parameters:
aPresShellthe presentation shell
aResultthe new object is returned in this out-param
Returns:
NS_OK if the frame was properly allocated, otherwise an error code

Definition at line 2174 of file nsTableOuterFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTableOuterFrame* it = new (aPresShell) nsTableOuterFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewTableRowFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)
Parameters:
aResultthe new object is returned in this out-param
aContentthe table object to map
aParentthe parent of the new frame
Returns:
NS_OK if the frame was properly allocated, otherwise an error code

Definition at line 1578 of file nsTableRowFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTableRowFrame* it = new (aPresShell) nsTableRowFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewTableRowGroupFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)
Parameters:
aResultthe new object is returned in this out-param
aContentthe table object to map
aParentthe parent of the new frame
Returns:
NS_OK if the frame was properly allocated, otherwise an error code

Definition at line 1773 of file nsTableRowGroupFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTableRowGroupFrame* it = new (aPresShell) nsTableRowGroupFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewTextControlFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 1233 of file nsTextControlFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTextControlFrame* it = new (aPresShell) nsTextControlFrame(aPresShell);
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewTextFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 1460 of file nsTextFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsTextFrame* it = new (aPresShell) nsTextFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewViewportFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 49 of file nsViewportFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  ViewportFrame* it = new (aPresShell) ViewportFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:

nsresult NS_NewWBRFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
) [inline]

Definition at line 176 of file nsHTMLParts.h.

                                                             {
  return NS_NewEmptyFrame(aPresShell, aResult);
}

Here is the call graph for this function:

Here is the caller graph for this function: