Back to index

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

#include <nsRuleNode.h>

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 60 of file nsRuleNode.h.


Constructor & Destructor Documentation

Definition at line 102 of file nsRuleNode.h.

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

#include "nsStyleStructList.h"

#undef STYLE_STRUCT_INHERITED
#undef STYLE_STRUCT_RESET

  };

Member Function Documentation

Definition at line 76 of file nsRuleNode.h.

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

#include "nsStyleStructList.h"

#undef STYLE_STRUCT_INHERITED
#undef STYLE_STRUCT_RESET
  };

Here is the caller graph for this function:

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

Definition at line 88 of file nsRuleNode.h.

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

#include "nsStyleStructList.h"

#undef STYLE_STRUCT_INHERITED
#undef STYLE_STRUCT_RESET

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

Here is the call graph for this function:

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

Definition at line 72 of file nsRuleNode.h.

                                                                       {
    return aContext->AllocateFromShell(sz);
  };

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