Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsTableColFrame.cpp File Reference
#include "nsCOMPtr.h"
#include "nsTableColFrame.h"
#include "nsTableFrame.h"
#include "nsContainerFrame.h"
#include "nsStyleContext.h"
#include "nsStyleConsts.h"
#include "nsPresContext.h"
#include "nsHTMLAtoms.h"
#include "nsCSSRendering.h"
#include "nsLayoutAtoms.h"
#include "nsIContent.h"
#include "nsIDOMHTMLTableColElement.h"

Go to the source code of this file.

Defines

#define COL_TYPE_BITS   0xF0000000
#define COL_TYPE_OFFSET   28
#define COL_CONSTRAINT_BITS   0x07000000
#define COL_CONSTRAINT_OFFSET   24

Functions

nsresult NS_NewTableColFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)

Define Documentation

#define COL_CONSTRAINT_BITS   0x07000000

Definition at line 53 of file nsTableColFrame.cpp.

Definition at line 54 of file nsTableColFrame.cpp.

#define COL_TYPE_BITS   0xF0000000

Definition at line 50 of file nsTableColFrame.cpp.

Definition at line 51 of file nsTableColFrame.cpp.


Function Documentation

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: