Back to index

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

#include <nsStyleStruct.h>

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

List of all members.

Public Member Functions

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

Public Attributes

nsStyleSides mOffset
nsStyleCoord mWidth
nsStyleCoord mMinWidth
nsStyleCoord mMaxWidth
nsStyleCoord mHeight
nsStyleCoord mMinHeight
nsStyleCoord mMaxHeight
PRUint8 mBoxSizing
nsStyleCoord mZIndex

Detailed Description

Definition at line 655 of file nsStyleStruct.h.


Constructor & Destructor Documentation

Definition at line 908 of file nsStyleStruct.cpp.

Here is the call graph for this function:

Definition at line 930 of file nsStyleStruct.cpp.

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

Here is the call graph for this function:

Definition at line 926 of file nsStyleStruct.cpp.

{ 
}

Here is the caller graph for this function:


Member Function Documentation

Definition at line 935 of file nsStyleStruct.cpp.

{
  if (mZIndex != aOther.mZIndex) {
    return NS_STYLE_HINT_REFLOW;
  }
  
  if ((mOffset == aOther.mOffset) &&
      (mWidth == aOther.mWidth) &&
      (mMinWidth == aOther.mMinWidth) &&
      (mMaxWidth == aOther.mMaxWidth) &&
      (mHeight == aOther.mHeight) &&
      (mMinHeight == aOther.mMinHeight) &&
      (mMaxHeight == aOther.mMaxHeight) &&
      (mBoxSizing == aOther.mBoxSizing))
    return NS_STYLE_HINT_NONE;
  
  return nsChangeHint_ReflowFrame;
}
void nsStylePosition::Destroy ( nsPresContext aContext) [inline]

Definition at line 665 of file nsStyleStruct.h.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 662 of file nsStyleStruct.h.

                                                                       {
    return aContext->AllocateFromShell(sz);
  }

Member Data Documentation

Definition at line 682 of file nsStyleStruct.h.

Definition at line 679 of file nsStyleStruct.h.

Definition at line 681 of file nsStyleStruct.h.

Definition at line 678 of file nsStyleStruct.h.

Definition at line 680 of file nsStyleStruct.h.

Definition at line 677 of file nsStyleStruct.h.

Definition at line 675 of file nsStyleStruct.h.

Definition at line 676 of file nsStyleStruct.h.

Definition at line 683 of file nsStyleStruct.h.


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