Back to index

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

#include <nsStyleStruct.h>

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

List of all members.

Public Member Functions

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

Public Attributes

PRUint32 mColumnCount
nsStyleCoord mColumnWidth
nsStyleCoord mColumnGap

Detailed Description

Definition at line 1223 of file nsStyleStruct.h.


Constructor & Destructor Documentation

Definition at line 668 of file nsStyleStruct.cpp.

Here is the call graph for this function:

Definition at line 679 of file nsStyleStruct.cpp.

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

Here is the call graph for this function:

Definition at line 675 of file nsStyleStruct.cpp.

{
}

Here is the caller graph for this function:


Member Function Documentation

Definition at line 684 of file nsStyleStruct.cpp.

{
  if ((mColumnWidth.GetUnit() == eStyleUnit_Auto)
      != (aOther.mColumnWidth.GetUnit() == eStyleUnit_Auto) ||
      mColumnCount != aOther.mColumnCount)
    // We force column count changes to do a reframe, because it's tricky to handle
    // some edge cases where the column count gets smaller and content overflows.
    // XXX not ideal
    return nsChangeHint_ReconstructFrame;

  if (mColumnWidth != aOther.mColumnWidth ||
      mColumnGap != aOther.mColumnGap)
    return nsChangeHint_ReflowFrame;

  return NS_STYLE_HINT_NONE;
}

Here is the call graph for this function:

void nsStyleColumn::Destroy ( nsPresContext aContext) [inline]

Definition at line 1233 of file nsStyleStruct.h.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1230 of file nsStyleStruct.h.

                                                                       {
    return aContext->AllocateFromShell(sz);
  }

Member Data Documentation

Definition at line 1243 of file nsStyleStruct.h.

Definition at line 1245 of file nsStyleStruct.h.

Definition at line 1244 of file nsStyleStruct.h.


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