Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsStyleTableBorder Struct Reference

#include <nsStyleStruct.h>

Inheritance diagram for nsStyleTableBorder:
Inheritance graph
[legend]
Collaboration diagram for nsStyleTableBorder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsStyleTableBorder (nsPresContext *aContext)
 nsStyleTableBorder (const nsStyleTableBorder &aOther)
 ~nsStyleTableBorder (void)
voidoperator new (size_t sz, nsPresContext *aContext) CPP_THROW_NEW
void Destroy (nsPresContext *aContext)
nsChangeHint CalcDifference (const nsStyleTableBorder &aOther) const

Public Attributes

nsStyleCoord mBorderSpacingX
nsStyleCoord mBorderSpacingY
PRUint8 mBorderCollapse
PRUint8 mCaptionSide
PRUint8 mEmptyCells

Detailed Description

Definition at line 880 of file nsStyleStruct.h.


Constructor & Destructor Documentation

Definition at line 1010 of file nsStyleStruct.cpp.

Here is the call graph for this function:

Definition at line 1029 of file nsStyleStruct.cpp.

{
  memcpy((nsStyleTableBorder*)this, &aSource, sizeof(nsStyleTableBorder));
}

Here is the call graph for this function:

Definition at line 1025 of file nsStyleStruct.cpp.

{ 
}

Here is the caller graph for this function:


Member Function Documentation

Definition at line 1034 of file nsStyleStruct.cpp.

{
  // Border-collapse changes need a reframe, because we use a different frame
  // class for table cells in the collapsed border model.  This is used to
  // conserve memory when using the separated border model (collapsed borders
  // require extra state to be stored).
  if (mBorderCollapse != aOther.mBorderCollapse) {
    return NS_STYLE_HINT_FRAMECHANGE;
  }
  
  if ((mCaptionSide == aOther.mCaptionSide) &&
      (mBorderSpacingX == aOther.mBorderSpacingX) &&
      (mBorderSpacingY == aOther.mBorderSpacingY)) {
    if (mEmptyCells == aOther.mEmptyCells)
      return NS_STYLE_HINT_NONE;
    return NS_STYLE_HINT_VISUAL;
  }
  else
    return NS_STYLE_HINT_REFLOW;
}

Definition at line 890 of file nsStyleStruct.h.

                                        {
    this->~nsStyleTableBorder();
    aContext->FreeToShell(sizeof(nsStyleTableBorder), this);
  };

Here is the call graph for this function:

Here is the caller graph for this function:

void* nsStyleTableBorder::operator new ( size_t  sz,
nsPresContext aContext 
) [inline]

Definition at line 887 of file nsStyleStruct.h.

                                                                       {
    return aContext->AllocateFromShell(sz);
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 902 of file nsStyleStruct.h.

Definition at line 900 of file nsStyleStruct.h.

Definition at line 901 of file nsStyleStruct.h.

Definition at line 903 of file nsStyleStruct.h.

Definition at line 904 of file nsStyleStruct.h.


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