Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsTableReflowState Struct Reference
Collaboration diagram for nsTableReflowState:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsTableReflowState (nsPresContext &aPresContext, const nsHTMLReflowState &aReflowState, nsTableFrame &aTableFrame, nsReflowReason aReason, nscoord aAvailWidth, nscoord aAvailHeight)
void Init (nsPresContext &aPresContext, nsTableFrame &aTableFrame, nsReflowReason aReason, nscoord aAvailWidth, nscoord aAvailHeight)
 nsTableReflowState (nsPresContext &aPresContext, const nsHTMLReflowState &aReflowState, nsTableFrame &aTableFrame)

Public Attributes

const nsHTMLReflowStatereflowState
nsReflowReason reason
nsSize availSize
nscoord x
nscoord y
nsIFramefooterFrame
nsIFramefirstBodySection

Detailed Description

Definition at line 87 of file nsTableFrame.cpp.


Constructor & Destructor Documentation

nsTableReflowState::nsTableReflowState ( nsPresContext aPresContext,
const nsHTMLReflowState aReflowState,
nsTableFrame aTableFrame,
nsReflowReason  aReason,
nscoord  aAvailWidth,
nscoord  aAvailHeight 
) [inline]

Definition at line 109 of file nsTableFrame.cpp.

    : reflowState(aReflowState)
  {
    Init(aPresContext, aTableFrame, aReason, aAvailWidth, aAvailHeight);
  }

Here is the call graph for this function:

nsTableReflowState::nsTableReflowState ( nsPresContext aPresContext,
const nsHTMLReflowState aReflowState,
nsTableFrame aTableFrame 
) [inline]

Definition at line 153 of file nsTableFrame.cpp.

    : reflowState(aReflowState)
  {
    Init(aPresContext, aTableFrame, aReflowState.reason, aReflowState.availableWidth, aReflowState.availableHeight);
  }

Here is the call graph for this function:


Member Function Documentation

void nsTableReflowState::Init ( nsPresContext aPresContext,
nsTableFrame aTableFrame,
nsReflowReason  aReason,
nscoord  aAvailWidth,
nscoord  aAvailHeight 
) [inline]

Definition at line 120 of file nsTableFrame.cpp.

  {
    reason = aReason;

    nsTableFrame* table = (nsTableFrame*)aTableFrame.GetFirstInFlow();
    nsMargin borderPadding = table->GetChildAreaOffset(&reflowState);
    nscoord cellSpacingX = table->GetCellSpacingX();

    x = borderPadding.left + cellSpacingX;
    y = borderPadding.top; //cellspacing added during reflow

    availSize.width  = aAvailWidth;
    if (NS_UNCONSTRAINEDSIZE != availSize.width) {
      availSize.width -= borderPadding.left + borderPadding.right
                         + (2 * cellSpacingX);
      availSize.width = PR_MAX(0, availSize.width);
    }

    availSize.height = aAvailHeight;
    if (NS_UNCONSTRAINEDSIZE != availSize.height) {
      availSize.height -= borderPadding.top + borderPadding.bottom
                          + (2 * table->GetCellSpacingY());
      availSize.height = PR_MAX(0, availSize.height);
    }

    footerFrame      = nsnull;
    firstBodySection = nsnull;
  }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 95 of file nsTableFrame.cpp.

Definition at line 107 of file nsTableFrame.cpp.

Definition at line 104 of file nsTableFrame.cpp.

Definition at line 92 of file nsTableFrame.cpp.

Definition at line 90 of file nsTableFrame.cpp.

Definition at line 98 of file nsTableFrame.cpp.

Definition at line 101 of file nsTableFrame.cpp.


The documentation for this struct was generated from the following file: