Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
nsBoxLayoutState Class Reference

#include <nsBoxLayoutState.h>

Collaboration diagram for nsBoxLayoutState:
Collaboration graph
[legend]

List of all members.

Public Types

enum  eBoxLayoutReason { Dirty, Resize, Initial }

Public Member Functions

 nsBoxLayoutState (nsPresContext *aPresContext, const nsHTMLReflowState &aReflowState, nsHTMLReflowMetrics &aDesiredSize) NS_HIDDEN
 nsBoxLayoutState (nsPresContext *aPresContext) NS_HIDDEN
 nsBoxLayoutState (nsIPresShell *aShell) NS_HIDDEN
 nsBoxLayoutState (const nsBoxLayoutState &aState) NS_HIDDEN
 NS_HIDDEN_ (void) HandleReflow(nsIBox *aRootBox)
nsPresContextPresContext ()
nsIPresShellPresShell ()
nscoordGetMaxElementWidth ()
PRUint32 LayoutFlags () const
void SetLayoutFlags (PRUint32 aFlags)
void SetPaintingDisabled (PRBool aDisable)
PRBool PaintingDisabled () const
eBoxLayoutReason LayoutReason ()
void SetLayoutReason (eBoxLayoutReason aReason)
const nsHTMLReflowStateGetReflowState ()
nsresult PushStackMemory ()
nsresult PopStackMemory ()
nsresult AllocateStackMemory (size_t aSize, void **aResult)

Static Public Member Functions

static NS_HIDDEN_ (void *) Allocate(size_t sz
static NS_HIDDEN_ (void) Free(void *aPtr
static NS_HIDDEN_ (void) RecycleFreedMemory(nsIPresShell *aPresShell

Public Attributes

static nsIPresShellaPresShell
static size_t sz
static voidmem

Private Member Functions

 NS_HIDDEN_ (void) Unwind(nsReflowPath *aReflowPath
 NS_HIDDEN_ (nsIBox *) GetBoxForFrame(nsIFrame *aFrame

Private Attributes

nsIBox * aRootBox
PRBoolaIsAdaptor
nsCOMPtr< nsPresContextmPresContext
const nsHTMLReflowStatemReflowState
nscoordmMaxElementWidth
eBoxLayoutReason mType
PRUint32 mLayoutFlags
PRBool mPaintingDisabled

Detailed Description

Definition at line 60 of file nsBoxLayoutState.h.


Member Enumeration Documentation

Enumerator:
Dirty 
Resize 
Initial 

Definition at line 63 of file nsBoxLayoutState.h.


Constructor & Destructor Documentation

nsBoxLayoutState::nsBoxLayoutState ( nsPresContext aPresContext,
const nsHTMLReflowState aReflowState,
nsHTMLReflowMetrics aDesiredSize 
)

Definition at line 85 of file nsBoxLayoutState.cpp.

                                                                     :mPresContext(aPresContext),
                                                                      mReflowState(&aReflowState),                                                                    
                                                                      mType(Dirty),
                                                                      mMaxElementWidth(nsnull),
                                                                      mLayoutFlags(0),
                                                                      mPaintingDisabled(PR_FALSE)

                                                                                        

{
  if (aDesiredSize.mComputeMEW)
    mMaxElementWidth = &aDesiredSize.mMaxElementWidth;
  NS_ASSERTION(mPresContext, "PresContext must be non-null");
}

Definition at line 53 of file nsBoxLayoutState.cpp.

Definition at line 75 of file nsBoxLayoutState.cpp.

Here is the call graph for this function:

Definition at line 63 of file nsBoxLayoutState.cpp.


Member Function Documentation

nsresult nsBoxLayoutState::AllocateStackMemory ( size_t  aSize,
void **  aResult 
) [inline]

Definition at line 100 of file nsBoxLayoutState.h.

Here is the call graph for this function:

Definition at line 80 of file nsBoxLayoutState.h.

Here is the caller graph for this function:

Definition at line 91 of file nsBoxLayoutState.h.

{ return mReflowState; }

Here is the caller graph for this function:

Definition at line 82 of file nsBoxLayoutState.h.

{ return mLayoutFlags; }

Here is the caller graph for this function:

Definition at line 89 of file nsBoxLayoutState.h.

{ return mType; }

Here is the caller graph for this function:

static nsBoxLayoutState::NS_HIDDEN_ ( void ) [static]
static nsBoxLayoutState::NS_HIDDEN_ ( void  ) [static]
static nsBoxLayoutState::NS_HIDDEN_ ( void  ) [static]
nsBoxLayoutState::NS_HIDDEN_ ( nsIBox *  ) [private]

Definition at line 87 of file nsBoxLayoutState.h.

{ return mPaintingDisabled; }

Definition at line 99 of file nsBoxLayoutState.h.

{ return PresShell()->PopStackMemory(); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 78 of file nsBoxLayoutState.h.

{ return mPresContext; }

Here is the caller graph for this function:

Definition at line 79 of file nsBoxLayoutState.h.

{ return mPresContext->PresShell(); }

Here is the caller graph for this function:

Definition at line 98 of file nsBoxLayoutState.h.

{ return PresShell()->PushStackMemory(); }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 83 of file nsBoxLayoutState.h.

Here is the caller graph for this function:

Definition at line 90 of file nsBoxLayoutState.h.

{ mType = aReason; }

Here is the caller graph for this function:

Definition at line 86 of file nsBoxLayoutState.h.

{ mPaintingDisabled = aDisable; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 106 of file nsBoxLayoutState.h.

Definition at line 93 of file nsBoxLayoutState.h.

nsIBox* nsBoxLayoutState::aRootBox [private]

Definition at line 105 of file nsBoxLayoutState.h.

Definition at line 96 of file nsBoxLayoutState.h.

Definition at line 112 of file nsBoxLayoutState.h.

Definition at line 110 of file nsBoxLayoutState.h.

Definition at line 113 of file nsBoxLayoutState.h.

Definition at line 108 of file nsBoxLayoutState.h.

Definition at line 109 of file nsBoxLayoutState.h.

Definition at line 111 of file nsBoxLayoutState.h.

Definition at line 94 of file nsBoxLayoutState.h.


The documentation for this class was generated from the following files: