Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /*
7 * a list of the CSS properties that are exposed on nsComputedDOMStyle
8 * objects, for preprocessing
9 */
11 /******
13 This file contains the list of CSS properties that are exposed
14 on nsComputedDOMStyle objects. It is designed to be included in
15 nsComputedDOMStyle.cpp to generate the "computed style map", a
16 table of property IDs and corresponding functions on nsComputedDOMStyle
17 that return the CSSValue representing that property's computed value.
19 The COMPUTED_STYLE_PROP macro is defined for each such property.
20 Its arguments are:
22 -. 'id' the nsCSSProperty ID, without the leading "nsCSSProperty_".
24 -. 'method' the nsComputedDOMStyle method name that returns the
25 CSSValue representing that property's computed value, without the leading
26 "Do".
28 ******/
30 /* ******************************************************************* *\
31 * Properties below are listed in alphabetical order. *
32 * Please keep them that way. *
33 * *
34 * Properties commented out with // are not yet implemented *
35 * Properties commented out with //// are shorthands and not queryable *
36 \* ******************************************************************* */
38 /* ***************************** *\
39 * Implementations of CSS styles *
40 \* ***************************** */
42 COMPUTED_STYLE_PROP(align_content, AlignContent)
43 COMPUTED_STYLE_PROP(align_items, AlignItems)
44 COMPUTED_STYLE_PROP(align_self, AlignSelf)
45 //// COMPUTED_STYLE_PROP(animation, Animation)
46 COMPUTED_STYLE_PROP(animation_delay, AnimationDelay)
47 COMPUTED_STYLE_PROP(animation_direction, AnimationDirection)
48 COMPUTED_STYLE_PROP(animation_duration, AnimationDuration)
49 COMPUTED_STYLE_PROP(animation_fill_mode, AnimationFillMode)
50 COMPUTED_STYLE_PROP(animation_iteration_count, AnimationIterationCount)
51 COMPUTED_STYLE_PROP(animation_name, AnimationName)
52 COMPUTED_STYLE_PROP(animation_play_state, AnimationPlayState)
53 COMPUTED_STYLE_PROP(animation_timing_function, AnimationTimingFunction)
54 COMPUTED_STYLE_PROP(backface_visibility, BackfaceVisibility)
55 //// COMPUTED_STYLE_PROP(background, Background)
56 COMPUTED_STYLE_PROP(background_attachment, BackgroundAttachment)
57 COMPUTED_STYLE_PROP(background_blend_mode, BackgroundBlendMode)
58 COMPUTED_STYLE_PROP(background_clip, BackgroundClip)
59 COMPUTED_STYLE_PROP(background_color, BackgroundColor)
60 COMPUTED_STYLE_PROP(background_image, BackgroundImage)
61 COMPUTED_STYLE_PROP(background_origin, BackgroundOrigin)
62 COMPUTED_STYLE_PROP(background_position, BackgroundPosition)
63 COMPUTED_STYLE_PROP(background_repeat, BackgroundRepeat)
64 COMPUTED_STYLE_PROP(background_size, BackgroundSize)
65 //// COMPUTED_STYLE_PROP(border, Border)
66 //// COMPUTED_STYLE_PROP(border_bottom, BorderBottom)
67 COMPUTED_STYLE_PROP(border_bottom_color, BorderBottomColor)
68 COMPUTED_STYLE_PROP(border_bottom_left_radius, BorderBottomLeftRadius)
69 COMPUTED_STYLE_PROP(border_bottom_right_radius, BorderBottomRightRadius)
70 COMPUTED_STYLE_PROP(border_bottom_style, BorderBottomStyle)
71 COMPUTED_STYLE_PROP(border_bottom_width, BorderBottomWidth)
72 COMPUTED_STYLE_PROP(border_collapse, BorderCollapse)
73 //// COMPUTED_STYLE_PROP(border_color, BorderColor)
74 //// COMPUTED_STYLE_PROP(border_image, BorderImage)
75 COMPUTED_STYLE_PROP(border_image_outset, BorderImageOutset)
76 COMPUTED_STYLE_PROP(border_image_repeat, BorderImageRepeat)
77 COMPUTED_STYLE_PROP(border_image_slice, BorderImageSlice)
78 COMPUTED_STYLE_PROP(border_image_source, BorderImageSource)
79 COMPUTED_STYLE_PROP(border_image_width, BorderImageWidth)
80 //// COMPUTED_STYLE_PROP(border_left, BorderLeft)
81 COMPUTED_STYLE_PROP(border_left_color, BorderLeftColor)
82 COMPUTED_STYLE_PROP(border_left_style, BorderLeftStyle)
83 COMPUTED_STYLE_PROP(border_left_width, BorderLeftWidth)
84 //// COMPUTED_STYLE_PROP(border_right, BorderRight)
85 COMPUTED_STYLE_PROP(border_right_color, BorderRightColor)
86 COMPUTED_STYLE_PROP(border_right_style, BorderRightStyle)
87 COMPUTED_STYLE_PROP(border_right_width, BorderRightWidth)
88 COMPUTED_STYLE_PROP(border_spacing, BorderSpacing)
89 //// COMPUTED_STYLE_PROP(border_style, BorderStyle)
90 //// COMPUTED_STYLE_PROP(border_top, BorderTop)
91 COMPUTED_STYLE_PROP(border_top_color, BorderTopColor)
92 COMPUTED_STYLE_PROP(border_top_left_radius, BorderTopLeftRadius)
93 COMPUTED_STYLE_PROP(border_top_right_radius, BorderTopRightRadius)
94 COMPUTED_STYLE_PROP(border_top_style, BorderTopStyle)
95 COMPUTED_STYLE_PROP(border_top_width, BorderTopWidth)
96 //// COMPUTED_STYLE_PROP(border_width, BorderWidth)
97 COMPUTED_STYLE_PROP(bottom, Bottom)
98 COMPUTED_STYLE_PROP(box_shadow, BoxShadow)
99 COMPUTED_STYLE_PROP(box_sizing, BoxSizing)
100 COMPUTED_STYLE_PROP(caption_side, CaptionSide)
101 COMPUTED_STYLE_PROP(clear, Clear)
102 COMPUTED_STYLE_PROP(clip, Clip)
103 COMPUTED_STYLE_PROP(color, Color)
104 COMPUTED_STYLE_PROP(content, Content)
105 COMPUTED_STYLE_PROP(counter_increment, CounterIncrement)
106 COMPUTED_STYLE_PROP(counter_reset, CounterReset)
107 COMPUTED_STYLE_PROP(cursor, Cursor)
108 COMPUTED_STYLE_PROP(direction, Direction)
109 COMPUTED_STYLE_PROP(display, Display)
110 COMPUTED_STYLE_PROP(empty_cells, EmptyCells)
111 COMPUTED_STYLE_PROP(flex_basis, FlexBasis)
112 COMPUTED_STYLE_PROP(flex_direction, FlexDirection)
113 COMPUTED_STYLE_PROP(flex_grow, FlexGrow)
114 COMPUTED_STYLE_PROP(flex_shrink, FlexShrink)
115 COMPUTED_STYLE_PROP(flex_wrap, FlexWrap)
116 COMPUTED_STYLE_PROP(float, Float)
117 //// COMPUTED_STYLE_PROP(font, Font)
118 COMPUTED_STYLE_PROP(font_family, FontFamily)
119 COMPUTED_STYLE_PROP(font_kerning, FontKerning)
120 COMPUTED_STYLE_PROP(font_size, FontSize)
121 COMPUTED_STYLE_PROP(font_size_adjust, FontSizeAdjust)
122 COMPUTED_STYLE_PROP(font_stretch, FontStretch)
123 COMPUTED_STYLE_PROP(font_style, FontStyle)
124 COMPUTED_STYLE_PROP(font_synthesis, FontSynthesis)
125 COMPUTED_STYLE_PROP(font_variant, FontVariant)
126 COMPUTED_STYLE_PROP(font_variant_alternates, FontVariantAlternates)
127 COMPUTED_STYLE_PROP(font_variant_caps, FontVariantCaps)
128 COMPUTED_STYLE_PROP(font_variant_east_asian, FontVariantEastAsian)
129 COMPUTED_STYLE_PROP(font_variant_ligatures, FontVariantLigatures)
130 COMPUTED_STYLE_PROP(font_variant_numeric, FontVariantNumeric)
131 COMPUTED_STYLE_PROP(font_variant_position, FontVariantPosition)
132 COMPUTED_STYLE_PROP(font_weight, FontWeight)
133 COMPUTED_STYLE_PROP(grid_auto_columns, GridAutoColumns)
134 COMPUTED_STYLE_PROP(grid_auto_flow, GridAutoFlow)
135 COMPUTED_STYLE_PROP(grid_auto_position, GridAutoPosition)
136 COMPUTED_STYLE_PROP(grid_auto_rows, GridAutoRows)
137 COMPUTED_STYLE_PROP(grid_column_end, GridColumnEnd)
138 COMPUTED_STYLE_PROP(grid_column_start, GridColumnStart)
139 COMPUTED_STYLE_PROP(grid_row_end, GridRowEnd)
140 COMPUTED_STYLE_PROP(grid_row_start, GridRowStart)
141 COMPUTED_STYLE_PROP(grid_template_areas, GridTemplateAreas)
142 COMPUTED_STYLE_PROP(grid_template_columns, GridTemplateColumns)
143 COMPUTED_STYLE_PROP(grid_template_rows, GridTemplateRows)
144 COMPUTED_STYLE_PROP(height, Height)
145 COMPUTED_STYLE_PROP(image_orientation, ImageOrientation)
146 COMPUTED_STYLE_PROP(ime_mode, IMEMode)
147 COMPUTED_STYLE_PROP(justify_content, JustifyContent)
148 COMPUTED_STYLE_PROP(left, Left)
149 COMPUTED_STYLE_PROP(letter_spacing, LetterSpacing)
150 COMPUTED_STYLE_PROP(line_height, LineHeight)
151 //// COMPUTED_STYLE_PROP(list_style, ListStyle)
152 COMPUTED_STYLE_PROP(list_style_image, ListStyleImage)
153 COMPUTED_STYLE_PROP(list_style_position, ListStylePosition)
154 COMPUTED_STYLE_PROP(list_style_type, ListStyleType)
155 //// COMPUTED_STYLE_PROP(margin, Margin)
156 COMPUTED_STYLE_PROP(margin_bottom, MarginBottomWidth)
157 COMPUTED_STYLE_PROP(margin_left, MarginLeftWidth)
158 COMPUTED_STYLE_PROP(margin_right, MarginRightWidth)
159 COMPUTED_STYLE_PROP(margin_top, MarginTopWidth)
160 COMPUTED_STYLE_PROP(marker_offset, MarkerOffset)
161 // COMPUTED_STYLE_PROP(marks, Marks)
162 COMPUTED_STYLE_PROP(max_height, MaxHeight)
163 COMPUTED_STYLE_PROP(max_width, MaxWidth)
164 COMPUTED_STYLE_PROP(min_height, MinHeight)
165 COMPUTED_STYLE_PROP(min_width, MinWidth)
166 COMPUTED_STYLE_PROP(mix_blend_mode, MixBlendMode)
167 COMPUTED_STYLE_PROP(opacity, Opacity)
168 // COMPUTED_STYLE_PROP(orphans, Orphans)
169 //// COMPUTED_STYLE_PROP(outline, Outline)
170 COMPUTED_STYLE_PROP(order, Order)
171 COMPUTED_STYLE_PROP(outline_color, OutlineColor)
172 COMPUTED_STYLE_PROP(outline_offset, OutlineOffset)
173 COMPUTED_STYLE_PROP(outline_style, OutlineStyle)
174 COMPUTED_STYLE_PROP(outline_width, OutlineWidth)
175 COMPUTED_STYLE_PROP(overflow, Overflow)
176 COMPUTED_STYLE_PROP(overflow_clip_box, OverflowClipBox)
177 COMPUTED_STYLE_PROP(overflow_x, OverflowX)
178 COMPUTED_STYLE_PROP(overflow_y, OverflowY)
179 //// COMPUTED_STYLE_PROP(padding, Padding)
180 COMPUTED_STYLE_PROP(padding_bottom, PaddingBottom)
181 COMPUTED_STYLE_PROP(padding_left, PaddingLeft)
182 COMPUTED_STYLE_PROP(padding_right, PaddingRight)
183 COMPUTED_STYLE_PROP(padding_top, PaddingTop)
184 // COMPUTED_STYLE_PROP(page, Page)
185 COMPUTED_STYLE_PROP(page_break_after, PageBreakAfter)
186 COMPUTED_STYLE_PROP(page_break_before, PageBreakBefore)
187 COMPUTED_STYLE_PROP(page_break_inside, PageBreakInside)
188 COMPUTED_STYLE_PROP(perspective, Perspective)
189 COMPUTED_STYLE_PROP(perspective_origin, PerspectiveOrigin)
190 COMPUTED_STYLE_PROP(pointer_events, PointerEvents)
191 COMPUTED_STYLE_PROP(position, Position)
192 COMPUTED_STYLE_PROP(quotes, Quotes)
193 COMPUTED_STYLE_PROP(resize, Resize)
194 COMPUTED_STYLE_PROP(right, Right)
195 //// COMPUTED_STYLE_PROP(size, Size)
196 COMPUTED_STYLE_PROP(table_layout, TableLayout)
197 COMPUTED_STYLE_PROP(text_align, TextAlign)
198 COMPUTED_STYLE_PROP(text_combine_upright, TextCombineUpright)
199 COMPUTED_STYLE_PROP(text_decoration, TextDecoration)
200 COMPUTED_STYLE_PROP(text_indent, TextIndent)
201 COMPUTED_STYLE_PROP(text_orientation, TextOrientation)
202 COMPUTED_STYLE_PROP(text_overflow, TextOverflow)
203 COMPUTED_STYLE_PROP(text_shadow, TextShadow)
204 COMPUTED_STYLE_PROP(text_transform, TextTransform)
205 COMPUTED_STYLE_PROP(top, Top)
206 COMPUTED_STYLE_PROP(touch_action, TouchAction)
207 COMPUTED_STYLE_PROP(transform, Transform)
208 COMPUTED_STYLE_PROP(transform_origin, TransformOrigin)
209 COMPUTED_STYLE_PROP(transform_style, TransformStyle)
210 //// COMPUTED_STYLE_PROP(transition, Transition)
211 COMPUTED_STYLE_PROP(transition_delay, TransitionDelay)
212 COMPUTED_STYLE_PROP(transition_duration, TransitionDuration)
213 COMPUTED_STYLE_PROP(transition_property, TransitionProperty)
214 COMPUTED_STYLE_PROP(transition_timing_function, TransitionTimingFunction)
215 COMPUTED_STYLE_PROP(unicode_bidi, UnicodeBidi)
216 COMPUTED_STYLE_PROP(vertical_align, VerticalAlign)
217 COMPUTED_STYLE_PROP(visibility, Visibility)
218 COMPUTED_STYLE_PROP(white_space, WhiteSpace)
219 // COMPUTED_STYLE_PROP(widows, Widows)
220 COMPUTED_STYLE_PROP(width, Width)
221 COMPUTED_STYLE_PROP(will_change, WillChange)
222 COMPUTED_STYLE_PROP(word_break, WordBreak)
223 COMPUTED_STYLE_PROP(word_spacing, WordSpacing)
224 COMPUTED_STYLE_PROP(word_wrap, WordWrap)
225 COMPUTED_STYLE_PROP(writing_mode, WritingMode)
226 COMPUTED_STYLE_PROP(z_index, ZIndex)
228 /* ******************************* *\
229 * Implementations of -moz- styles *
230 \* ******************************* */
232 COMPUTED_STYLE_PROP(appearance, Appearance)
233 COMPUTED_STYLE_PROP(_moz_background_inline_policy, BackgroundInlinePolicy)
234 COMPUTED_STYLE_PROP(binding, Binding)
235 COMPUTED_STYLE_PROP(border_bottom_colors, BorderBottomColors)
236 COMPUTED_STYLE_PROP(border_left_colors, BorderLeftColors)
237 COMPUTED_STYLE_PROP(border_right_colors, BorderRightColors)
238 COMPUTED_STYLE_PROP(border_top_colors, BorderTopColors)
239 COMPUTED_STYLE_PROP(box_align, BoxAlign)
240 COMPUTED_STYLE_PROP(box_direction, BoxDirection)
241 COMPUTED_STYLE_PROP(box_flex, BoxFlex)
242 COMPUTED_STYLE_PROP(box_ordinal_group, BoxOrdinalGroup)
243 COMPUTED_STYLE_PROP(box_orient, BoxOrient)
244 COMPUTED_STYLE_PROP(box_pack, BoxPack)
245 COMPUTED_STYLE_PROP(_moz_column_count, ColumnCount)
246 COMPUTED_STYLE_PROP(_moz_column_fill, ColumnFill)
247 COMPUTED_STYLE_PROP(_moz_column_gap, ColumnGap)
248 //// COMPUTED_STYLE_PROP(_moz_column_rule, ColumnRule)
249 COMPUTED_STYLE_PROP(_moz_column_rule_color, ColumnRuleColor)
250 COMPUTED_STYLE_PROP(_moz_column_rule_style, ColumnRuleStyle)
251 COMPUTED_STYLE_PROP(_moz_column_rule_width, ColumnRuleWidth)
252 COMPUTED_STYLE_PROP(_moz_column_width, ColumnWidth)
253 COMPUTED_STYLE_PROP(float_edge, FloatEdge)
254 COMPUTED_STYLE_PROP(font_feature_settings, FontFeatureSettings)
255 COMPUTED_STYLE_PROP(font_language_override, FontLanguageOverride)
256 COMPUTED_STYLE_PROP(force_broken_image_icon, ForceBrokenImageIcon)
257 COMPUTED_STYLE_PROP(hyphens, Hyphens)
258 COMPUTED_STYLE_PROP(image_region, ImageRegion)
259 COMPUTED_STYLE_PROP(orient, Orient)
260 COMPUTED_STYLE_PROP(osx_font_smoothing, OSXFontSmoothing)
261 COMPUTED_STYLE_PROP(_moz_outline_radius_bottomLeft, OutlineRadiusBottomLeft)
262 COMPUTED_STYLE_PROP(_moz_outline_radius_bottomRight,OutlineRadiusBottomRight)
263 COMPUTED_STYLE_PROP(_moz_outline_radius_topLeft, OutlineRadiusTopLeft)
264 COMPUTED_STYLE_PROP(_moz_outline_radius_topRight, OutlineRadiusTopRight)
265 COMPUTED_STYLE_PROP(stack_sizing, StackSizing)
266 COMPUTED_STYLE_PROP(_moz_tab_size, TabSize)
267 COMPUTED_STYLE_PROP(text_align_last, TextAlignLast)
268 COMPUTED_STYLE_PROP(text_decoration_color, TextDecorationColor)
269 COMPUTED_STYLE_PROP(text_decoration_line, TextDecorationLine)
270 COMPUTED_STYLE_PROP(text_decoration_style, TextDecorationStyle)
271 COMPUTED_STYLE_PROP(text_size_adjust, TextSizeAdjust)
272 COMPUTED_STYLE_PROP(user_focus, UserFocus)
273 COMPUTED_STYLE_PROP(user_input, UserInput)
274 COMPUTED_STYLE_PROP(user_modify, UserModify)
275 COMPUTED_STYLE_PROP(user_select, UserSelect)
276 COMPUTED_STYLE_PROP(_moz_window_shadow, WindowShadow)
278 /* ***************************** *\
279 * Implementations of SVG styles *
280 \* ***************************** */
282 COMPUTED_STYLE_PROP(clip_path, ClipPath)
283 COMPUTED_STYLE_PROP(clip_rule, ClipRule)
284 COMPUTED_STYLE_PROP(color_interpolation, ColorInterpolation)
285 COMPUTED_STYLE_PROP(color_interpolation_filters, ColorInterpolationFilters)
286 COMPUTED_STYLE_PROP(dominant_baseline, DominantBaseline)
287 COMPUTED_STYLE_PROP(fill, Fill)
288 COMPUTED_STYLE_PROP(fill_opacity, FillOpacity)
289 COMPUTED_STYLE_PROP(fill_rule, FillRule)
290 COMPUTED_STYLE_PROP(filter, Filter)
291 COMPUTED_STYLE_PROP(flood_color, FloodColor)
292 COMPUTED_STYLE_PROP(flood_opacity, FloodOpacity)
293 COMPUTED_STYLE_PROP(image_rendering, ImageRendering)
294 COMPUTED_STYLE_PROP(lighting_color, LightingColor)
295 COMPUTED_STYLE_PROP(marker_end, MarkerEnd)
296 COMPUTED_STYLE_PROP(marker_mid, MarkerMid)
297 COMPUTED_STYLE_PROP(marker_start, MarkerStart)
298 COMPUTED_STYLE_PROP(mask, Mask)
299 COMPUTED_STYLE_PROP(mask_type, MaskType)
300 COMPUTED_STYLE_PROP(paint_order, PaintOrder)
301 COMPUTED_STYLE_PROP(shape_rendering, ShapeRendering)
302 COMPUTED_STYLE_PROP(stop_color, StopColor)
303 COMPUTED_STYLE_PROP(stop_opacity, StopOpacity)
304 COMPUTED_STYLE_PROP(stroke, Stroke)
305 COMPUTED_STYLE_PROP(stroke_dasharray, StrokeDasharray)
306 COMPUTED_STYLE_PROP(stroke_dashoffset, StrokeDashoffset)
307 COMPUTED_STYLE_PROP(stroke_linecap, StrokeLinecap)
308 COMPUTED_STYLE_PROP(stroke_linejoin, StrokeLinejoin)
309 COMPUTED_STYLE_PROP(stroke_miterlimit, StrokeMiterlimit)
310 COMPUTED_STYLE_PROP(stroke_opacity, StrokeOpacity)
311 COMPUTED_STYLE_PROP(stroke_width, StrokeWidth)
312 COMPUTED_STYLE_PROP(text_anchor, TextAnchor)
313 COMPUTED_STYLE_PROP(text_rendering, TextRendering)
314 COMPUTED_STYLE_PROP(vector_effect, VectorEffect)