Classes | Defines | Enumerations

nsCSSValue.h File Reference

#include "nsColor.h"
#include "nsString.h"
#include "nsCoord.h"
#include "nsCSSProperty.h"
#include "nsCSSKeywords.h"
#include "nsIURI.h"
#include "nsCOMPtr.h"
#include "nsAutoPtr.h"
#include "nsCRTGlue.h"
#include "nsStringBuffer.h"
#include "nsTArray.h"
Include dependency graph for nsCSSValue.h:
This graph shows which files directly or indirectly include this file:

Classes

class  nsCSSValue
struct  nsCSSValue::URL
struct  nsCSSValue::Image
struct  nsCSSValueGradientStop
struct  nsCSSValueGradient
struct  nsCSSValue::Array

Defines

#define NS_CSS_DELETE_LIST_MEMBER(type_, ptr_, member_)
#define NS_CSS_CLONE_LIST_MEMBER(type_, from_, member_, to_, args_)
#define CSSVALUE_LIST_FOR_EXTRA_VALUES(var)

Enumerations

enum  nsCSSUnit {
  eCSSUnit_Null = 0, eCSSUnit_Auto = 1, eCSSUnit_Inherit = 2, eCSSUnit_Initial = 3,
  eCSSUnit_None = 4, eCSSUnit_Normal = 5, eCSSUnit_System_Font = 6, eCSSUnit_All = 7,
  eCSSUnit_Dummy = 8, eCSSUnit_DummyInherit = 9, eCSSUnit_RectIsAuto = 10, eCSSUnit_String = 11,
  eCSSUnit_Ident = 12, eCSSUnit_Families = 13, eCSSUnit_Attr = 14, eCSSUnit_Local_Font = 15,
  eCSSUnit_Font_Format = 16, eCSSUnit_Array = 20, eCSSUnit_Counter = 21, eCSSUnit_Counters = 22,
  eCSSUnit_Cubic_Bezier = 23, eCSSUnit_Function = 24, eCSSUnit_URL = 30, eCSSUnit_Image = 31,
  eCSSUnit_Gradient = 32, eCSSUnit_Integer = 50, eCSSUnit_Enumerated = 51, eCSSUnit_EnumColor = 80,
  eCSSUnit_Color = 81, eCSSUnit_Percent = 90, eCSSUnit_Number = 91, eCSSUnit_Inch = 100,
  eCSSUnit_Millimeter = 207, eCSSUnit_Centimeter = 208, eCSSUnit_Point = 300, eCSSUnit_Pica = 301,
  eCSSUnit_EM = 800, eCSSUnit_XHeight = 801, eCSSUnit_Char = 802, eCSSUnit_RootEM = 803,
  eCSSUnit_Pixel = 900, eCSSUnit_Degree = 1000, eCSSUnit_Grad = 1001, eCSSUnit_Radian = 1002,
  eCSSUnit_Hertz = 2000, eCSSUnit_Kilohertz = 2001, eCSSUnit_Seconds = 3000, eCSSUnit_Milliseconds = 3001
}

Define Documentation

#define CSSVALUE_LIST_FOR_EXTRA_VALUES (   var  ) 
Value:
for (nsCSSValue *var = First() + 1, *var##_end = First() + mCount;          \
       var != var##_end; ++var)
#define NS_CSS_CLONE_LIST_MEMBER (   type_,
  from_,
  member_,
  to_,
  args_ 
)
Value:
{                                                                            \
    type_ *dest = (to_);                                                       \
    (to_)->member_ = nsnull;                                                   \
    for (const type_ *src = (from_)->member_; src; src = src->member_) {       \
      type_ *clone = src->Clone args_;                                         \
      if (!clone) {                                                            \
        delete (to_);                                                          \
        return nsnull;                                                         \
      }                                                                        \
      dest->member_ = clone;                                                   \
      dest = clone;                                                            \
    }                                                                          \
  }
#define NS_CSS_DELETE_LIST_MEMBER (   type_,
  ptr_,
  member_ 
)
Value:
{                                                                            \
    type_ *cur = (ptr_)->member_;                                              \
    (ptr_)->member_ = nsnull;                                                  \
    while (cur) {                                                              \
      type_ *next = cur->member_;                                              \
      cur->member_ = nsnull;                                                   \
      delete cur;                                                              \
      cur = next;                                                              \
    }                                                                          \
  }

Enumeration Type Documentation

enum nsCSSUnit
Enumerator:
eCSSUnit_Null 
eCSSUnit_Auto 
eCSSUnit_Inherit 
eCSSUnit_Initial 
eCSSUnit_None 
eCSSUnit_Normal 
eCSSUnit_System_Font 
eCSSUnit_All 
eCSSUnit_Dummy 
eCSSUnit_DummyInherit 
eCSSUnit_RectIsAuto 
eCSSUnit_String 
eCSSUnit_Ident 
eCSSUnit_Families 
eCSSUnit_Attr 
eCSSUnit_Local_Font 
eCSSUnit_Font_Format 
eCSSUnit_Array 
eCSSUnit_Counter 
eCSSUnit_Counters 
eCSSUnit_Cubic_Bezier 
eCSSUnit_Function 
eCSSUnit_URL 
eCSSUnit_Image 
eCSSUnit_Gradient 
eCSSUnit_Integer 
eCSSUnit_Enumerated 
eCSSUnit_EnumColor 
eCSSUnit_Color 
eCSSUnit_Percent 
eCSSUnit_Number 
eCSSUnit_Inch 
eCSSUnit_Millimeter 
eCSSUnit_Centimeter 
eCSSUnit_Point 
eCSSUnit_Pica 
eCSSUnit_EM 
eCSSUnit_XHeight 
eCSSUnit_Char 
eCSSUnit_RootEM 
eCSSUnit_Pixel 
eCSSUnit_Degree 
eCSSUnit_Grad 
eCSSUnit_Radian 
eCSSUnit_Hertz 
eCSSUnit_Kilohertz 
eCSSUnit_Seconds 
eCSSUnit_Milliseconds