Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Enumerations | Functions
nsCSSDataBlock.cpp File Reference
#include "nsCSSDataBlock.h"
#include "nsCSSProps.h"
#include "nsRuleData.h"
#include "nsCSSPropList.h"

Go to the source code of this file.

Classes

struct  CDBValueStorage
struct  CDBRectStorage
struct  CDBValuePairStorage
struct  CDBPointerStorage

Defines

#define CSS_PROP_BACKENDONLY(name_, id_, method_, datastruct_, member_, type_, kwtable_)
#define CSS_PROP(name_, id_, method_, datastruct_, member_, type_, kwtable_)

Enumerations

enum  { CDBValueStorage_advance = sizeof(CDBValueStorage), CDBRectStorage_advance = sizeof(CDBRectStorage), CDBValuePairStorage_advance = sizeof(CDBValuePairStorage), CDBPointerStorage_advance }

Functions

nsCSSPropertyPropertyAtCursor (char *aCursor)
nsCSSProperty PropertyAtCursor (const char *aCursor)
nsCSSValueValueAtCursor (char *aCursor)
const nsCSSValueValueAtCursor (const char *aCursor)
nsCSSRectRectAtCursor (char *aCursor)
const nsCSSRectRectAtCursor (const char *aCursor)
nsCSSValuePairValuePairAtCursor (char *aCursor)
const nsCSSValuePairValuePairAtCursor (const char *aCursor)
void *& PointerAtCursor (char *aCursor)
voidPointerAtCursor (const char *aCursor)
nsCSSValueList *& ValueListAtCursor (char *aCursor)
nsCSSValueListValueListAtCursor (const char *aCursor)
nsCSSCounterData *& CounterDataAtCursor (char *aCursor)
nsCSSCounterDataCounterDataAtCursor (const char *aCursor)
nsCSSQuotes *& QuotesAtCursor (char *aCursor)
nsCSSQuotesQuotesAtCursor (const char *aCursor)
nsCSSShadow *& ShadowAtCursor (char *aCursor)
nsCSSShadowShadowAtCursor (const char *aCursor)

Class Documentation

struct CDBValueStorage

Definition at line 59 of file nsCSSDataBlock.cpp.

Collaboration diagram for CDBValueStorage:
Class Members
nsCSSProperty property
nsCSSValue value
struct CDBRectStorage

Definition at line 64 of file nsCSSDataBlock.cpp.

Collaboration diagram for CDBRectStorage:
Class Members
nsCSSProperty property
nsCSSRect value
struct CDBValuePairStorage

Definition at line 70 of file nsCSSDataBlock.cpp.

Collaboration diagram for CDBValuePairStorage:
Class Members
nsCSSProperty property
nsCSSValuePair value
struct CDBPointerStorage

Definition at line 75 of file nsCSSDataBlock.cpp.

Class Members
nsCSSProperty property
void * value

Define Documentation

#define CSS_PROP (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)
Value:
{ offsetof(nsCSSExpandedDataBlock, m##datastruct_.member_),           \
          offsetof(nsRuleData, m##datastruct_##Data),                         \
          offsetof(nsRuleData##datastruct_, member_) },
#define CSS_PROP_BACKENDONLY (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)
Value:
{ offsetof(nsCSSExpandedDataBlock, m##datastruct_.member_),           \
          size_t(-1),                                                         \
          size_t(-1) },

Enumeration Type Documentation

anonymous enum
Enumerator:
CDBValueStorage_advance 
CDBRectStorage_advance 
CDBValuePairStorage_advance 
CDBPointerStorage_advance 

Definition at line 80 of file nsCSSDataBlock.cpp.

     {
    CDBValueStorage_advance = sizeof(CDBValueStorage),
    CDBRectStorage_advance = sizeof(CDBRectStorage),
    CDBValuePairStorage_advance = sizeof(CDBValuePairStorage),
    // round up using the closest estimate we can get of the alignment
    // requirements of nsCSSValue:
    CDBPointerStorage_advance = PR_ROUNDUP(sizeof(CDBPointerStorage),
                                sizeof(CDBValueStorage) - sizeof(nsCSSValue))
};

Function Documentation

nsCSSCounterData*& CounterDataAtCursor ( char *  aCursor) [inline]

Definition at line 148 of file nsCSSDataBlock.cpp.

Here is the caller graph for this function:

nsCSSCounterData* CounterDataAtCursor ( const char *  aCursor) [inline]

Definition at line 153 of file nsCSSDataBlock.cpp.

void*& PointerAtCursor ( char *  aCursor) [inline]

Definition at line 130 of file nsCSSDataBlock.cpp.

                                             {
    return NS_REINTERPRET_CAST(CDBPointerStorage*, aCursor)->value;
}

Here is the caller graph for this function:

void* PointerAtCursor ( const char *  aCursor) [inline]

Definition at line 134 of file nsCSSDataBlock.cpp.

                                                  {
    return NS_REINTERPRET_CAST(const CDBPointerStorage*, aCursor)->value;
}
nsCSSProperty& PropertyAtCursor ( char *  aCursor) [inline]

Definition at line 98 of file nsCSSDataBlock.cpp.

                                                      {
    return *NS_REINTERPRET_CAST(nsCSSProperty*, aCursor);
}

Here is the caller graph for this function:

nsCSSProperty PropertyAtCursor ( const char *  aCursor) [inline]

Definition at line 102 of file nsCSSDataBlock.cpp.

                                                           {
    return *NS_REINTERPRET_CAST(const nsCSSProperty*, aCursor);
}
nsCSSQuotes*& QuotesAtCursor ( char *  aCursor) [inline]

Definition at line 158 of file nsCSSDataBlock.cpp.

Here is the caller graph for this function:

nsCSSQuotes* QuotesAtCursor ( const char *  aCursor) [inline]

Definition at line 163 of file nsCSSDataBlock.cpp.

nsCSSRect* RectAtCursor ( char *  aCursor) [inline]

Definition at line 114 of file nsCSSDataBlock.cpp.

                                              {
    return & NS_REINTERPRET_CAST(CDBRectStorage*, aCursor)->value;
}

Here is the caller graph for this function:

const nsCSSRect* RectAtCursor ( const char *  aCursor) [inline]

Definition at line 118 of file nsCSSDataBlock.cpp.

                                                          {
    return & NS_REINTERPRET_CAST(const CDBRectStorage*, aCursor)->value;
}
nsCSSShadow*& ShadowAtCursor ( char *  aCursor) [inline]

Definition at line 168 of file nsCSSDataBlock.cpp.

Here is the caller graph for this function:

nsCSSShadow* ShadowAtCursor ( const char *  aCursor) [inline]

Definition at line 173 of file nsCSSDataBlock.cpp.

nsCSSValue* ValueAtCursor ( char *  aCursor) [inline]

Definition at line 106 of file nsCSSDataBlock.cpp.

                                                {
    return & NS_REINTERPRET_CAST(CDBValueStorage*, aCursor)->value;
}

Here is the caller graph for this function:

const nsCSSValue* ValueAtCursor ( const char *  aCursor) [inline]

Definition at line 110 of file nsCSSDataBlock.cpp.

                                                            {
    return & NS_REINTERPRET_CAST(const CDBValueStorage*, aCursor)->value;
}
nsCSSValueList*& ValueListAtCursor ( char *  aCursor) [inline]

Definition at line 138 of file nsCSSDataBlock.cpp.

Here is the caller graph for this function:

nsCSSValueList* ValueListAtCursor ( const char *  aCursor) [inline]

Definition at line 143 of file nsCSSDataBlock.cpp.

nsCSSValuePair* ValuePairAtCursor ( char *  aCursor) [inline]

Definition at line 122 of file nsCSSDataBlock.cpp.

                                                        {
  return & NS_REINTERPRET_CAST(CDBValuePairStorage*, aCursor)->value;
}

Here is the caller graph for this function:

const nsCSSValuePair* ValuePairAtCursor ( const char *  aCursor) [inline]

Definition at line 126 of file nsCSSDataBlock.cpp.

                                                                    {
  return & NS_REINTERPRET_CAST(const CDBValuePairStorage*, aCursor)->value;
}