Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Variables
nsCSSProps.cpp File Reference
#include "nsCSSProps.h"
#include "nsCSSKeywords.h"
#include "nsStyleConsts.h"
#include "nsThemeConstants.h"
#include "nsILookAndFeel.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsStaticNameTable.h"
#include "nsCSSPropList.h"

Go to the source code of this file.

Classes

struct  CSSPropertyAlias

Defines

#define CSS_PROP(name_, id_, method_, datastruct_, member_, type_, kwtable_)   #name_,
#define CSS_PROP_SHORTHAND(name_, id_, method_)   #name_,
#define CSS_PROP(name_, id_, method_, datastruct_, member_, type_, kwtable_)   kwtable_,
#define CSS_PROP(name_, id_, method_, datastruct_, member_, type_, kwtable_)   type_,
#define CSS_PROP_FONT(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Font,
#define CSS_PROP_COLOR(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Color,
#define CSS_PROP_BACKGROUND(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Background,
#define CSS_PROP_LIST(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_List,
#define CSS_PROP_POSITION(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Position,
#define CSS_PROP_TEXT(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Text,
#define CSS_PROP_TEXTRESET(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_TextReset,
#define CSS_PROP_DISPLAY(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Display,
#define CSS_PROP_VISIBILITY(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Visibility,
#define CSS_PROP_CONTENT(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Content,
#define CSS_PROP_QUOTES(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Quotes,
#define CSS_PROP_USERINTERFACE(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_UserInterface,
#define CSS_PROP_UIRESET(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_UIReset,
#define CSS_PROP_TABLE(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Table,
#define CSS_PROP_TABLEBORDER(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_TableBorder,
#define CSS_PROP_MARGIN(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Margin,
#define CSS_PROP_PADDING(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Padding,
#define CSS_PROP_BORDER(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Border,
#define CSS_PROP_OUTLINE(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Outline,
#define CSS_PROP_XUL(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_XUL,
#define CSS_PROP_SVG(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_SVG,
#define CSS_PROP_SVGRESET(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_SVGReset,
#define CSS_PROP_COLUMN(name_, id_, method_, datastruct_, member_, type_, kwtable_)   eStyleStruct_Column,
#define CSS_PROP_BACKENDONLY(name_, id_, method_, datastruct_, member_, type_, kwtable_)   nsStyleStructID(-1),
#define CSS_PROP_SHORTHAND(name_, id_, method_)   g##method_##SubpropTable,

Variables

const char *const kCSSRawProperties []
static PRInt32 gTableRefCount
static
nsStaticCaseInsensitiveNameTable * 
gPropertyTable
static const CSSPropertyAlias gAliases []
static const nsCSSProperty gMozBorderRadiusSubpropTable []
static const nsCSSProperty gMozOutlineRadiusSubpropTable []
static const nsCSSProperty gBackgroundSubpropTable []
static const nsCSSProperty gBackgroundPositionSubpropTable []
static const nsCSSProperty gBorderSubpropTable []
static const nsCSSProperty gBorderBottomSubpropTable []
static const nsCSSProperty gBorderColorSubpropTable []
static const nsCSSProperty gBorderLeftSubpropTable []
static const nsCSSProperty gBorderRightSubpropTable []
static const nsCSSProperty gBorderStyleSubpropTable []
static const nsCSSProperty gBorderTopSubpropTable []
static const nsCSSProperty gBorderWidthSubpropTable []
static const nsCSSProperty gCueSubpropTable []
static const nsCSSProperty gFontSubpropTable []
static const nsCSSProperty gListStyleSubpropTable []
static const nsCSSProperty gMarginSubpropTable []
static const nsCSSProperty gMarginLeftSubpropTable []
static const nsCSSProperty gMarginRightSubpropTable []
static const nsCSSProperty gMozMarginStartSubpropTable []
static const nsCSSProperty gMozMarginEndSubpropTable []
static const nsCSSProperty gOutlineSubpropTable []
static const nsCSSProperty gOverflowSubpropTable []
static const nsCSSProperty gPaddingSubpropTable []
static const nsCSSProperty gPaddingLeftSubpropTable []
static const nsCSSProperty gPaddingRightSubpropTable []
static const nsCSSProperty gMozPaddingStartSubpropTable []
static const nsCSSProperty gMozPaddingEndSubpropTable []
static const nsCSSProperty gPauseSubpropTable []

Class Documentation

struct CSSPropertyAlias

Definition at line 102 of file nsCSSProps.cpp.

Class Members
nsCSSProperty id
char name

Define Documentation

#define CSS_PROP (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    #name_,
#define CSS_PROP (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    kwtable_,
#define CSS_PROP (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    type_,
#define CSS_PROP_BACKENDONLY (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    nsStyleStructID(-1),
#define CSS_PROP_BACKGROUND (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Background,
#define CSS_PROP_BORDER (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Border,
#define CSS_PROP_COLOR (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Color,
#define CSS_PROP_COLUMN (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Column,
#define CSS_PROP_CONTENT (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Content,
#define CSS_PROP_DISPLAY (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Display,
#define CSS_PROP_FONT (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Font,
#define CSS_PROP_LIST (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_List,
#define CSS_PROP_MARGIN (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Margin,
#define CSS_PROP_OUTLINE (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Outline,
#define CSS_PROP_PADDING (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Padding,
#define CSS_PROP_POSITION (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Position,
#define CSS_PROP_QUOTES (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Quotes,
#define CSS_PROP_SHORTHAND (   name_,
  id_,
  method_ 
)    #name_,
#define CSS_PROP_SHORTHAND (   name_,
  id_,
  method_ 
)    g##method_##SubpropTable,
#define CSS_PROP_SVG (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_SVG,
#define CSS_PROP_SVGRESET (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_SVGReset,
#define CSS_PROP_TABLE (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Table,
#define CSS_PROP_TABLEBORDER (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_TableBorder,
#define CSS_PROP_TEXT (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Text,
#define CSS_PROP_TEXTRESET (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_TextReset,
#define CSS_PROP_UIRESET (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_UIReset,
#define CSS_PROP_USERINTERFACE (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_UserInterface,
#define CSS_PROP_VISIBILITY (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_Visibility,
#define CSS_PROP_XUL (   name_,
  id_,
  method_,
  datastruct_,
  member_,
  type_,
  kwtable_ 
)    eStyleStruct_XUL,

Variable Documentation

Initial value:
 {
  { "-moz-opacity", eCSSProperty_opacity },
  { "-moz-outline", eCSSProperty_outline },
  { "-moz-outline-color", eCSSProperty_outline_color },
  { "-moz-outline-style", eCSSProperty_outline_style },
  { "-moz-outline-width", eCSSProperty_outline_width },
  { "-moz-outline-offset", eCSSProperty_outline_offset }
  
  
}

Definition at line 107 of file nsCSSProps.cpp.

Initial value:
 {
  eCSSProperty_background_x_position,
  eCSSProperty_background_y_position,
  eCSSProperty_UNKNOWN
}

Definition at line 1216 of file nsCSSProps.cpp.

Initial value:
 {
  eCSSProperty_background_color,
  eCSSProperty_background_image,
  eCSSProperty_background_repeat,
  eCSSProperty_background_attachment,
  eCSSProperty_background_x_position,
  eCSSProperty_background_y_position,
  eCSSProperty__moz_background_clip, 
  eCSSProperty__moz_background_origin, 
  eCSSProperty__moz_background_inline_policy, 
  eCSSProperty_UNKNOWN
}

Definition at line 1203 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_border_bottom_width,
  eCSSProperty_border_bottom_style,
  eCSSProperty_border_bottom_color,
  eCSSProperty_UNKNOWN
}

Definition at line 1238 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_border_top_color,
  eCSSProperty_border_right_color,
  eCSSProperty_border_bottom_color,
  eCSSProperty_border_left_color,
  eCSSProperty_UNKNOWN
}

Definition at line 1246 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_border_left_width,
  eCSSProperty_border_left_style,
  eCSSProperty_border_left_color,
  eCSSProperty_UNKNOWN
}

Definition at line 1255 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_border_right_width,
  eCSSProperty_border_right_style,
  eCSSProperty_border_right_color,
  eCSSProperty_UNKNOWN
}

Definition at line 1263 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_border_top_style,
  eCSSProperty_border_right_style,
  eCSSProperty_border_bottom_style,
  eCSSProperty_border_left_style,
  eCSSProperty_UNKNOWN
}

Definition at line 1271 of file nsCSSProps.cpp.

Initial value:
 {
  eCSSProperty_border_top_width,
  eCSSProperty_border_right_width,
  eCSSProperty_border_bottom_width,
  eCSSProperty_border_left_width,
  eCSSProperty_border_top_style,
  eCSSProperty_border_right_style,
  eCSSProperty_border_bottom_style,
  eCSSProperty_border_left_style,
  eCSSProperty_border_top_color,
  eCSSProperty_border_right_color,
  eCSSProperty_border_bottom_color,
  eCSSProperty_border_left_color,
  eCSSProperty_UNKNOWN
}

Definition at line 1222 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_border_top_width,
  eCSSProperty_border_top_style,
  eCSSProperty_border_top_color,
  eCSSProperty_UNKNOWN
}

Definition at line 1280 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_border_top_width,
  eCSSProperty_border_right_width,
  eCSSProperty_border_bottom_width,
  eCSSProperty_border_left_width,
  eCSSProperty_UNKNOWN
}

Definition at line 1288 of file nsCSSProps.cpp.

Initial value:
 {
  eCSSProperty_cue_after,
  eCSSProperty_cue_before,
  eCSSProperty_UNKNOWN
}

Definition at line 1297 of file nsCSSProps.cpp.

Initial value:
 {
  eCSSProperty_font_family,
  eCSSProperty_font_style,
  eCSSProperty_font_variant,
  eCSSProperty_font_weight,
  eCSSProperty_font_size,
  eCSSProperty_line_height,
  eCSSProperty_font_size_adjust, 
  eCSSProperty_font_stretch, 
  eCSSProperty_UNKNOWN
}

Definition at line 1303 of file nsCSSProps.cpp.

Initial value:
 {
  eCSSProperty_list_style_type,
  eCSSProperty_list_style_image,
  eCSSProperty_list_style_position,
  eCSSProperty_UNKNOWN
}

Definition at line 1315 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_margin_left_value,
  eCSSProperty_margin_left_ltr_source,
  eCSSProperty_margin_left_rtl_source,
  eCSSProperty_UNKNOWN
}

Definition at line 1336 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_margin_right_value,
  eCSSProperty_margin_right_ltr_source,
  eCSSProperty_margin_right_rtl_source,
  eCSSProperty_UNKNOWN
}

Definition at line 1344 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_margin_top,
  eCSSProperty_margin_right_value,
  eCSSProperty_margin_bottom,
  eCSSProperty_margin_left_value,
  
  eCSSProperty_margin_left_ltr_source,
  eCSSProperty_margin_left_rtl_source,
  eCSSProperty_margin_right_ltr_source,
  eCSSProperty_margin_right_rtl_source,
  eCSSProperty_UNKNOWN
}

Definition at line 1322 of file nsCSSProps.cpp.

Initial value:
 {
  
  
  eCSSProperty__moz_border_radius_topLeft,
  eCSSProperty__moz_border_radius_topRight,
  eCSSProperty__moz_border_radius_bottomRight,
  eCSSProperty__moz_border_radius_bottomLeft,
  eCSSProperty_UNKNOWN
}

Definition at line 1183 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_margin_end_value,
  eCSSProperty_margin_right_ltr_source,
  eCSSProperty_margin_left_rtl_source,
  eCSSProperty_UNKNOWN
}

Definition at line 1360 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_margin_start_value,
  eCSSProperty_margin_left_ltr_source,
  eCSSProperty_margin_right_rtl_source,
  eCSSProperty_UNKNOWN
}

Definition at line 1352 of file nsCSSProps.cpp.

Initial value:
 {
  
  
  eCSSProperty__moz_outline_radius_topLeft,
  eCSSProperty__moz_outline_radius_topRight,
  eCSSProperty__moz_outline_radius_bottomRight,
  eCSSProperty__moz_outline_radius_bottomLeft,
  eCSSProperty_UNKNOWN
}

Definition at line 1193 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_padding_end_value,
  eCSSProperty_padding_right_ltr_source,
  eCSSProperty_padding_left_rtl_source,
  eCSSProperty_UNKNOWN
}

Definition at line 1421 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_padding_start_value,
  eCSSProperty_padding_left_ltr_source,
  eCSSProperty_padding_right_rtl_source,
  eCSSProperty_UNKNOWN
}

Definition at line 1413 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_outline_color,
  eCSSProperty_outline_style,
  eCSSProperty_outline_width,
  eCSSProperty_UNKNOWN
}

Definition at line 1369 of file nsCSSProps.cpp.

Initial value:
 {
  eCSSProperty_overflow_x,
  eCSSProperty_overflow_y,
  eCSSProperty_UNKNOWN
}

Definition at line 1377 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_padding_left_value,
  eCSSProperty_padding_left_ltr_source,
  eCSSProperty_padding_left_rtl_source,
  eCSSProperty_UNKNOWN
}

Definition at line 1397 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_padding_right_value,
  eCSSProperty_padding_right_ltr_source,
  eCSSProperty_padding_right_rtl_source,
  eCSSProperty_UNKNOWN
}

Definition at line 1405 of file nsCSSProps.cpp.

Initial value:
 {
  
  eCSSProperty_padding_top,
  eCSSProperty_padding_right_value,
  eCSSProperty_padding_bottom,
  eCSSProperty_padding_left_value,
  
  eCSSProperty_padding_left_ltr_source,
  eCSSProperty_padding_left_rtl_source,
  eCSSProperty_padding_right_ltr_source,
  eCSSProperty_padding_right_rtl_source,
  eCSSProperty_UNKNOWN
}

Definition at line 1383 of file nsCSSProps.cpp.

Initial value:
 {
  eCSSProperty_pause_after,
  eCSSProperty_pause_before,
  eCSSProperty_UNKNOWN
}

Definition at line 1429 of file nsCSSProps.cpp.

nsStaticCaseInsensitiveNameTable* gPropertyTable [static]

Definition at line 65 of file nsCSSProps.cpp.

Definition at line 64 of file nsCSSProps.cpp.

Definition at line 54 of file nsCSSProps.cpp.