Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsTableRowGroupFrame.cpp File Reference
#include "nsCOMPtr.h"
#include "nsTableRowGroupFrame.h"
#include "nsTableRowFrame.h"
#include "nsTableFrame.h"
#include "nsTableCellFrame.h"
#include "nsIRenderingContext.h"
#include "nsPresContext.h"
#include "nsStyleContext.h"
#include "nsStyleConsts.h"
#include "nsIContent.h"
#include "nsIView.h"
#include "nsReflowPath.h"
#include "nsIDeviceContext.h"
#include "nsHTMLAtoms.h"
#include "nsIPresShell.h"
#include "nsLayoutAtoms.h"
#include "nsCSSRendering.h"
#include "nsHTMLParts.h"
#include "nsCSSFrameConstructor.h"
#include "nsCellMap.h"

Go to the source code of this file.

Classes

struct  RowInfo

Functions

static void UpdateHeights (RowInfo &aRowInfo, nscoord aAdditionalHeight, nscoord &aTotal, nscoord &aUnconstrainedTotal)
static void CacheRowHeightsForPrinting (nsPresContext *aPresContext, nsTableRowFrame *aFirstRow)
static nsTableRowFrameGetRowBefore (nsTableRowFrame &aStartRow, nsTableRowFrame &aRow)
nsIFrameGetLastRowSibling (nsIFrame *aRowFrame)
nsresult NS_NewTableRowGroupFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)

Function Documentation

static void CacheRowHeightsForPrinting ( nsPresContext aPresContext,
nsTableRowFrame aFirstRow 
) [static]

Definition at line 509 of file nsTableRowGroupFrame.cpp.

{
  for (nsTableRowFrame* row = aFirstRow; row; row = row->GetNextRow()) {
    if (!row->GetPrevInFlow()) {
      row->SetHasUnpaginatedHeight(PR_TRUE);
      row->SetUnpaginatedHeight(aPresContext, row->GetSize().height);
    }
  }
}

Here is the caller graph for this function:

nsIFrame* GetLastRowSibling ( nsIFrame aRowFrame)

Definition at line 1615 of file nsTableRowGroupFrame.cpp.

{
  nsIFrame* lastRowFrame = nsnull;
  for (nsIFrame* lastFrame = aRowFrame; lastFrame;
       lastFrame = lastFrame->GetNextSibling()) {
    if (nsLayoutAtoms::tableRowFrame == lastFrame->GetType()) {
      lastRowFrame = lastFrame;
    }
  }
  return lastRowFrame;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static nsTableRowFrame* GetRowBefore ( nsTableRowFrame aStartRow,
nsTableRowFrame aRow 
) [static]

Definition at line 984 of file nsTableRowGroupFrame.cpp.

{
  nsTableRowFrame* rowBefore = nsnull;
  for (nsTableRowFrame* sib = &aStartRow; sib && (sib != &aRow); sib = sib->GetNextRow()) {
    rowBefore = sib;
  }
  return rowBefore;
}

Here is the call graph for this function:

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:

static void UpdateHeights ( RowInfo aRowInfo,
nscoord  aAdditionalHeight,
nscoord aTotal,
nscoord aUnconstrainedTotal 
) [static]

Definition at line 475 of file nsTableRowGroupFrame.cpp.

{
  aRowInfo.height += aAdditionalHeight;
  aTotal          += aAdditionalHeight;
  if (!aRowInfo.hasStyleHeight) {
    aUnconstrainedTotal += aAdditionalHeight;
  }
}

Here is the caller graph for this function: