Back to index

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

#include <nsStyleStruct.h>

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

List of all members.

Public Member Functions

 nsStyleMargin (void)
 nsStyleMargin (const nsStyleMargin &aMargin)
 ~nsStyleMargin (void)
voidoperator new (size_t sz, nsPresContext *aContext) CPP_THROW_NEW
void Destroy (nsPresContext *aContext)
void RecalcData ()
nsChangeHint CalcDifference (const nsStyleMargin &aOther) const
PRBool GetMargin (nsMargin &aMargin) const
void CalcMarginFor (const nsIFrame *aFrame, nsMargin &aMargin) const

Public Attributes

nsStyleSides mMargin

Protected Attributes

PRPackedBool mHasCachedMargin
nsMargin mCachedMargin

Detailed Description

Definition at line 219 of file nsStyleStruct.h.


Constructor & Destructor Documentation

Definition at line 294 of file nsStyleStruct.cpp.

Here is the call graph for this function:

Definition at line 299 of file nsStyleStruct.cpp.

                                                      {
  mMargin = aSrc.mMargin;
  mHasCachedMargin = PR_FALSE;
}

Definition at line 222 of file nsStyleStruct.h.

{};

Here is the caller graph for this function:


Member Function Documentation

Definition at line 333 of file nsStyleStruct.cpp.

{
  if (mMargin == aOther.mMargin) {
    return NS_STYLE_HINT_NONE;
  }
  return NS_STYLE_HINT_REFLOW;
}
void nsStyleMargin::CalcMarginFor ( const nsIFrame aFrame,
nsMargin aMargin 
) const

Definition at line 350 of file nsStyleStruct.cpp.

{
  if (mHasCachedMargin) {
    aMargin = mCachedMargin;
  } else {
    CalcSidesFor(aFrame, mMargin, NS_SPACING_MARGIN, aMargin);
  }
}

Here is the call graph for this function:

Definition at line 313 of file nsStyleStruct.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool nsStyleMargin::GetMargin ( nsMargin aMargin) const [inline]

Definition at line 237 of file nsStyleStruct.h.

  {
    if (mHasCachedMargin) {
      aMargin = mCachedMargin;
      return PR_TRUE;
    }
    return PR_FALSE;
  }

Here is the caller graph for this function:

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

Definition at line 305 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 319 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 251 of file nsStyleStruct.h.

Definition at line 250 of file nsStyleStruct.h.

Definition at line 235 of file nsStyleStruct.h.


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