Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations
nsHTMLReflowState.h File Reference
#include "nsMargin.h"
#include "nsStyleCoord.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsHTMLReflowState
 Reflow state passed to a frame during reflow. More...
struct  nsHTMLReflowState::ReflowStateFlags

Defines

#define NS_UNCONSTRAINEDSIZE   NS_MAXSIZE
 Constant used to indicate an unconstrained size.
#define NS_CSS_FRAME_TYPE_UNKNOWN   0
#define NS_CSS_FRAME_TYPE_INLINE   1
#define NS_CSS_FRAME_TYPE_BLOCK   2 /* block-level in normal flow */
#define NS_CSS_FRAME_TYPE_FLOATING   3
#define NS_CSS_FRAME_TYPE_ABSOLUTE   4
#define NS_CSS_FRAME_TYPE_INTERNAL_TABLE   5 /* row group frame, row frame, cell frame, ... */
#define NS_CSS_FRAME_TYPE_REPLACED   0x8000
 Bit-flag that indicates whether the element is replaced.
#define NS_FRAME_IS_REPLACED(_ft)   (NS_CSS_FRAME_TYPE_REPLACED == ((_ft) & NS_CSS_FRAME_TYPE_REPLACED))
 Helper macros for telling whether items are replaced.
#define NS_FRAME_REPLACED(_ft)   (NS_CSS_FRAME_TYPE_REPLACED | (_ft))
#define NS_FRAME_GET_TYPE(_ft)   ((_ft) & ~NS_CSS_FRAME_TYPE_REPLACED)
 A macro to extract the type.
#define NS_INTRINSICSIZE   NS_UNCONSTRAINEDSIZE
#define NS_SHRINKWRAPWIDTH   NS_UNCONSTRAINEDSIZE
#define NS_AUTOHEIGHT   NS_UNCONSTRAINEDSIZE
#define NS_AUTOMARGIN   NS_UNCONSTRAINEDSIZE
#define NS_AUTOOFFSET   NS_UNCONSTRAINEDSIZE

Typedefs

typedef PRUint32 nsCSSFrameType
 CSS Frame type.

Enumerations

enum  nsReflowReason {
  eReflowReason_Initial = 0, eReflowReason_Incremental = 1, eReflowReason_Resize = 2, eReflowReason_StyleChange = 3,
  eReflowReason_Dirty = 4
}
 The reason the frame is being reflowed. More...

Class Documentation

struct nsHTMLReflowState::ReflowStateFlags

Definition at line 259 of file nsHTMLReflowState.h.

Class Members
PRUint16 mAssumingHScrollbar:1
PRUint16 mAssumingVScrollbar:1
PRUint16 mBlinks:1
PRUint16 mHasClearance:1
PRUint16 mIsTopOfPage:1
PRUint16 mNextInFlowUntouched:1
PRUint16 mSpecialHeightReflow:1
PRUint16 mVisualBidiFormControl:1

Define Documentation

Definition at line 119 of file nsHTMLReflowState.h.

Definition at line 120 of file nsHTMLReflowState.h.

Definition at line 121 of file nsHTMLReflowState.h.

Definition at line 93 of file nsHTMLReflowState.h.

#define NS_CSS_FRAME_TYPE_BLOCK   2 /* block-level in normal flow */

Definition at line 91 of file nsHTMLReflowState.h.

Definition at line 92 of file nsHTMLReflowState.h.

Definition at line 90 of file nsHTMLReflowState.h.

#define NS_CSS_FRAME_TYPE_INTERNAL_TABLE   5 /* row group frame, row frame, cell frame, ... */

Definition at line 94 of file nsHTMLReflowState.h.

Bit-flag that indicates whether the element is replaced.

Applies to inline, block-level, floating, and absolutely positioned elements

Definition at line 100 of file nsHTMLReflowState.h.

Definition at line 89 of file nsHTMLReflowState.h.

A macro to extract the type.

Masks off the 'replaced' bit-flag

Definition at line 114 of file nsHTMLReflowState.h.

Helper macros for telling whether items are replaced.

Definition at line 105 of file nsHTMLReflowState.h.

Definition at line 108 of file nsHTMLReflowState.h.

Definition at line 117 of file nsHTMLReflowState.h.

Definition at line 118 of file nsHTMLReflowState.h.

Constant used to indicate an unconstrained size.

See also:
#Reflow()

Definition at line 65 of file nsHTMLReflowState.h.


Typedef Documentation

CSS Frame type.

Included as part of the reflow state.

Definition at line 87 of file nsHTMLReflowState.h.


Enumeration Type Documentation

The reason the frame is being reflowed.

XXX Should probably be a define so it can be extended for specialized reflow interfaces...

See also:
nsHTMLReflowState
Enumerator:
eReflowReason_Initial 
eReflowReason_Incremental 
eReflowReason_Resize 
eReflowReason_StyleChange 
eReflowReason_Dirty 

Definition at line 75 of file nsHTMLReflowState.h.

                    {
  eReflowReason_Initial = 0,       // initial reflow of a newly created frame
  eReflowReason_Incremental = 1,   // an incremental change has occured. see the reflow command for details
  eReflowReason_Resize = 2,        // general request to determine a desired size
  eReflowReason_StyleChange = 3,   // request to reflow because of a style change. Note: you must reflow
                                   // all your child frames
  eReflowReason_Dirty = 4          // request to reflow because you and/or your children are dirty
};