Back to index

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

#include <nsStyleStruct.h>

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

List of all members.

Public Member Functions

 nsStylePadding (void)
 nsStylePadding (const nsStylePadding &aPadding)
 ~nsStylePadding (void)
voidoperator new (size_t sz, nsPresContext *aContext) CPP_THROW_NEW
void Destroy (nsPresContext *aContext)
void RecalcData ()
nsChangeHint CalcDifference (const nsStylePadding &aOther) const
PRBool GetPadding (nsMargin &aPadding) const
void CalcPaddingFor (const nsIFrame *aFrame, nsMargin &aPadding) const

Public Attributes

nsStyleSides mPadding

Protected Attributes

PRPackedBool mHasCachedPadding
nsMargin mCachedPadding

Detailed Description

Definition at line 255 of file nsStyleStruct.h.


Constructor & Destructor Documentation

Definition at line 359 of file nsStyleStruct.cpp.

Here is the call graph for this function:

Definition at line 364 of file nsStyleStruct.cpp.

                                                         {
  mPadding = aSrc.mPadding;
  mHasCachedPadding = PR_FALSE;
}

Definition at line 258 of file nsStyleStruct.h.

{};

Here is the caller graph for this function:


Member Function Documentation

Definition at line 397 of file nsStyleStruct.cpp.

{
  if (mPadding == aOther.mPadding) {
    return NS_STYLE_HINT_NONE;
  }
  return NS_STYLE_HINT_REFLOW;
}
void nsStylePadding::CalcPaddingFor ( const nsIFrame aFrame,
nsMargin aPadding 
) const

Definition at line 414 of file nsStyleStruct.cpp.

{
  if (mHasCachedPadding) {
    aPadding = mCachedPadding;
  } else {
    CalcSidesFor(aFrame, mPadding, NS_SPACING_PADDING, aPadding);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 378 of file nsStyleStruct.cpp.

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

Here is the call graph for this function:

PRBool nsStylePadding::GetPadding ( nsMargin aPadding) const [inline]

Definition at line 273 of file nsStyleStruct.h.

  {
    if (mHasCachedPadding) {
      aPadding = mCachedPadding;
      return PR_TRUE;
    }
    return PR_FALSE;
  }

Here is the caller graph for this function:

void * nsStylePadding::operator new ( size_t  sz,
nsPresContext aContext 
)

Definition at line 370 of file nsStyleStruct.cpp.

                                                                             {
  void* result = aContext->AllocateFromShell(sz);
  if (result)
    memset(result, 0, sz);
  return result;
}

Here is the call graph for this function:

Definition at line 383 of file nsStyleStruct.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 287 of file nsStyleStruct.h.

Definition at line 286 of file nsStyleStruct.h.

Definition at line 271 of file nsStyleStruct.h.


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