Back to index

lightning-sunbird  0.9+nobinonly
nsGridRowLeafFrame.cpp File Reference
#include "nsGridRowLeafFrame.h"
#include "nsGridRowLeafLayout.h"
#include "nsGridRow.h"
#include "nsBoxLayoutState.h"
#include "nsGridLayout2.h"

Go to the source code of this file.


nsresult NS_NewGridRowLeafFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, PRBool aIsRoot, nsIBoxLayout *aLayoutManager)

Function Documentation

nsresult NS_NewGridRowLeafFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
PRBool  aIsRoot,
nsIBoxLayout aLayoutManager 

Definition at line 52 of file nsGridRowLeafFrame.cpp.

    NS_PRECONDITION(aNewFrame, "null OUT ptr");
    if (nsnull == aNewFrame) {
        return NS_ERROR_NULL_POINTER;
    nsGridRowLeafFrame* it = new (aPresShell) nsGridRowLeafFrame (aPresShell, aIsRoot, aLayoutManager);
    if (nsnull == it)
        return NS_ERROR_OUT_OF_MEMORY;

    *aNewFrame = it;
    return NS_OK;


Here is the caller graph for this function: