Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsResetStyleData Struct Reference

#include <nsRuleNode.h>

List of all members.

Public Member Functions

 nsResetStyleData ()
voidoperator new (size_t sz, nsPresContext *aContext) CPP_THROW_NEW
void ClearInheritedData (PRUint32 aBits)
void Destroy (PRUint32 aBits, nsPresContext *aContext)

Detailed Description

Definition at line 115 of file nsRuleNode.h.


Constructor & Destructor Documentation

Definition at line 117 of file nsRuleNode.h.

  {
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args) \
    m##name##Data = nsnull;
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args)

#include "nsStyleStructList.h"

#undef STYLE_STRUCT_RESET
#undef STYLE_STRUCT_INHERITED
  };

Member Function Documentation

Definition at line 133 of file nsRuleNode.h.

                                          {
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args) \
    if (m##name##Data && (aBits & NS_STYLE_INHERIT_BIT(name))) \
      m##name##Data = nsnull;
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args)

#include "nsStyleStructList.h"

#undef STYLE_STRUCT_RESET
#undef STYLE_STRUCT_INHERITED
  };

Here is the caller graph for this function:

void nsResetStyleData::Destroy ( PRUint32  aBits,
nsPresContext aContext 
) [inline]

Definition at line 145 of file nsRuleNode.h.

                                                        {
#define STYLE_STRUCT_RESET(name, checkdata_cb, ctor_args) \
    if (m##name##Data && !(aBits & NS_STYLE_INHERIT_BIT(name))) \
      m##name##Data->Destroy(aContext);
#define STYLE_STRUCT_INHERITED(name, checkdata_cb, ctor_args)

#include "nsStyleStructList.h"

#undef STYLE_STRUCT_RESET
#undef STYLE_STRUCT_INHERITED

    aContext->FreeToShell(sizeof(nsResetStyleData), this);
  };

Here is the call graph for this function:

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

Definition at line 129 of file nsRuleNode.h.

                                                                       {
    return aContext->AllocateFromShell(sz);
  }

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