Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | /* constants used in the style struct data provided by nsStyleContext */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef nsStyleConsts_h___ |
michael@0 | 9 | #define nsStyleConsts_h___ |
michael@0 | 10 | |
michael@0 | 11 | #include "gfxRect.h" |
michael@0 | 12 | #include "nsFont.h" |
michael@0 | 13 | |
michael@0 | 14 | // XXX fold this into nsStyleContext and group by nsStyleXXX struct |
michael@0 | 15 | |
michael@0 | 16 | // Indices into border/padding/margin arrays |
michael@0 | 17 | #define NS_SIDE_TOP mozilla::css::eSideTop |
michael@0 | 18 | #define NS_SIDE_RIGHT mozilla::css::eSideRight |
michael@0 | 19 | #define NS_SIDE_BOTTOM mozilla::css::eSideBottom |
michael@0 | 20 | #define NS_SIDE_LEFT mozilla::css::eSideLeft |
michael@0 | 21 | |
michael@0 | 22 | #define NS_FOR_CSS_SIDES(var_) for (mozilla::css::Side var_ = NS_SIDE_TOP; var_ <= NS_SIDE_LEFT; var_++) |
michael@0 | 23 | static inline mozilla::css::Side operator++(mozilla::css::Side& side, int) { |
michael@0 | 24 | NS_PRECONDITION(side >= NS_SIDE_TOP && |
michael@0 | 25 | side <= NS_SIDE_LEFT, "Out of range side"); |
michael@0 | 26 | side = mozilla::css::Side(side + 1); |
michael@0 | 27 | return side; |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | #define NS_FOR_CSS_FULL_CORNERS(var_) for (int32_t var_ = 0; var_ < 4; ++var_) |
michael@0 | 31 | |
michael@0 | 32 | // Indices into "half corner" arrays (nsStyleCorners e.g.) |
michael@0 | 33 | #define NS_CORNER_TOP_LEFT_X 0 |
michael@0 | 34 | #define NS_CORNER_TOP_LEFT_Y 1 |
michael@0 | 35 | #define NS_CORNER_TOP_RIGHT_X 2 |
michael@0 | 36 | #define NS_CORNER_TOP_RIGHT_Y 3 |
michael@0 | 37 | #define NS_CORNER_BOTTOM_RIGHT_X 4 |
michael@0 | 38 | #define NS_CORNER_BOTTOM_RIGHT_Y 5 |
michael@0 | 39 | #define NS_CORNER_BOTTOM_LEFT_X 6 |
michael@0 | 40 | #define NS_CORNER_BOTTOM_LEFT_Y 7 |
michael@0 | 41 | |
michael@0 | 42 | #define NS_FOR_CSS_HALF_CORNERS(var_) for (int32_t var_ = 0; var_ < 8; ++var_) |
michael@0 | 43 | |
michael@0 | 44 | // The results of these conversion macros are exhaustively checked in |
michael@0 | 45 | // nsStyleCoord.cpp. |
michael@0 | 46 | // Arguments must not have side effects. |
michael@0 | 47 | |
michael@0 | 48 | #define NS_HALF_CORNER_IS_X(var_) (!((var_)%2)) |
michael@0 | 49 | #define NS_HALF_TO_FULL_CORNER(var_) ((var_)/2) |
michael@0 | 50 | #define NS_FULL_TO_HALF_CORNER(var_, vert_) ((var_)*2 + !!(vert_)) |
michael@0 | 51 | |
michael@0 | 52 | #define NS_SIDE_IS_VERTICAL(side_) ((side_) % 2) |
michael@0 | 53 | #define NS_SIDE_TO_FULL_CORNER(side_, second_) \ |
michael@0 | 54 | (((side_) + !!(second_)) % 4) |
michael@0 | 55 | #define NS_SIDE_TO_HALF_CORNER(side_, second_, parallel_) \ |
michael@0 | 56 | ((((side_) + !!(second_))*2 + ((side_) + !(parallel_))%2) % 8) |
michael@0 | 57 | |
michael@0 | 58 | // {margin,border-{width,style,color},padding}-{left,right}-{ltr,rtl}-source |
michael@0 | 59 | #define NS_BOXPROP_SOURCE_PHYSICAL 0 |
michael@0 | 60 | #define NS_BOXPROP_SOURCE_LOGICAL 1 |
michael@0 | 61 | |
michael@0 | 62 | // box-sizing |
michael@0 | 63 | #define NS_STYLE_BOX_SIZING_CONTENT 0 |
michael@0 | 64 | #define NS_STYLE_BOX_SIZING_PADDING 1 |
michael@0 | 65 | #define NS_STYLE_BOX_SIZING_BORDER 2 |
michael@0 | 66 | |
michael@0 | 67 | // box-shadow |
michael@0 | 68 | #define NS_STYLE_BOX_SHADOW_INSET 0 |
michael@0 | 69 | |
michael@0 | 70 | // float-edge |
michael@0 | 71 | #define NS_STYLE_FLOAT_EDGE_CONTENT 0 |
michael@0 | 72 | #define NS_STYLE_FLOAT_EDGE_MARGIN 1 |
michael@0 | 73 | |
michael@0 | 74 | // user-focus |
michael@0 | 75 | #define NS_STYLE_USER_FOCUS_NONE 0 |
michael@0 | 76 | #define NS_STYLE_USER_FOCUS_IGNORE 1 |
michael@0 | 77 | #define NS_STYLE_USER_FOCUS_NORMAL 2 |
michael@0 | 78 | #define NS_STYLE_USER_FOCUS_SELECT_ALL 3 |
michael@0 | 79 | #define NS_STYLE_USER_FOCUS_SELECT_BEFORE 4 |
michael@0 | 80 | #define NS_STYLE_USER_FOCUS_SELECT_AFTER 5 |
michael@0 | 81 | #define NS_STYLE_USER_FOCUS_SELECT_SAME 6 |
michael@0 | 82 | #define NS_STYLE_USER_FOCUS_SELECT_MENU 7 |
michael@0 | 83 | |
michael@0 | 84 | // user-select |
michael@0 | 85 | #define NS_STYLE_USER_SELECT_NONE 0 |
michael@0 | 86 | #define NS_STYLE_USER_SELECT_TEXT 1 |
michael@0 | 87 | #define NS_STYLE_USER_SELECT_ELEMENT 2 |
michael@0 | 88 | #define NS_STYLE_USER_SELECT_ELEMENTS 3 |
michael@0 | 89 | #define NS_STYLE_USER_SELECT_ALL 4 |
michael@0 | 90 | #define NS_STYLE_USER_SELECT_TOGGLE 5 |
michael@0 | 91 | #define NS_STYLE_USER_SELECT_TRI_STATE 6 |
michael@0 | 92 | #define NS_STYLE_USER_SELECT_AUTO 7 // internal value - please use nsFrame::IsSelectable() |
michael@0 | 93 | #define NS_STYLE_USER_SELECT_MOZ_ALL 8 // force selection of all children, unless an ancestor has NONE set - bug 48096 |
michael@0 | 94 | #define NS_STYLE_USER_SELECT_MOZ_NONE 9 // Like NONE, but doesn't change selection behavior for descendants whose user-select is not AUTO. |
michael@0 | 95 | |
michael@0 | 96 | // user-input |
michael@0 | 97 | #define NS_STYLE_USER_INPUT_NONE 0 |
michael@0 | 98 | #define NS_STYLE_USER_INPUT_ENABLED 1 |
michael@0 | 99 | #define NS_STYLE_USER_INPUT_DISABLED 2 |
michael@0 | 100 | #define NS_STYLE_USER_INPUT_AUTO 3 |
michael@0 | 101 | |
michael@0 | 102 | // user-modify |
michael@0 | 103 | #define NS_STYLE_USER_MODIFY_READ_ONLY 0 |
michael@0 | 104 | #define NS_STYLE_USER_MODIFY_READ_WRITE 1 |
michael@0 | 105 | #define NS_STYLE_USER_MODIFY_WRITE_ONLY 2 |
michael@0 | 106 | |
michael@0 | 107 | // box-align |
michael@0 | 108 | #define NS_STYLE_BOX_ALIGN_STRETCH 0 |
michael@0 | 109 | #define NS_STYLE_BOX_ALIGN_START 1 |
michael@0 | 110 | #define NS_STYLE_BOX_ALIGN_CENTER 2 |
michael@0 | 111 | #define NS_STYLE_BOX_ALIGN_BASELINE 3 |
michael@0 | 112 | #define NS_STYLE_BOX_ALIGN_END 4 |
michael@0 | 113 | |
michael@0 | 114 | // box-pack |
michael@0 | 115 | #define NS_STYLE_BOX_PACK_START 0 |
michael@0 | 116 | #define NS_STYLE_BOX_PACK_CENTER 1 |
michael@0 | 117 | #define NS_STYLE_BOX_PACK_END 2 |
michael@0 | 118 | #define NS_STYLE_BOX_PACK_JUSTIFY 3 |
michael@0 | 119 | |
michael@0 | 120 | // box-direction |
michael@0 | 121 | #define NS_STYLE_BOX_DIRECTION_NORMAL 0 |
michael@0 | 122 | #define NS_STYLE_BOX_DIRECTION_REVERSE 1 |
michael@0 | 123 | |
michael@0 | 124 | // box-orient |
michael@0 | 125 | #define NS_STYLE_BOX_ORIENT_HORIZONTAL 0 |
michael@0 | 126 | #define NS_STYLE_BOX_ORIENT_VERTICAL 1 |
michael@0 | 127 | |
michael@0 | 128 | // orient |
michael@0 | 129 | #define NS_STYLE_ORIENT_HORIZONTAL 0 |
michael@0 | 130 | #define NS_STYLE_ORIENT_VERTICAL 1 |
michael@0 | 131 | #define NS_STYLE_ORIENT_AUTO 2 |
michael@0 | 132 | |
michael@0 | 133 | // stack-sizing |
michael@0 | 134 | #define NS_STYLE_STACK_SIZING_IGNORE 0 |
michael@0 | 135 | #define NS_STYLE_STACK_SIZING_STRETCH_TO_FIT 1 |
michael@0 | 136 | |
michael@0 | 137 | // Azimuth - See nsStyleAural |
michael@0 | 138 | #define NS_STYLE_AZIMUTH_LEFT_SIDE 0x00 |
michael@0 | 139 | #define NS_STYLE_AZIMUTH_FAR_LEFT 0x01 |
michael@0 | 140 | #define NS_STYLE_AZIMUTH_LEFT 0x02 |
michael@0 | 141 | #define NS_STYLE_AZIMUTH_CENTER_LEFT 0x03 |
michael@0 | 142 | #define NS_STYLE_AZIMUTH_CENTER 0x04 |
michael@0 | 143 | #define NS_STYLE_AZIMUTH_CENTER_RIGHT 0x05 |
michael@0 | 144 | #define NS_STYLE_AZIMUTH_RIGHT 0x06 |
michael@0 | 145 | #define NS_STYLE_AZIMUTH_FAR_RIGHT 0x07 |
michael@0 | 146 | #define NS_STYLE_AZIMUTH_RIGHT_SIDE 0x08 |
michael@0 | 147 | #define NS_STYLE_AZIMUTH_BEHIND 0x80 // bits |
michael@0 | 148 | #define NS_STYLE_AZIMUTH_LEFTWARDS 0x10 // bits |
michael@0 | 149 | #define NS_STYLE_AZIMUTH_RIGHTWARDS 0x20 // bits |
michael@0 | 150 | |
michael@0 | 151 | // See nsStyleAural |
michael@0 | 152 | #define NS_STYLE_ELEVATION_BELOW 1 |
michael@0 | 153 | #define NS_STYLE_ELEVATION_LEVEL 2 |
michael@0 | 154 | #define NS_STYLE_ELEVATION_ABOVE 3 |
michael@0 | 155 | #define NS_STYLE_ELEVATION_HIGHER 4 |
michael@0 | 156 | #define NS_STYLE_ELEVATION_LOWER 5 |
michael@0 | 157 | |
michael@0 | 158 | // See nsStyleAural |
michael@0 | 159 | #define NS_STYLE_PITCH_X_LOW 1 |
michael@0 | 160 | #define NS_STYLE_PITCH_LOW 2 |
michael@0 | 161 | #define NS_STYLE_PITCH_MEDIUM 3 |
michael@0 | 162 | #define NS_STYLE_PITCH_HIGH 4 |
michael@0 | 163 | #define NS_STYLE_PITCH_X_HIGH 5 |
michael@0 | 164 | |
michael@0 | 165 | // See nsStyleAural |
michael@0 | 166 | #define NS_STYLE_SPEAK_NONE 0 |
michael@0 | 167 | #define NS_STYLE_SPEAK_NORMAL 1 |
michael@0 | 168 | #define NS_STYLE_SPEAK_SPELL_OUT 2 |
michael@0 | 169 | |
michael@0 | 170 | // See nsStyleAural |
michael@0 | 171 | #define NS_STYLE_SPEAK_HEADER_ONCE 0 |
michael@0 | 172 | #define NS_STYLE_SPEAK_HEADER_ALWAYS 1 |
michael@0 | 173 | |
michael@0 | 174 | // See nsStyleAural |
michael@0 | 175 | #define NS_STYLE_SPEAK_NUMERAL_DIGITS 0 |
michael@0 | 176 | #define NS_STYLE_SPEAK_NUMERAL_CONTINUOUS 1 |
michael@0 | 177 | |
michael@0 | 178 | // See nsStyleAural |
michael@0 | 179 | #define NS_STYLE_SPEAK_PUNCTUATION_NONE 0 |
michael@0 | 180 | #define NS_STYLE_SPEAK_PUNCTUATION_CODE 1 |
michael@0 | 181 | |
michael@0 | 182 | // See nsStyleAural |
michael@0 | 183 | #define NS_STYLE_SPEECH_RATE_X_SLOW 0 |
michael@0 | 184 | #define NS_STYLE_SPEECH_RATE_SLOW 1 |
michael@0 | 185 | #define NS_STYLE_SPEECH_RATE_MEDIUM 2 |
michael@0 | 186 | #define NS_STYLE_SPEECH_RATE_FAST 3 |
michael@0 | 187 | #define NS_STYLE_SPEECH_RATE_X_FAST 4 |
michael@0 | 188 | #define NS_STYLE_SPEECH_RATE_FASTER 10 |
michael@0 | 189 | #define NS_STYLE_SPEECH_RATE_SLOWER 11 |
michael@0 | 190 | |
michael@0 | 191 | // See nsStyleAural |
michael@0 | 192 | #define NS_STYLE_VOLUME_SILENT 0 |
michael@0 | 193 | #define NS_STYLE_VOLUME_X_SOFT 1 |
michael@0 | 194 | #define NS_STYLE_VOLUME_SOFT 2 |
michael@0 | 195 | #define NS_STYLE_VOLUME_MEDIUM 3 |
michael@0 | 196 | #define NS_STYLE_VOLUME_LOUD 4 |
michael@0 | 197 | #define NS_STYLE_VOLUME_X_LOUD 5 |
michael@0 | 198 | |
michael@0 | 199 | // See nsStyleColor |
michael@0 | 200 | #define NS_STYLE_COLOR_MOZ_USE_TEXT_COLOR 1 |
michael@0 | 201 | #define NS_STYLE_COLOR_INHERIT_FROM_BODY 2 /* Can't come from CSS directly */ |
michael@0 | 202 | |
michael@0 | 203 | // See nsStyleColor |
michael@0 | 204 | #define NS_COLOR_CURRENTCOLOR -1 |
michael@0 | 205 | #define NS_COLOR_MOZ_DEFAULT_COLOR -2 |
michael@0 | 206 | #define NS_COLOR_MOZ_DEFAULT_BACKGROUND_COLOR -3 |
michael@0 | 207 | #define NS_COLOR_MOZ_HYPERLINKTEXT -4 |
michael@0 | 208 | #define NS_COLOR_MOZ_VISITEDHYPERLINKTEXT -5 |
michael@0 | 209 | #define NS_COLOR_MOZ_ACTIVEHYPERLINKTEXT -6 |
michael@0 | 210 | // Only valid as paints in SVG glyphs |
michael@0 | 211 | #define NS_COLOR_CONTEXT_FILL -7 |
michael@0 | 212 | #define NS_COLOR_CONTEXT_STROKE -8 |
michael@0 | 213 | |
michael@0 | 214 | // See nsStyleDisplay |
michael@0 | 215 | #define NS_STYLE_WILL_CHANGE_STACKING_CONTEXT (1<<0) |
michael@0 | 216 | #define NS_STYLE_WILL_CHANGE_TRANSFORM (1<<1) |
michael@0 | 217 | #define NS_STYLE_WILL_CHANGE_SCROLL (1<<2) |
michael@0 | 218 | #define NS_STYLE_WILL_CHANGE_OPACITY (1<<3) |
michael@0 | 219 | |
michael@0 | 220 | // See nsStyleDisplay |
michael@0 | 221 | #define NS_STYLE_ANIMATION_DIRECTION_NORMAL 0 |
michael@0 | 222 | #define NS_STYLE_ANIMATION_DIRECTION_REVERSE 1 |
michael@0 | 223 | #define NS_STYLE_ANIMATION_DIRECTION_ALTERNATE 2 |
michael@0 | 224 | #define NS_STYLE_ANIMATION_DIRECTION_ALTERNATE_REVERSE 3 |
michael@0 | 225 | |
michael@0 | 226 | // See nsStyleDisplay |
michael@0 | 227 | #define NS_STYLE_ANIMATION_FILL_MODE_NONE 0 |
michael@0 | 228 | #define NS_STYLE_ANIMATION_FILL_MODE_FORWARDS 1 |
michael@0 | 229 | #define NS_STYLE_ANIMATION_FILL_MODE_BACKWARDS 2 |
michael@0 | 230 | #define NS_STYLE_ANIMATION_FILL_MODE_BOTH 3 |
michael@0 | 231 | |
michael@0 | 232 | // See nsStyleDisplay |
michael@0 | 233 | #define NS_STYLE_ANIMATION_ITERATION_COUNT_INFINITE 0 |
michael@0 | 234 | |
michael@0 | 235 | // See nsStyleDisplay |
michael@0 | 236 | #define NS_STYLE_ANIMATION_PLAY_STATE_RUNNING 0 |
michael@0 | 237 | #define NS_STYLE_ANIMATION_PLAY_STATE_PAUSED 1 |
michael@0 | 238 | |
michael@0 | 239 | // See nsStyleBackground |
michael@0 | 240 | #define NS_STYLE_BG_ATTACHMENT_SCROLL 0 |
michael@0 | 241 | #define NS_STYLE_BG_ATTACHMENT_FIXED 1 |
michael@0 | 242 | #define NS_STYLE_BG_ATTACHMENT_LOCAL 2 |
michael@0 | 243 | |
michael@0 | 244 | // See nsStyleBackground |
michael@0 | 245 | // Code depends on these constants having the same values as BG_ORIGIN_* |
michael@0 | 246 | #define NS_STYLE_BG_CLIP_BORDER 0 |
michael@0 | 247 | #define NS_STYLE_BG_CLIP_PADDING 1 |
michael@0 | 248 | #define NS_STYLE_BG_CLIP_CONTENT 2 |
michael@0 | 249 | // A magic value that we use for our "pretend that background-clip is |
michael@0 | 250 | // 'padding' when we have a solid border" optimization. This isn't |
michael@0 | 251 | // actually equal to NS_STYLE_BG_CLIP_PADDING because using that |
michael@0 | 252 | // causes antialiasing seams between the background and border. This |
michael@0 | 253 | // is a backend-only value. |
michael@0 | 254 | #define NS_STYLE_BG_CLIP_MOZ_ALMOST_PADDING 127 |
michael@0 | 255 | |
michael@0 | 256 | // See nsStyleBackground |
michael@0 | 257 | #define NS_STYLE_BG_INLINE_POLICY_EACH_BOX 0 |
michael@0 | 258 | #define NS_STYLE_BG_INLINE_POLICY_CONTINUOUS 1 |
michael@0 | 259 | #define NS_STYLE_BG_INLINE_POLICY_BOUNDING_BOX 2 |
michael@0 | 260 | |
michael@0 | 261 | // See nsStyleBackground |
michael@0 | 262 | // Code depends on these constants having the same values as BG_CLIP_* |
michael@0 | 263 | #define NS_STYLE_BG_ORIGIN_BORDER 0 |
michael@0 | 264 | #define NS_STYLE_BG_ORIGIN_PADDING 1 |
michael@0 | 265 | #define NS_STYLE_BG_ORIGIN_CONTENT 2 |
michael@0 | 266 | |
michael@0 | 267 | // See nsStyleBackground |
michael@0 | 268 | // The parser code depends on |ing these values together. |
michael@0 | 269 | #define NS_STYLE_BG_POSITION_CENTER (1<<0) |
michael@0 | 270 | #define NS_STYLE_BG_POSITION_TOP (1<<1) |
michael@0 | 271 | #define NS_STYLE_BG_POSITION_BOTTOM (1<<2) |
michael@0 | 272 | #define NS_STYLE_BG_POSITION_LEFT (1<<3) |
michael@0 | 273 | #define NS_STYLE_BG_POSITION_RIGHT (1<<4) |
michael@0 | 274 | |
michael@0 | 275 | // See nsStyleBackground |
michael@0 | 276 | #define NS_STYLE_BG_REPEAT_NO_REPEAT 0x00 |
michael@0 | 277 | #define NS_STYLE_BG_REPEAT_REPEAT_X 0x01 |
michael@0 | 278 | #define NS_STYLE_BG_REPEAT_REPEAT_Y 0x02 |
michael@0 | 279 | #define NS_STYLE_BG_REPEAT_REPEAT 0x03 |
michael@0 | 280 | |
michael@0 | 281 | // See nsStyleBackground |
michael@0 | 282 | #define NS_STYLE_BG_SIZE_CONTAIN 0 |
michael@0 | 283 | #define NS_STYLE_BG_SIZE_COVER 1 |
michael@0 | 284 | |
michael@0 | 285 | // See nsStyleTable |
michael@0 | 286 | #define NS_STYLE_BORDER_COLLAPSE 0 |
michael@0 | 287 | #define NS_STYLE_BORDER_SEPARATE 1 |
michael@0 | 288 | |
michael@0 | 289 | // Possible enumerated specified values of border-*-width, used by nsCSSMargin |
michael@0 | 290 | #define NS_STYLE_BORDER_WIDTH_THIN 0 |
michael@0 | 291 | #define NS_STYLE_BORDER_WIDTH_MEDIUM 1 |
michael@0 | 292 | #define NS_STYLE_BORDER_WIDTH_THICK 2 |
michael@0 | 293 | // XXX chopping block #define NS_STYLE_BORDER_WIDTH_LENGTH_VALUE 3 |
michael@0 | 294 | |
michael@0 | 295 | // See nsStyleBorder mBorderStyle |
michael@0 | 296 | #define NS_STYLE_BORDER_STYLE_NONE 0 |
michael@0 | 297 | #define NS_STYLE_BORDER_STYLE_GROOVE 1 |
michael@0 | 298 | #define NS_STYLE_BORDER_STYLE_RIDGE 2 |
michael@0 | 299 | #define NS_STYLE_BORDER_STYLE_DOTTED 3 |
michael@0 | 300 | #define NS_STYLE_BORDER_STYLE_DASHED 4 |
michael@0 | 301 | #define NS_STYLE_BORDER_STYLE_SOLID 5 |
michael@0 | 302 | #define NS_STYLE_BORDER_STYLE_DOUBLE 6 |
michael@0 | 303 | #define NS_STYLE_BORDER_STYLE_INSET 7 |
michael@0 | 304 | #define NS_STYLE_BORDER_STYLE_OUTSET 8 |
michael@0 | 305 | #define NS_STYLE_BORDER_STYLE_HIDDEN 9 |
michael@0 | 306 | #define NS_STYLE_BORDER_STYLE_AUTO 10 // for outline-style only |
michael@0 | 307 | |
michael@0 | 308 | // See nsStyleBorder mBorderImage |
michael@0 | 309 | #define NS_STYLE_BORDER_IMAGE_REPEAT_STRETCH 0 |
michael@0 | 310 | #define NS_STYLE_BORDER_IMAGE_REPEAT_REPEAT 1 |
michael@0 | 311 | #define NS_STYLE_BORDER_IMAGE_REPEAT_ROUND 2 |
michael@0 | 312 | |
michael@0 | 313 | #define NS_STYLE_BORDER_IMAGE_SLICE_NOFILL 0 |
michael@0 | 314 | #define NS_STYLE_BORDER_IMAGE_SLICE_FILL 1 |
michael@0 | 315 | |
michael@0 | 316 | // See nsStyleDisplay |
michael@0 | 317 | #define NS_STYLE_CLEAR_NONE 0 |
michael@0 | 318 | #define NS_STYLE_CLEAR_LEFT 1 |
michael@0 | 319 | #define NS_STYLE_CLEAR_RIGHT 2 |
michael@0 | 320 | #define NS_STYLE_CLEAR_BOTH 3 |
michael@0 | 321 | #define NS_STYLE_CLEAR_LINE 4 |
michael@0 | 322 | // @note NS_STYLE_CLEAR_LINE can be added to one of the other values in layout |
michael@0 | 323 | // so it needs to use a bit value that none of the other values can have. |
michael@0 | 324 | #define NS_STYLE_CLEAR_MAX (NS_STYLE_CLEAR_LINE | NS_STYLE_CLEAR_BOTH) |
michael@0 | 325 | |
michael@0 | 326 | // See nsStyleContent |
michael@0 | 327 | #define NS_STYLE_CONTENT_OPEN_QUOTE 0 |
michael@0 | 328 | #define NS_STYLE_CONTENT_CLOSE_QUOTE 1 |
michael@0 | 329 | #define NS_STYLE_CONTENT_NO_OPEN_QUOTE 2 |
michael@0 | 330 | #define NS_STYLE_CONTENT_NO_CLOSE_QUOTE 3 |
michael@0 | 331 | #define NS_STYLE_CONTENT_ALT_CONTENT 4 |
michael@0 | 332 | |
michael@0 | 333 | // See nsStyleColor |
michael@0 | 334 | #define NS_STYLE_CURSOR_AUTO 1 |
michael@0 | 335 | #define NS_STYLE_CURSOR_CROSSHAIR 2 |
michael@0 | 336 | #define NS_STYLE_CURSOR_DEFAULT 3 // ie: an arrow |
michael@0 | 337 | #define NS_STYLE_CURSOR_POINTER 4 // for links |
michael@0 | 338 | #define NS_STYLE_CURSOR_MOVE 5 |
michael@0 | 339 | #define NS_STYLE_CURSOR_E_RESIZE 6 |
michael@0 | 340 | #define NS_STYLE_CURSOR_NE_RESIZE 7 |
michael@0 | 341 | #define NS_STYLE_CURSOR_NW_RESIZE 8 |
michael@0 | 342 | #define NS_STYLE_CURSOR_N_RESIZE 9 |
michael@0 | 343 | #define NS_STYLE_CURSOR_SE_RESIZE 10 |
michael@0 | 344 | #define NS_STYLE_CURSOR_SW_RESIZE 11 |
michael@0 | 345 | #define NS_STYLE_CURSOR_S_RESIZE 12 |
michael@0 | 346 | #define NS_STYLE_CURSOR_W_RESIZE 13 |
michael@0 | 347 | #define NS_STYLE_CURSOR_TEXT 14 // ie: i-beam |
michael@0 | 348 | #define NS_STYLE_CURSOR_WAIT 15 |
michael@0 | 349 | #define NS_STYLE_CURSOR_HELP 16 |
michael@0 | 350 | #define NS_STYLE_CURSOR_COPY 17 // CSS3 |
michael@0 | 351 | #define NS_STYLE_CURSOR_ALIAS 18 |
michael@0 | 352 | #define NS_STYLE_CURSOR_CONTEXT_MENU 19 |
michael@0 | 353 | #define NS_STYLE_CURSOR_CELL 20 |
michael@0 | 354 | #define NS_STYLE_CURSOR_GRAB 21 |
michael@0 | 355 | #define NS_STYLE_CURSOR_GRABBING 22 |
michael@0 | 356 | #define NS_STYLE_CURSOR_SPINNING 23 |
michael@0 | 357 | #define NS_STYLE_CURSOR_ZOOM_IN 24 |
michael@0 | 358 | #define NS_STYLE_CURSOR_ZOOM_OUT 25 |
michael@0 | 359 | #define NS_STYLE_CURSOR_NOT_ALLOWED 26 |
michael@0 | 360 | #define NS_STYLE_CURSOR_COL_RESIZE 27 |
michael@0 | 361 | #define NS_STYLE_CURSOR_ROW_RESIZE 28 |
michael@0 | 362 | #define NS_STYLE_CURSOR_NO_DROP 29 |
michael@0 | 363 | #define NS_STYLE_CURSOR_VERTICAL_TEXT 30 |
michael@0 | 364 | #define NS_STYLE_CURSOR_ALL_SCROLL 31 |
michael@0 | 365 | #define NS_STYLE_CURSOR_NESW_RESIZE 32 |
michael@0 | 366 | #define NS_STYLE_CURSOR_NWSE_RESIZE 33 |
michael@0 | 367 | #define NS_STYLE_CURSOR_NS_RESIZE 34 |
michael@0 | 368 | #define NS_STYLE_CURSOR_EW_RESIZE 35 |
michael@0 | 369 | #define NS_STYLE_CURSOR_NONE 36 |
michael@0 | 370 | |
michael@0 | 371 | // See nsStyleVisibility |
michael@0 | 372 | #define NS_STYLE_DIRECTION_LTR 0 |
michael@0 | 373 | #define NS_STYLE_DIRECTION_RTL 1 |
michael@0 | 374 | #define NS_STYLE_DIRECTION_INHERIT 2 |
michael@0 | 375 | |
michael@0 | 376 | // See nsStyleVisibility |
michael@0 | 377 | #define NS_STYLE_WRITING_MODE_HORIZONTAL_TB 0 |
michael@0 | 378 | #define NS_STYLE_WRITING_MODE_VERTICAL_LR 1 |
michael@0 | 379 | #define NS_STYLE_WRITING_MODE_VERTICAL_RL 2 |
michael@0 | 380 | |
michael@0 | 381 | // See nsStyleDisplay |
michael@0 | 382 | #define NS_STYLE_DISPLAY_NONE 0 |
michael@0 | 383 | #define NS_STYLE_DISPLAY_BLOCK 1 |
michael@0 | 384 | #define NS_STYLE_DISPLAY_INLINE 2 |
michael@0 | 385 | #define NS_STYLE_DISPLAY_INLINE_BLOCK 3 |
michael@0 | 386 | #define NS_STYLE_DISPLAY_LIST_ITEM 4 |
michael@0 | 387 | #define NS_STYLE_DISPLAY_TABLE 8 |
michael@0 | 388 | #define NS_STYLE_DISPLAY_INLINE_TABLE 9 |
michael@0 | 389 | #define NS_STYLE_DISPLAY_TABLE_ROW_GROUP 10 |
michael@0 | 390 | #define NS_STYLE_DISPLAY_TABLE_COLUMN 11 |
michael@0 | 391 | #define NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP 12 |
michael@0 | 392 | #define NS_STYLE_DISPLAY_TABLE_HEADER_GROUP 13 |
michael@0 | 393 | #define NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP 14 |
michael@0 | 394 | #define NS_STYLE_DISPLAY_TABLE_ROW 15 |
michael@0 | 395 | #define NS_STYLE_DISPLAY_TABLE_CELL 16 |
michael@0 | 396 | #define NS_STYLE_DISPLAY_TABLE_CAPTION 17 |
michael@0 | 397 | #define NS_STYLE_DISPLAY_BOX 18 |
michael@0 | 398 | #define NS_STYLE_DISPLAY_INLINE_BOX 19 |
michael@0 | 399 | #ifdef MOZ_XUL |
michael@0 | 400 | #define NS_STYLE_DISPLAY_XUL_GRID 20 |
michael@0 | 401 | #define NS_STYLE_DISPLAY_INLINE_XUL_GRID 21 |
michael@0 | 402 | #define NS_STYLE_DISPLAY_XUL_GRID_GROUP 22 |
michael@0 | 403 | #define NS_STYLE_DISPLAY_XUL_GRID_LINE 23 |
michael@0 | 404 | #define NS_STYLE_DISPLAY_STACK 24 |
michael@0 | 405 | #define NS_STYLE_DISPLAY_INLINE_STACK 25 |
michael@0 | 406 | #define NS_STYLE_DISPLAY_DECK 26 |
michael@0 | 407 | #define NS_STYLE_DISPLAY_POPUP 27 |
michael@0 | 408 | #define NS_STYLE_DISPLAY_GROUPBOX 28 |
michael@0 | 409 | #endif |
michael@0 | 410 | #define NS_STYLE_DISPLAY_FLEX 29 |
michael@0 | 411 | #define NS_STYLE_DISPLAY_INLINE_FLEX 30 |
michael@0 | 412 | #define NS_STYLE_DISPLAY_GRID 31 |
michael@0 | 413 | #define NS_STYLE_DISPLAY_INLINE_GRID 32 |
michael@0 | 414 | |
michael@0 | 415 | // See nsStylePosition |
michael@0 | 416 | #define NS_STYLE_ALIGN_CONTENT_FLEX_START 0 |
michael@0 | 417 | #define NS_STYLE_ALIGN_CONTENT_FLEX_END 1 |
michael@0 | 418 | #define NS_STYLE_ALIGN_CONTENT_CENTER 2 |
michael@0 | 419 | #define NS_STYLE_ALIGN_CONTENT_SPACE_BETWEEN 3 |
michael@0 | 420 | #define NS_STYLE_ALIGN_CONTENT_SPACE_AROUND 4 |
michael@0 | 421 | #define NS_STYLE_ALIGN_CONTENT_STRETCH 5 |
michael@0 | 422 | |
michael@0 | 423 | // See nsStylePosition |
michael@0 | 424 | #define NS_STYLE_ALIGN_ITEMS_FLEX_START 0 |
michael@0 | 425 | #define NS_STYLE_ALIGN_ITEMS_FLEX_END 1 |
michael@0 | 426 | #define NS_STYLE_ALIGN_ITEMS_CENTER 2 |
michael@0 | 427 | #define NS_STYLE_ALIGN_ITEMS_BASELINE 3 |
michael@0 | 428 | #define NS_STYLE_ALIGN_ITEMS_STRETCH 4 |
michael@0 | 429 | |
michael@0 | 430 | // For convenience/clarity (since we use this default value in multiple places) |
michael@0 | 431 | #define NS_STYLE_ALIGN_ITEMS_INITIAL_VALUE NS_STYLE_ALIGN_ITEMS_STRETCH |
michael@0 | 432 | |
michael@0 | 433 | // The "align-self" property accepts all of the normal "align-items" values |
michael@0 | 434 | // (above) plus a special 'auto' value that computes to the parent's |
michael@0 | 435 | // "align-items" value. Our computed style code internally represents 'auto' |
michael@0 | 436 | // with this enum until we actually evaluate it: |
michael@0 | 437 | #define NS_STYLE_ALIGN_SELF_AUTO 5 |
michael@0 | 438 | |
michael@0 | 439 | // See nsStylePosition |
michael@0 | 440 | #define NS_STYLE_FLEX_DIRECTION_ROW 0 |
michael@0 | 441 | #define NS_STYLE_FLEX_DIRECTION_ROW_REVERSE 1 |
michael@0 | 442 | #define NS_STYLE_FLEX_DIRECTION_COLUMN 2 |
michael@0 | 443 | #define NS_STYLE_FLEX_DIRECTION_COLUMN_REVERSE 3 |
michael@0 | 444 | |
michael@0 | 445 | // See nsStylePosition |
michael@0 | 446 | #define NS_STYLE_FLEX_WRAP_NOWRAP 0 |
michael@0 | 447 | #define NS_STYLE_FLEX_WRAP_WRAP 1 |
michael@0 | 448 | #define NS_STYLE_FLEX_WRAP_WRAP_REVERSE 2 |
michael@0 | 449 | |
michael@0 | 450 | // See nsStylePosition |
michael@0 | 451 | // NOTE: This is the initial value of the integer-valued 'order' property |
michael@0 | 452 | // (rather than an internal numerical representation of some keyword). |
michael@0 | 453 | #define NS_STYLE_ORDER_INITIAL 0 |
michael@0 | 454 | |
michael@0 | 455 | // See nsStylePosition |
michael@0 | 456 | #define NS_STYLE_JUSTIFY_CONTENT_FLEX_START 0 |
michael@0 | 457 | #define NS_STYLE_JUSTIFY_CONTENT_FLEX_END 1 |
michael@0 | 458 | #define NS_STYLE_JUSTIFY_CONTENT_CENTER 2 |
michael@0 | 459 | #define NS_STYLE_JUSTIFY_CONTENT_SPACE_BETWEEN 3 |
michael@0 | 460 | #define NS_STYLE_JUSTIFY_CONTENT_SPACE_AROUND 4 |
michael@0 | 461 | |
michael@0 | 462 | // See nsStyleDisplay |
michael@0 | 463 | #define NS_STYLE_FLOAT_NONE 0 |
michael@0 | 464 | #define NS_STYLE_FLOAT_LEFT 1 |
michael@0 | 465 | #define NS_STYLE_FLOAT_RIGHT 2 |
michael@0 | 466 | |
michael@0 | 467 | // See nsStyleFilter |
michael@0 | 468 | #define NS_STYLE_FILTER_NONE 0 |
michael@0 | 469 | #define NS_STYLE_FILTER_URL 1 |
michael@0 | 470 | #define NS_STYLE_FILTER_BLUR 2 |
michael@0 | 471 | #define NS_STYLE_FILTER_BRIGHTNESS 3 |
michael@0 | 472 | #define NS_STYLE_FILTER_CONTRAST 4 |
michael@0 | 473 | #define NS_STYLE_FILTER_GRAYSCALE 5 |
michael@0 | 474 | #define NS_STYLE_FILTER_INVERT 6 |
michael@0 | 475 | #define NS_STYLE_FILTER_OPACITY 7 |
michael@0 | 476 | #define NS_STYLE_FILTER_SATURATE 8 |
michael@0 | 477 | #define NS_STYLE_FILTER_SEPIA 9 |
michael@0 | 478 | #define NS_STYLE_FILTER_HUE_ROTATE 10 |
michael@0 | 479 | #define NS_STYLE_FILTER_DROP_SHADOW 11 |
michael@0 | 480 | |
michael@0 | 481 | // See nsStyleFont |
michael@0 | 482 | // We should eventually stop using the NS_STYLE_* variants here. |
michael@0 | 483 | #define NS_STYLE_FONT_STYLE_NORMAL NS_FONT_STYLE_NORMAL |
michael@0 | 484 | #define NS_STYLE_FONT_STYLE_ITALIC NS_FONT_STYLE_ITALIC |
michael@0 | 485 | #define NS_STYLE_FONT_STYLE_OBLIQUE NS_FONT_STYLE_OBLIQUE |
michael@0 | 486 | |
michael@0 | 487 | // See nsStyleFont |
michael@0 | 488 | // We should eventually stop using the NS_STYLE_* variants here. |
michael@0 | 489 | #define NS_STYLE_FONT_VARIANT_NORMAL NS_FONT_VARIANT_NORMAL |
michael@0 | 490 | #define NS_STYLE_FONT_VARIANT_SMALL_CAPS NS_FONT_VARIANT_SMALL_CAPS |
michael@0 | 491 | |
michael@0 | 492 | // See nsStyleFont |
michael@0 | 493 | // We should eventually stop using the NS_STYLE_* variants here. |
michael@0 | 494 | #define NS_STYLE_FONT_WEIGHT_NORMAL NS_FONT_WEIGHT_NORMAL |
michael@0 | 495 | #define NS_STYLE_FONT_WEIGHT_BOLD NS_FONT_WEIGHT_BOLD |
michael@0 | 496 | // The constants below appear only in style sheets and not computed style. |
michael@0 | 497 | #define NS_STYLE_FONT_WEIGHT_BOLDER (-1) |
michael@0 | 498 | #define NS_STYLE_FONT_WEIGHT_LIGHTER (-2) |
michael@0 | 499 | |
michael@0 | 500 | // See nsStyleFont |
michael@0 | 501 | #define NS_STYLE_FONT_SIZE_XXSMALL 0 |
michael@0 | 502 | #define NS_STYLE_FONT_SIZE_XSMALL 1 |
michael@0 | 503 | #define NS_STYLE_FONT_SIZE_SMALL 2 |
michael@0 | 504 | #define NS_STYLE_FONT_SIZE_MEDIUM 3 |
michael@0 | 505 | #define NS_STYLE_FONT_SIZE_LARGE 4 |
michael@0 | 506 | #define NS_STYLE_FONT_SIZE_XLARGE 5 |
michael@0 | 507 | #define NS_STYLE_FONT_SIZE_XXLARGE 6 |
michael@0 | 508 | #define NS_STYLE_FONT_SIZE_XXXLARGE 7 // Only used by <font size="7">. Not specifiable in CSS. |
michael@0 | 509 | #define NS_STYLE_FONT_SIZE_LARGER 8 |
michael@0 | 510 | #define NS_STYLE_FONT_SIZE_SMALLER 9 |
michael@0 | 511 | |
michael@0 | 512 | // See nsStyleFont |
michael@0 | 513 | // We should eventually stop using the NS_STYLE_* variants here. |
michael@0 | 514 | #define NS_STYLE_FONT_STRETCH_ULTRA_CONDENSED NS_FONT_STRETCH_ULTRA_CONDENSED |
michael@0 | 515 | #define NS_STYLE_FONT_STRETCH_EXTRA_CONDENSED NS_FONT_STRETCH_EXTRA_CONDENSED |
michael@0 | 516 | #define NS_STYLE_FONT_STRETCH_CONDENSED NS_FONT_STRETCH_CONDENSED |
michael@0 | 517 | #define NS_STYLE_FONT_STRETCH_SEMI_CONDENSED NS_FONT_STRETCH_SEMI_CONDENSED |
michael@0 | 518 | #define NS_STYLE_FONT_STRETCH_NORMAL NS_FONT_STRETCH_NORMAL |
michael@0 | 519 | #define NS_STYLE_FONT_STRETCH_SEMI_EXPANDED NS_FONT_STRETCH_SEMI_EXPANDED |
michael@0 | 520 | #define NS_STYLE_FONT_STRETCH_EXPANDED NS_FONT_STRETCH_EXPANDED |
michael@0 | 521 | #define NS_STYLE_FONT_STRETCH_EXTRA_EXPANDED NS_FONT_STRETCH_EXTRA_EXPANDED |
michael@0 | 522 | #define NS_STYLE_FONT_STRETCH_ULTRA_EXPANDED NS_FONT_STRETCH_ULTRA_EXPANDED |
michael@0 | 523 | |
michael@0 | 524 | // See nsStyleFont - system fonts |
michael@0 | 525 | #define NS_STYLE_FONT_CAPTION 1 // css2 |
michael@0 | 526 | #define NS_STYLE_FONT_ICON 2 |
michael@0 | 527 | #define NS_STYLE_FONT_MENU 3 |
michael@0 | 528 | #define NS_STYLE_FONT_MESSAGE_BOX 4 |
michael@0 | 529 | #define NS_STYLE_FONT_SMALL_CAPTION 5 |
michael@0 | 530 | #define NS_STYLE_FONT_STATUS_BAR 6 |
michael@0 | 531 | #define NS_STYLE_FONT_WINDOW 7 // css3 |
michael@0 | 532 | #define NS_STYLE_FONT_DOCUMENT 8 |
michael@0 | 533 | #define NS_STYLE_FONT_WORKSPACE 9 |
michael@0 | 534 | #define NS_STYLE_FONT_DESKTOP 10 |
michael@0 | 535 | #define NS_STYLE_FONT_INFO 11 |
michael@0 | 536 | #define NS_STYLE_FONT_DIALOG 12 |
michael@0 | 537 | #define NS_STYLE_FONT_BUTTON 13 |
michael@0 | 538 | #define NS_STYLE_FONT_PULL_DOWN_MENU 14 |
michael@0 | 539 | #define NS_STYLE_FONT_LIST 15 |
michael@0 | 540 | #define NS_STYLE_FONT_FIELD 16 |
michael@0 | 541 | |
michael@0 | 542 | // grid-auto-flow keywords |
michael@0 | 543 | #define NS_STYLE_GRID_AUTO_FLOW_NONE (1 << 0) |
michael@0 | 544 | #define NS_STYLE_GRID_AUTO_FLOW_COLUMN (1 << 1) |
michael@0 | 545 | #define NS_STYLE_GRID_AUTO_FLOW_ROW (1 << 2) |
michael@0 | 546 | #define NS_STYLE_GRID_AUTO_FLOW_DENSE (1 << 3) |
michael@0 | 547 | |
michael@0 | 548 | // 'subgrid' keyword in grid-template-{columns,rows} |
michael@0 | 549 | #define NS_STYLE_GRID_TEMPLATE_SUBGRID 0 |
michael@0 | 550 | |
michael@0 | 551 | // CSS Grid <track-breadth> keywords |
michael@0 | 552 | // Should not overlap with NS_STYLE_GRID_TEMPLATE_SUBGRID |
michael@0 | 553 | #define NS_STYLE_GRID_TRACK_BREADTH_MAX_CONTENT 1 |
michael@0 | 554 | #define NS_STYLE_GRID_TRACK_BREADTH_MIN_CONTENT 2 |
michael@0 | 555 | |
michael@0 | 556 | // defaults per MathML spec |
michael@0 | 557 | #define NS_MATHML_DEFAULT_SCRIPT_SIZE_MULTIPLIER 0.71f |
michael@0 | 558 | #define NS_MATHML_DEFAULT_SCRIPT_MIN_SIZE_PT 8 |
michael@0 | 559 | |
michael@0 | 560 | // See nsStyleFont |
michael@0 | 561 | #define NS_MATHML_MATHVARIANT_NONE 0 |
michael@0 | 562 | #define NS_MATHML_MATHVARIANT_NORMAL 1 |
michael@0 | 563 | #define NS_MATHML_MATHVARIANT_BOLD 2 |
michael@0 | 564 | #define NS_MATHML_MATHVARIANT_ITALIC 3 |
michael@0 | 565 | #define NS_MATHML_MATHVARIANT_BOLD_ITALIC 4 |
michael@0 | 566 | #define NS_MATHML_MATHVARIANT_SCRIPT 5 |
michael@0 | 567 | #define NS_MATHML_MATHVARIANT_BOLD_SCRIPT 6 |
michael@0 | 568 | #define NS_MATHML_MATHVARIANT_FRAKTUR 7 |
michael@0 | 569 | #define NS_MATHML_MATHVARIANT_DOUBLE_STRUCK 8 |
michael@0 | 570 | #define NS_MATHML_MATHVARIANT_BOLD_FRAKTUR 9 |
michael@0 | 571 | #define NS_MATHML_MATHVARIANT_SANS_SERIF 10 |
michael@0 | 572 | #define NS_MATHML_MATHVARIANT_BOLD_SANS_SERIF 11 |
michael@0 | 573 | #define NS_MATHML_MATHVARIANT_SANS_SERIF_ITALIC 12 |
michael@0 | 574 | #define NS_MATHML_MATHVARIANT_SANS_SERIF_BOLD_ITALIC 13 |
michael@0 | 575 | #define NS_MATHML_MATHVARIANT_MONOSPACE 14 |
michael@0 | 576 | #define NS_MATHML_MATHVARIANT_INITIAL 15 |
michael@0 | 577 | #define NS_MATHML_MATHVARIANT_TAILED 16 |
michael@0 | 578 | #define NS_MATHML_MATHVARIANT_LOOPED 17 |
michael@0 | 579 | #define NS_MATHML_MATHVARIANT_STRETCHED 18 |
michael@0 | 580 | |
michael@0 | 581 | // See nsStyleFont::mMathDisplay |
michael@0 | 582 | #define NS_MATHML_DISPLAYSTYLE_INLINE 0 |
michael@0 | 583 | #define NS_MATHML_DISPLAYSTYLE_BLOCK 1 |
michael@0 | 584 | |
michael@0 | 585 | // See nsStylePosition::mWidth, mMinWidth, mMaxWidth |
michael@0 | 586 | #define NS_STYLE_WIDTH_MAX_CONTENT 0 |
michael@0 | 587 | #define NS_STYLE_WIDTH_MIN_CONTENT 1 |
michael@0 | 588 | #define NS_STYLE_WIDTH_FIT_CONTENT 2 |
michael@0 | 589 | #define NS_STYLE_WIDTH_AVAILABLE 3 |
michael@0 | 590 | |
michael@0 | 591 | // See nsStyleDisplay.mPosition |
michael@0 | 592 | #define NS_STYLE_POSITION_STATIC 0 |
michael@0 | 593 | #define NS_STYLE_POSITION_RELATIVE 1 |
michael@0 | 594 | #define NS_STYLE_POSITION_ABSOLUTE 2 |
michael@0 | 595 | #define NS_STYLE_POSITION_FIXED 3 |
michael@0 | 596 | #define NS_STYLE_POSITION_STICKY 4 |
michael@0 | 597 | |
michael@0 | 598 | // See nsStyleDisplay.mClip |
michael@0 | 599 | #define NS_STYLE_CLIP_AUTO 0x00 |
michael@0 | 600 | #define NS_STYLE_CLIP_RECT 0x01 |
michael@0 | 601 | #define NS_STYLE_CLIP_TYPE_MASK 0x0F |
michael@0 | 602 | #define NS_STYLE_CLIP_LEFT_AUTO 0x10 |
michael@0 | 603 | #define NS_STYLE_CLIP_TOP_AUTO 0x20 |
michael@0 | 604 | #define NS_STYLE_CLIP_RIGHT_AUTO 0x40 |
michael@0 | 605 | #define NS_STYLE_CLIP_BOTTOM_AUTO 0x80 |
michael@0 | 606 | |
michael@0 | 607 | // FRAME/FRAMESET/IFRAME specific values including backward compatibility. Boolean values with |
michael@0 | 608 | // the same meaning (e.g. 1 & yes) may need to be distinguished for correct mode processing |
michael@0 | 609 | #define NS_STYLE_FRAME_YES 0 |
michael@0 | 610 | #define NS_STYLE_FRAME_NO 1 |
michael@0 | 611 | #define NS_STYLE_FRAME_0 2 |
michael@0 | 612 | #define NS_STYLE_FRAME_1 3 |
michael@0 | 613 | #define NS_STYLE_FRAME_ON 4 |
michael@0 | 614 | #define NS_STYLE_FRAME_OFF 5 |
michael@0 | 615 | #define NS_STYLE_FRAME_AUTO 6 |
michael@0 | 616 | #define NS_STYLE_FRAME_SCROLL 7 |
michael@0 | 617 | #define NS_STYLE_FRAME_NOSCROLL 8 |
michael@0 | 618 | |
michael@0 | 619 | // See nsStyleDisplay.mOverflow |
michael@0 | 620 | #define NS_STYLE_OVERFLOW_VISIBLE 0 |
michael@0 | 621 | #define NS_STYLE_OVERFLOW_HIDDEN 1 |
michael@0 | 622 | #define NS_STYLE_OVERFLOW_SCROLL 2 |
michael@0 | 623 | #define NS_STYLE_OVERFLOW_AUTO 3 |
michael@0 | 624 | #define NS_STYLE_OVERFLOW_CLIP 4 |
michael@0 | 625 | #define NS_STYLE_OVERFLOW_SCROLLBARS_HORIZONTAL 5 |
michael@0 | 626 | #define NS_STYLE_OVERFLOW_SCROLLBARS_VERTICAL 6 |
michael@0 | 627 | |
michael@0 | 628 | // See nsStyleDisplay.mOverflowClipBox |
michael@0 | 629 | #define NS_STYLE_OVERFLOW_CLIP_BOX_PADDING_BOX 0 |
michael@0 | 630 | #define NS_STYLE_OVERFLOW_CLIP_BOX_CONTENT_BOX 1 |
michael@0 | 631 | |
michael@0 | 632 | // See nsStyleList |
michael@0 | 633 | #define NS_STYLE_LIST_STYLE_NONE 0 |
michael@0 | 634 | #define NS_STYLE_LIST_STYLE_DISC 1 |
michael@0 | 635 | #define NS_STYLE_LIST_STYLE_CIRCLE 2 |
michael@0 | 636 | #define NS_STYLE_LIST_STYLE_SQUARE 3 |
michael@0 | 637 | #define NS_STYLE_LIST_STYLE_DECIMAL 4 |
michael@0 | 638 | #define NS_STYLE_LIST_STYLE_DECIMAL_LEADING_ZERO 5 |
michael@0 | 639 | #define NS_STYLE_LIST_STYLE_LOWER_ROMAN 6 |
michael@0 | 640 | #define NS_STYLE_LIST_STYLE_UPPER_ROMAN 7 |
michael@0 | 641 | #define NS_STYLE_LIST_STYLE_LOWER_GREEK 8 |
michael@0 | 642 | #define NS_STYLE_LIST_STYLE_LOWER_ALPHA 9 |
michael@0 | 643 | #define NS_STYLE_LIST_STYLE_LOWER_LATIN 9 // == ALPHA |
michael@0 | 644 | #define NS_STYLE_LIST_STYLE_UPPER_ALPHA 10 |
michael@0 | 645 | #define NS_STYLE_LIST_STYLE_UPPER_LATIN 10 // == ALPHA |
michael@0 | 646 | #define NS_STYLE_LIST_STYLE_HEBREW 11 |
michael@0 | 647 | #define NS_STYLE_LIST_STYLE_ARMENIAN 12 |
michael@0 | 648 | #define NS_STYLE_LIST_STYLE_GEORGIAN 13 |
michael@0 | 649 | #define NS_STYLE_LIST_STYLE_CJK_DECIMAL 14 |
michael@0 | 650 | #define NS_STYLE_LIST_STYLE_CJK_IDEOGRAPHIC 15 |
michael@0 | 651 | #define NS_STYLE_LIST_STYLE_HIRAGANA 16 |
michael@0 | 652 | #define NS_STYLE_LIST_STYLE_KATAKANA 17 |
michael@0 | 653 | #define NS_STYLE_LIST_STYLE_HIRAGANA_IROHA 18 |
michael@0 | 654 | #define NS_STYLE_LIST_STYLE_KATAKANA_IROHA 19 |
michael@0 | 655 | #define NS_STYLE_LIST_STYLE_JAPANESE_INFORMAL 20 |
michael@0 | 656 | #define NS_STYLE_LIST_STYLE_JAPANESE_FORMAL 21 |
michael@0 | 657 | #define NS_STYLE_LIST_STYLE_KOREAN_HANGUL_FORMAL 22 |
michael@0 | 658 | #define NS_STYLE_LIST_STYLE_KOREAN_HANJA_INFORMAL 23 |
michael@0 | 659 | #define NS_STYLE_LIST_STYLE_KOREAN_HANJA_FORMAL 24 |
michael@0 | 660 | #define NS_STYLE_LIST_STYLE_SIMP_CHINESE_INFORMAL 25 |
michael@0 | 661 | #define NS_STYLE_LIST_STYLE_SIMP_CHINESE_FORMAL 26 |
michael@0 | 662 | #define NS_STYLE_LIST_STYLE_TRAD_CHINESE_INFORMAL 27 |
michael@0 | 663 | #define NS_STYLE_LIST_STYLE_TRAD_CHINESE_FORMAL 28 |
michael@0 | 664 | #define NS_STYLE_LIST_STYLE_MOZ_CJK_HEAVENLY_STEM 124 |
michael@0 | 665 | #define NS_STYLE_LIST_STYLE_MOZ_CJK_EARTHLY_BRANCH 125 |
michael@0 | 666 | #define NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_INFORMAL 126 |
michael@0 | 667 | #define NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_FORMAL 127 |
michael@0 | 668 | #define NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_INFORMAL 128 |
michael@0 | 669 | #define NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_FORMAL 129 |
michael@0 | 670 | #define NS_STYLE_LIST_STYLE_MOZ_JAPANESE_INFORMAL 130 |
michael@0 | 671 | #define NS_STYLE_LIST_STYLE_MOZ_JAPANESE_FORMAL 131 |
michael@0 | 672 | #define NS_STYLE_LIST_STYLE_MOZ_ARABIC_INDIC 132 |
michael@0 | 673 | #define NS_STYLE_LIST_STYLE_MOZ_PERSIAN 133 |
michael@0 | 674 | #define NS_STYLE_LIST_STYLE_MOZ_URDU 134 |
michael@0 | 675 | #define NS_STYLE_LIST_STYLE_MOZ_DEVANAGARI 135 |
michael@0 | 676 | #define NS_STYLE_LIST_STYLE_MOZ_GURMUKHI 136 |
michael@0 | 677 | #define NS_STYLE_LIST_STYLE_MOZ_GUJARATI 137 |
michael@0 | 678 | #define NS_STYLE_LIST_STYLE_MOZ_ORIYA 138 |
michael@0 | 679 | #define NS_STYLE_LIST_STYLE_MOZ_KANNADA 139 |
michael@0 | 680 | #define NS_STYLE_LIST_STYLE_MOZ_MALAYALAM 140 |
michael@0 | 681 | #define NS_STYLE_LIST_STYLE_MOZ_BENGALI 141 |
michael@0 | 682 | #define NS_STYLE_LIST_STYLE_MOZ_TAMIL 142 |
michael@0 | 683 | #define NS_STYLE_LIST_STYLE_MOZ_TELUGU 143 |
michael@0 | 684 | #define NS_STYLE_LIST_STYLE_MOZ_THAI 144 |
michael@0 | 685 | #define NS_STYLE_LIST_STYLE_MOZ_LAO 145 |
michael@0 | 686 | #define NS_STYLE_LIST_STYLE_MOZ_MYANMAR 146 |
michael@0 | 687 | #define NS_STYLE_LIST_STYLE_MOZ_KHMER 147 |
michael@0 | 688 | #define NS_STYLE_LIST_STYLE_MOZ_HANGUL 148 |
michael@0 | 689 | #define NS_STYLE_LIST_STYLE_MOZ_HANGUL_CONSONANT 149 |
michael@0 | 690 | #define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME 150 |
michael@0 | 691 | #define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_NUMERIC 151 |
michael@0 | 692 | #define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_AM 152 |
michael@0 | 693 | #define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ER 153 |
michael@0 | 694 | #define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ET 154 |
michael@0 | 695 | |
michael@0 | 696 | // See nsStyleList |
michael@0 | 697 | #define NS_STYLE_LIST_STYLE_POSITION_INSIDE 0 |
michael@0 | 698 | #define NS_STYLE_LIST_STYLE_POSITION_OUTSIDE 1 |
michael@0 | 699 | |
michael@0 | 700 | // See nsStyleMargin |
michael@0 | 701 | #define NS_STYLE_MARGIN_SIZE_AUTO 0 |
michael@0 | 702 | |
michael@0 | 703 | // See nsStyleVisibility |
michael@0 | 704 | #define NS_STYLE_POINTER_EVENTS_NONE 0 |
michael@0 | 705 | #define NS_STYLE_POINTER_EVENTS_VISIBLEPAINTED 1 |
michael@0 | 706 | #define NS_STYLE_POINTER_EVENTS_VISIBLEFILL 2 |
michael@0 | 707 | #define NS_STYLE_POINTER_EVENTS_VISIBLESTROKE 3 |
michael@0 | 708 | #define NS_STYLE_POINTER_EVENTS_VISIBLE 4 |
michael@0 | 709 | #define NS_STYLE_POINTER_EVENTS_PAINTED 5 |
michael@0 | 710 | #define NS_STYLE_POINTER_EVENTS_FILL 6 |
michael@0 | 711 | #define NS_STYLE_POINTER_EVENTS_STROKE 7 |
michael@0 | 712 | #define NS_STYLE_POINTER_EVENTS_ALL 8 |
michael@0 | 713 | #define NS_STYLE_POINTER_EVENTS_AUTO 9 |
michael@0 | 714 | |
michael@0 | 715 | // See nsStyleVisibility.mImageOrientationType |
michael@0 | 716 | #define NS_STYLE_IMAGE_ORIENTATION_FLIP 0 |
michael@0 | 717 | #define NS_STYLE_IMAGE_ORIENTATION_FROM_IMAGE 1 |
michael@0 | 718 | |
michael@0 | 719 | // See nsStyleDisplay |
michael@0 | 720 | #define NS_STYLE_RESIZE_NONE 0 |
michael@0 | 721 | #define NS_STYLE_RESIZE_BOTH 1 |
michael@0 | 722 | #define NS_STYLE_RESIZE_HORIZONTAL 2 |
michael@0 | 723 | #define NS_STYLE_RESIZE_VERTICAL 3 |
michael@0 | 724 | |
michael@0 | 725 | // See nsStyleText |
michael@0 | 726 | #define NS_STYLE_TEXT_ALIGN_DEFAULT 0 |
michael@0 | 727 | #define NS_STYLE_TEXT_ALIGN_LEFT 1 |
michael@0 | 728 | #define NS_STYLE_TEXT_ALIGN_RIGHT 2 |
michael@0 | 729 | #define NS_STYLE_TEXT_ALIGN_CENTER 3 |
michael@0 | 730 | #define NS_STYLE_TEXT_ALIGN_JUSTIFY 4 |
michael@0 | 731 | #define NS_STYLE_TEXT_ALIGN_CHAR 5 //align based on a certain character, for table cell |
michael@0 | 732 | #define NS_STYLE_TEXT_ALIGN_END 6 |
michael@0 | 733 | #define NS_STYLE_TEXT_ALIGN_AUTO 7 |
michael@0 | 734 | #define NS_STYLE_TEXT_ALIGN_MOZ_CENTER 8 |
michael@0 | 735 | #define NS_STYLE_TEXT_ALIGN_MOZ_RIGHT 9 |
michael@0 | 736 | #define NS_STYLE_TEXT_ALIGN_MOZ_LEFT 10 |
michael@0 | 737 | // NS_STYLE_TEXT_ALIGN_MOZ_CENTER_OR_INHERIT is only used in data structs; it |
michael@0 | 738 | // is never present in stylesheets or computed data. |
michael@0 | 739 | #define NS_STYLE_TEXT_ALIGN_MOZ_CENTER_OR_INHERIT 11 |
michael@0 | 740 | #define NS_STYLE_TEXT_ALIGN_TRUE 12 |
michael@0 | 741 | // Note: make sure that the largest NS_STYLE_TEXT_ALIGN_* value is smaller than |
michael@0 | 742 | // the smallest NS_STYLE_VERTICAL_ALIGN_* value below! |
michael@0 | 743 | |
michael@0 | 744 | // See nsStyleText, nsStyleFont |
michael@0 | 745 | #define NS_STYLE_TEXT_DECORATION_LINE_NONE 0 |
michael@0 | 746 | #define NS_STYLE_TEXT_DECORATION_LINE_UNDERLINE NS_FONT_DECORATION_UNDERLINE |
michael@0 | 747 | #define NS_STYLE_TEXT_DECORATION_LINE_OVERLINE NS_FONT_DECORATION_OVERLINE |
michael@0 | 748 | #define NS_STYLE_TEXT_DECORATION_LINE_LINE_THROUGH NS_FONT_DECORATION_LINE_THROUGH |
michael@0 | 749 | #define NS_STYLE_TEXT_DECORATION_LINE_BLINK 0x08 |
michael@0 | 750 | #define NS_STYLE_TEXT_DECORATION_LINE_PREF_ANCHORS 0x10 |
michael@0 | 751 | // OVERRIDE_ALL does not occur in stylesheets; it only comes from HTML |
michael@0 | 752 | // attribute mapping (and thus appears in computed data) |
michael@0 | 753 | #define NS_STYLE_TEXT_DECORATION_LINE_OVERRIDE_ALL 0x20 |
michael@0 | 754 | #define NS_STYLE_TEXT_DECORATION_LINE_LINES_MASK (NS_STYLE_TEXT_DECORATION_LINE_UNDERLINE | NS_STYLE_TEXT_DECORATION_LINE_OVERLINE | NS_STYLE_TEXT_DECORATION_LINE_LINE_THROUGH) |
michael@0 | 755 | |
michael@0 | 756 | // See nsStyleText |
michael@0 | 757 | #define NS_STYLE_TEXT_DECORATION_STYLE_NONE 0 // not in CSS spec, mapped to -moz-none |
michael@0 | 758 | #define NS_STYLE_TEXT_DECORATION_STYLE_DOTTED 1 |
michael@0 | 759 | #define NS_STYLE_TEXT_DECORATION_STYLE_DASHED 2 |
michael@0 | 760 | #define NS_STYLE_TEXT_DECORATION_STYLE_SOLID 3 |
michael@0 | 761 | #define NS_STYLE_TEXT_DECORATION_STYLE_DOUBLE 4 |
michael@0 | 762 | #define NS_STYLE_TEXT_DECORATION_STYLE_WAVY 5 |
michael@0 | 763 | #define NS_STYLE_TEXT_DECORATION_STYLE_MAX NS_STYLE_TEXT_DECORATION_STYLE_WAVY |
michael@0 | 764 | |
michael@0 | 765 | // See nsStyleTextOverflow |
michael@0 | 766 | #define NS_STYLE_TEXT_OVERFLOW_CLIP 0 |
michael@0 | 767 | #define NS_STYLE_TEXT_OVERFLOW_ELLIPSIS 1 |
michael@0 | 768 | #define NS_STYLE_TEXT_OVERFLOW_STRING 2 |
michael@0 | 769 | |
michael@0 | 770 | // See nsStyleText |
michael@0 | 771 | #define NS_STYLE_TEXT_TRANSFORM_NONE 0 |
michael@0 | 772 | #define NS_STYLE_TEXT_TRANSFORM_CAPITALIZE 1 |
michael@0 | 773 | #define NS_STYLE_TEXT_TRANSFORM_LOWERCASE 2 |
michael@0 | 774 | #define NS_STYLE_TEXT_TRANSFORM_UPPERCASE 3 |
michael@0 | 775 | #define NS_STYLE_TEXT_TRANSFORM_FULLWIDTH 4 |
michael@0 | 776 | |
michael@0 | 777 | // See nsStyleDisplay |
michael@0 | 778 | #define NS_STYLE_TOUCH_ACTION_NONE (1 << 0) |
michael@0 | 779 | #define NS_STYLE_TOUCH_ACTION_AUTO (1 << 1) |
michael@0 | 780 | #define NS_STYLE_TOUCH_ACTION_PAN_X (1 << 2) |
michael@0 | 781 | #define NS_STYLE_TOUCH_ACTION_PAN_Y (1 << 3) |
michael@0 | 782 | #define NS_STYLE_TOUCH_ACTION_MANIPULATION (1 << 4) |
michael@0 | 783 | |
michael@0 | 784 | // See nsStyleDisplay |
michael@0 | 785 | #define NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE 0 |
michael@0 | 786 | #define NS_STYLE_TRANSITION_TIMING_FUNCTION_LINEAR 1 |
michael@0 | 787 | #define NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE_IN 2 |
michael@0 | 788 | #define NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE_OUT 3 |
michael@0 | 789 | #define NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE_IN_OUT 4 |
michael@0 | 790 | #define NS_STYLE_TRANSITION_TIMING_FUNCTION_STEP_START 5 |
michael@0 | 791 | #define NS_STYLE_TRANSITION_TIMING_FUNCTION_STEP_END 6 |
michael@0 | 792 | |
michael@0 | 793 | // See nsStyleText |
michael@0 | 794 | // Note: these values pickup after the text-align values because there |
michael@0 | 795 | // are a few html cases where an object can have both types of |
michael@0 | 796 | // alignment applied with a single attribute |
michael@0 | 797 | #define NS_STYLE_VERTICAL_ALIGN_BASELINE 13 |
michael@0 | 798 | #define NS_STYLE_VERTICAL_ALIGN_SUB 14 |
michael@0 | 799 | #define NS_STYLE_VERTICAL_ALIGN_SUPER 15 |
michael@0 | 800 | #define NS_STYLE_VERTICAL_ALIGN_TOP 16 |
michael@0 | 801 | #define NS_STYLE_VERTICAL_ALIGN_TEXT_TOP 17 |
michael@0 | 802 | #define NS_STYLE_VERTICAL_ALIGN_MIDDLE 18 |
michael@0 | 803 | #define NS_STYLE_VERTICAL_ALIGN_TEXT_BOTTOM 19 |
michael@0 | 804 | #define NS_STYLE_VERTICAL_ALIGN_BOTTOM 20 |
michael@0 | 805 | #define NS_STYLE_VERTICAL_ALIGN_MIDDLE_WITH_BASELINE 21 |
michael@0 | 806 | |
michael@0 | 807 | // See nsStyleVisibility |
michael@0 | 808 | #define NS_STYLE_VISIBILITY_HIDDEN 0 |
michael@0 | 809 | #define NS_STYLE_VISIBILITY_VISIBLE 1 |
michael@0 | 810 | #define NS_STYLE_VISIBILITY_COLLAPSE 2 |
michael@0 | 811 | |
michael@0 | 812 | // See nsStyleText |
michael@0 | 813 | #define NS_STYLE_TABSIZE_INITIAL 8 |
michael@0 | 814 | |
michael@0 | 815 | // See nsStyleText |
michael@0 | 816 | #define NS_STYLE_WHITESPACE_NORMAL 0 |
michael@0 | 817 | #define NS_STYLE_WHITESPACE_PRE 1 |
michael@0 | 818 | #define NS_STYLE_WHITESPACE_NOWRAP 2 |
michael@0 | 819 | #define NS_STYLE_WHITESPACE_PRE_WRAP 3 |
michael@0 | 820 | #define NS_STYLE_WHITESPACE_PRE_LINE 4 |
michael@0 | 821 | #define NS_STYLE_WHITESPACE_PRE_DISCARD_NEWLINES 5 |
michael@0 | 822 | |
michael@0 | 823 | // See nsStyleText |
michael@0 | 824 | #define NS_STYLE_WORDBREAK_NORMAL 0 |
michael@0 | 825 | #define NS_STYLE_WORDBREAK_BREAK_ALL 1 |
michael@0 | 826 | #define NS_STYLE_WORDBREAK_KEEP_ALL 2 |
michael@0 | 827 | |
michael@0 | 828 | // See nsStyleText |
michael@0 | 829 | #define NS_STYLE_WORDWRAP_NORMAL 0 |
michael@0 | 830 | #define NS_STYLE_WORDWRAP_BREAK_WORD 1 |
michael@0 | 831 | |
michael@0 | 832 | // See nsStyleText |
michael@0 | 833 | #define NS_STYLE_HYPHENS_NONE 0 |
michael@0 | 834 | #define NS_STYLE_HYPHENS_MANUAL 1 |
michael@0 | 835 | #define NS_STYLE_HYPHENS_AUTO 2 |
michael@0 | 836 | |
michael@0 | 837 | // See nsStyleText |
michael@0 | 838 | #define NS_STYLE_TEXT_SIZE_ADJUST_NONE 0 |
michael@0 | 839 | #define NS_STYLE_TEXT_SIZE_ADJUST_AUTO 1 |
michael@0 | 840 | |
michael@0 | 841 | // See nsStyleText |
michael@0 | 842 | #define NS_STYLE_TEXT_ORIENTATION_AUTO 0 |
michael@0 | 843 | #define NS_STYLE_TEXT_ORIENTATION_UPRIGHT 1 |
michael@0 | 844 | #define NS_STYLE_TEXT_ORIENTATION_SIDEWAYS 2 |
michael@0 | 845 | |
michael@0 | 846 | // See nsStyleText |
michael@0 | 847 | #define NS_STYLE_TEXT_COMBINE_UPRIGHT_NONE 0 |
michael@0 | 848 | #define NS_STYLE_TEXT_COMBINE_UPRIGHT_ALL 1 |
michael@0 | 849 | #define NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_2 2 |
michael@0 | 850 | #define NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_3 3 |
michael@0 | 851 | #define NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_4 4 |
michael@0 | 852 | |
michael@0 | 853 | // See nsStyleText |
michael@0 | 854 | #define NS_STYLE_LINE_HEIGHT_BLOCK_HEIGHT 0 |
michael@0 | 855 | |
michael@0 | 856 | // See nsStyleText |
michael@0 | 857 | #define NS_STYLE_UNICODE_BIDI_NORMAL 0x0 |
michael@0 | 858 | #define NS_STYLE_UNICODE_BIDI_EMBED 0x1 |
michael@0 | 859 | #define NS_STYLE_UNICODE_BIDI_ISOLATE 0x2 |
michael@0 | 860 | #define NS_STYLE_UNICODE_BIDI_OVERRIDE 0x4 |
michael@0 | 861 | #define NS_STYLE_UNICODE_BIDI_ISOLATE_OVERRIDE 0x6 |
michael@0 | 862 | #define NS_STYLE_UNICODE_BIDI_PLAINTEXT 0x8 |
michael@0 | 863 | |
michael@0 | 864 | // See nsStyleTable (here for HTML 4.0 for now, should probably change to side flags) |
michael@0 | 865 | #define NS_STYLE_TABLE_FRAME_NONE 0 |
michael@0 | 866 | #define NS_STYLE_TABLE_FRAME_ABOVE 1 |
michael@0 | 867 | #define NS_STYLE_TABLE_FRAME_BELOW 2 |
michael@0 | 868 | #define NS_STYLE_TABLE_FRAME_HSIDES 3 |
michael@0 | 869 | #define NS_STYLE_TABLE_FRAME_VSIDES 4 |
michael@0 | 870 | #define NS_STYLE_TABLE_FRAME_LEFT 5 |
michael@0 | 871 | #define NS_STYLE_TABLE_FRAME_RIGHT 6 |
michael@0 | 872 | #define NS_STYLE_TABLE_FRAME_BOX 7 |
michael@0 | 873 | #define NS_STYLE_TABLE_FRAME_BORDER 8 |
michael@0 | 874 | |
michael@0 | 875 | // See nsStyleTable |
michael@0 | 876 | #define NS_STYLE_TABLE_RULES_NONE 0 |
michael@0 | 877 | #define NS_STYLE_TABLE_RULES_GROUPS 1 |
michael@0 | 878 | #define NS_STYLE_TABLE_RULES_ROWS 2 |
michael@0 | 879 | #define NS_STYLE_TABLE_RULES_COLS 3 |
michael@0 | 880 | #define NS_STYLE_TABLE_RULES_ALL 4 |
michael@0 | 881 | |
michael@0 | 882 | #define NS_STYLE_TABLE_LAYOUT_AUTO 0 |
michael@0 | 883 | #define NS_STYLE_TABLE_LAYOUT_FIXED 1 |
michael@0 | 884 | |
michael@0 | 885 | #define NS_STYLE_TABLE_EMPTY_CELLS_HIDE 0 |
michael@0 | 886 | #define NS_STYLE_TABLE_EMPTY_CELLS_SHOW 1 |
michael@0 | 887 | #define NS_STYLE_TABLE_EMPTY_CELLS_SHOW_BACKGROUND 2 |
michael@0 | 888 | |
michael@0 | 889 | #define NS_STYLE_CAPTION_SIDE_TOP 0 |
michael@0 | 890 | #define NS_STYLE_CAPTION_SIDE_RIGHT 1 |
michael@0 | 891 | #define NS_STYLE_CAPTION_SIDE_BOTTOM 2 |
michael@0 | 892 | #define NS_STYLE_CAPTION_SIDE_LEFT 3 |
michael@0 | 893 | #define NS_STYLE_CAPTION_SIDE_TOP_OUTSIDE 4 |
michael@0 | 894 | #define NS_STYLE_CAPTION_SIDE_BOTTOM_OUTSIDE 5 |
michael@0 | 895 | |
michael@0 | 896 | // constants for cell "scope" attribute |
michael@0 | 897 | #define NS_STYLE_CELL_SCOPE_ROW 0 |
michael@0 | 898 | #define NS_STYLE_CELL_SCOPE_COL 1 |
michael@0 | 899 | #define NS_STYLE_CELL_SCOPE_ROWGROUP 2 |
michael@0 | 900 | #define NS_STYLE_CELL_SCOPE_COLGROUP 3 |
michael@0 | 901 | |
michael@0 | 902 | // See nsStylePage |
michael@0 | 903 | #define NS_STYLE_PAGE_MARKS_NONE 0x00 |
michael@0 | 904 | #define NS_STYLE_PAGE_MARKS_CROP 0x01 |
michael@0 | 905 | #define NS_STYLE_PAGE_MARKS_REGISTER 0x02 |
michael@0 | 906 | |
michael@0 | 907 | // See nsStylePage |
michael@0 | 908 | #define NS_STYLE_PAGE_SIZE_AUTO 0 |
michael@0 | 909 | #define NS_STYLE_PAGE_SIZE_PORTRAIT 1 |
michael@0 | 910 | #define NS_STYLE_PAGE_SIZE_LANDSCAPE 2 |
michael@0 | 911 | |
michael@0 | 912 | // See nsStyleBreaks |
michael@0 | 913 | #define NS_STYLE_PAGE_BREAK_AUTO 0 |
michael@0 | 914 | #define NS_STYLE_PAGE_BREAK_ALWAYS 1 |
michael@0 | 915 | #define NS_STYLE_PAGE_BREAK_AVOID 2 |
michael@0 | 916 | #define NS_STYLE_PAGE_BREAK_LEFT 3 |
michael@0 | 917 | #define NS_STYLE_PAGE_BREAK_RIGHT 4 |
michael@0 | 918 | |
michael@0 | 919 | // See nsStyleColumn |
michael@0 | 920 | #define NS_STYLE_COLUMN_COUNT_AUTO 0 |
michael@0 | 921 | #define NS_STYLE_COLUMN_COUNT_UNLIMITED (-1) |
michael@0 | 922 | |
michael@0 | 923 | #define NS_STYLE_COLUMN_FILL_AUTO 0 |
michael@0 | 924 | #define NS_STYLE_COLUMN_FILL_BALANCE 1 |
michael@0 | 925 | |
michael@0 | 926 | // See nsStyleUIReset |
michael@0 | 927 | #define NS_STYLE_IME_MODE_AUTO 0 |
michael@0 | 928 | #define NS_STYLE_IME_MODE_NORMAL 1 |
michael@0 | 929 | #define NS_STYLE_IME_MODE_ACTIVE 2 |
michael@0 | 930 | #define NS_STYLE_IME_MODE_DISABLED 3 |
michael@0 | 931 | #define NS_STYLE_IME_MODE_INACTIVE 4 |
michael@0 | 932 | |
michael@0 | 933 | // See nsStyleGradient |
michael@0 | 934 | #define NS_STYLE_GRADIENT_SHAPE_LINEAR 0 |
michael@0 | 935 | #define NS_STYLE_GRADIENT_SHAPE_ELLIPTICAL 1 |
michael@0 | 936 | #define NS_STYLE_GRADIENT_SHAPE_CIRCULAR 2 |
michael@0 | 937 | |
michael@0 | 938 | #define NS_STYLE_GRADIENT_SIZE_CLOSEST_SIDE 0 |
michael@0 | 939 | #define NS_STYLE_GRADIENT_SIZE_CLOSEST_CORNER 1 |
michael@0 | 940 | #define NS_STYLE_GRADIENT_SIZE_FARTHEST_SIDE 2 |
michael@0 | 941 | #define NS_STYLE_GRADIENT_SIZE_FARTHEST_CORNER 3 |
michael@0 | 942 | #define NS_STYLE_GRADIENT_SIZE_EXPLICIT_SIZE 4 |
michael@0 | 943 | |
michael@0 | 944 | // See nsStyleSVG |
michael@0 | 945 | |
michael@0 | 946 | // dominant-baseline |
michael@0 | 947 | #define NS_STYLE_DOMINANT_BASELINE_AUTO 0 |
michael@0 | 948 | #define NS_STYLE_DOMINANT_BASELINE_USE_SCRIPT 1 |
michael@0 | 949 | #define NS_STYLE_DOMINANT_BASELINE_NO_CHANGE 2 |
michael@0 | 950 | #define NS_STYLE_DOMINANT_BASELINE_RESET_SIZE 3 |
michael@0 | 951 | #define NS_STYLE_DOMINANT_BASELINE_IDEOGRAPHIC 4 |
michael@0 | 952 | #define NS_STYLE_DOMINANT_BASELINE_ALPHABETIC 5 |
michael@0 | 953 | #define NS_STYLE_DOMINANT_BASELINE_HANGING 6 |
michael@0 | 954 | #define NS_STYLE_DOMINANT_BASELINE_MATHEMATICAL 7 |
michael@0 | 955 | #define NS_STYLE_DOMINANT_BASELINE_CENTRAL 8 |
michael@0 | 956 | #define NS_STYLE_DOMINANT_BASELINE_MIDDLE 9 |
michael@0 | 957 | #define NS_STYLE_DOMINANT_BASELINE_TEXT_AFTER_EDGE 10 |
michael@0 | 958 | #define NS_STYLE_DOMINANT_BASELINE_TEXT_BEFORE_EDGE 11 |
michael@0 | 959 | |
michael@0 | 960 | // fill-rule |
michael@0 | 961 | #define NS_STYLE_FILL_RULE_NONZERO 0 |
michael@0 | 962 | #define NS_STYLE_FILL_RULE_EVENODD 1 |
michael@0 | 963 | |
michael@0 | 964 | // image-rendering |
michael@0 | 965 | #define NS_STYLE_IMAGE_RENDERING_AUTO 0 |
michael@0 | 966 | #define NS_STYLE_IMAGE_RENDERING_OPTIMIZESPEED 1 |
michael@0 | 967 | #define NS_STYLE_IMAGE_RENDERING_OPTIMIZEQUALITY 2 |
michael@0 | 968 | #define NS_STYLE_IMAGE_RENDERING_CRISPEDGES 3 |
michael@0 | 969 | |
michael@0 | 970 | // mask-type |
michael@0 | 971 | #define NS_STYLE_MASK_TYPE_LUMINANCE 0 |
michael@0 | 972 | #define NS_STYLE_MASK_TYPE_ALPHA 1 |
michael@0 | 973 | |
michael@0 | 974 | // paint-order |
michael@0 | 975 | #define NS_STYLE_PAINT_ORDER_NORMAL 0 |
michael@0 | 976 | #define NS_STYLE_PAINT_ORDER_FILL 1 |
michael@0 | 977 | #define NS_STYLE_PAINT_ORDER_STROKE 2 |
michael@0 | 978 | #define NS_STYLE_PAINT_ORDER_MARKERS 3 |
michael@0 | 979 | #define NS_STYLE_PAINT_ORDER_LAST_VALUE NS_STYLE_PAINT_ORDER_MARKERS |
michael@0 | 980 | // NS_STYLE_PAINT_ORDER_BITWIDTH is the number of bits required to store |
michael@0 | 981 | // a single paint-order component value. |
michael@0 | 982 | #define NS_STYLE_PAINT_ORDER_BITWIDTH 2 |
michael@0 | 983 | |
michael@0 | 984 | // shape-rendering |
michael@0 | 985 | #define NS_STYLE_SHAPE_RENDERING_AUTO 0 |
michael@0 | 986 | #define NS_STYLE_SHAPE_RENDERING_OPTIMIZESPEED 1 |
michael@0 | 987 | #define NS_STYLE_SHAPE_RENDERING_CRISPEDGES 2 |
michael@0 | 988 | #define NS_STYLE_SHAPE_RENDERING_GEOMETRICPRECISION 3 |
michael@0 | 989 | |
michael@0 | 990 | // stroke-linecap |
michael@0 | 991 | #define NS_STYLE_STROKE_LINECAP_BUTT 0 |
michael@0 | 992 | #define NS_STYLE_STROKE_LINECAP_ROUND 1 |
michael@0 | 993 | #define NS_STYLE_STROKE_LINECAP_SQUARE 2 |
michael@0 | 994 | |
michael@0 | 995 | // stroke-linejoin |
michael@0 | 996 | #define NS_STYLE_STROKE_LINEJOIN_MITER 0 |
michael@0 | 997 | #define NS_STYLE_STROKE_LINEJOIN_ROUND 1 |
michael@0 | 998 | #define NS_STYLE_STROKE_LINEJOIN_BEVEL 2 |
michael@0 | 999 | |
michael@0 | 1000 | // stroke-dasharray, stroke-dashoffset, stroke-width |
michael@0 | 1001 | #define NS_STYLE_STROKE_PROP_CONTEXT_VALUE 0 |
michael@0 | 1002 | |
michael@0 | 1003 | // text-anchor |
michael@0 | 1004 | #define NS_STYLE_TEXT_ANCHOR_START 0 |
michael@0 | 1005 | #define NS_STYLE_TEXT_ANCHOR_MIDDLE 1 |
michael@0 | 1006 | #define NS_STYLE_TEXT_ANCHOR_END 2 |
michael@0 | 1007 | |
michael@0 | 1008 | // text-rendering |
michael@0 | 1009 | #define NS_STYLE_TEXT_RENDERING_AUTO 0 |
michael@0 | 1010 | #define NS_STYLE_TEXT_RENDERING_OPTIMIZESPEED 1 |
michael@0 | 1011 | #define NS_STYLE_TEXT_RENDERING_OPTIMIZELEGIBILITY 2 |
michael@0 | 1012 | #define NS_STYLE_TEXT_RENDERING_GEOMETRICPRECISION 3 |
michael@0 | 1013 | |
michael@0 | 1014 | // color-interpolation and color-interpolation-filters |
michael@0 | 1015 | #define NS_STYLE_COLOR_INTERPOLATION_AUTO 0 |
michael@0 | 1016 | #define NS_STYLE_COLOR_INTERPOLATION_SRGB 1 |
michael@0 | 1017 | #define NS_STYLE_COLOR_INTERPOLATION_LINEARRGB 2 |
michael@0 | 1018 | |
michael@0 | 1019 | // vector-effect |
michael@0 | 1020 | #define NS_STYLE_VECTOR_EFFECT_NONE 0 |
michael@0 | 1021 | #define NS_STYLE_VECTOR_EFFECT_NON_SCALING_STROKE 1 |
michael@0 | 1022 | |
michael@0 | 1023 | // 3d Transforms - Backface visibility |
michael@0 | 1024 | #define NS_STYLE_BACKFACE_VISIBILITY_VISIBLE 1 |
michael@0 | 1025 | #define NS_STYLE_BACKFACE_VISIBILITY_HIDDEN 0 |
michael@0 | 1026 | |
michael@0 | 1027 | #define NS_STYLE_TRANSFORM_STYLE_FLAT 0 |
michael@0 | 1028 | #define NS_STYLE_TRANSFORM_STYLE_PRESERVE_3D 1 |
michael@0 | 1029 | |
michael@0 | 1030 | // object {fill,stroke}-opacity inherited from context for SVG glyphs |
michael@0 | 1031 | #define NS_STYLE_CONTEXT_FILL_OPACITY 0 |
michael@0 | 1032 | #define NS_STYLE_CONTEXT_STROKE_OPACITY 1 |
michael@0 | 1033 | |
michael@0 | 1034 | // blending |
michael@0 | 1035 | #define NS_STYLE_BLEND_NORMAL 0 |
michael@0 | 1036 | #define NS_STYLE_BLEND_MULTIPLY 1 |
michael@0 | 1037 | #define NS_STYLE_BLEND_SCREEN 2 |
michael@0 | 1038 | #define NS_STYLE_BLEND_OVERLAY 3 |
michael@0 | 1039 | #define NS_STYLE_BLEND_DARKEN 4 |
michael@0 | 1040 | #define NS_STYLE_BLEND_LIGHTEN 5 |
michael@0 | 1041 | #define NS_STYLE_BLEND_COLOR_DODGE 6 |
michael@0 | 1042 | #define NS_STYLE_BLEND_COLOR_BURN 7 |
michael@0 | 1043 | #define NS_STYLE_BLEND_HARD_LIGHT 8 |
michael@0 | 1044 | #define NS_STYLE_BLEND_SOFT_LIGHT 9 |
michael@0 | 1045 | #define NS_STYLE_BLEND_DIFFERENCE 10 |
michael@0 | 1046 | #define NS_STYLE_BLEND_EXCLUSION 11 |
michael@0 | 1047 | #define NS_STYLE_BLEND_HUE 12 |
michael@0 | 1048 | #define NS_STYLE_BLEND_SATURATION 13 |
michael@0 | 1049 | #define NS_STYLE_BLEND_COLOR 14 |
michael@0 | 1050 | #define NS_STYLE_BLEND_LUMINOSITY 15 |
michael@0 | 1051 | |
michael@0 | 1052 | // See nsStyleText::mControlCharacterVisibility |
michael@0 | 1053 | #define NS_STYLE_CONTROL_CHARACTER_VISIBILITY_HIDDEN 0 |
michael@0 | 1054 | #define NS_STYLE_CONTROL_CHARACTER_VISIBILITY_VISIBLE 1 |
michael@0 | 1055 | |
michael@0 | 1056 | /***************************************************************************** |
michael@0 | 1057 | * Constants for media features. * |
michael@0 | 1058 | *****************************************************************************/ |
michael@0 | 1059 | |
michael@0 | 1060 | // orientation |
michael@0 | 1061 | #define NS_STYLE_ORIENTATION_PORTRAIT 0 |
michael@0 | 1062 | #define NS_STYLE_ORIENTATION_LANDSCAPE 1 |
michael@0 | 1063 | |
michael@0 | 1064 | // scan |
michael@0 | 1065 | #define NS_STYLE_SCAN_PROGRESSIVE 0 |
michael@0 | 1066 | #define NS_STYLE_SCAN_INTERLACE 1 |
michael@0 | 1067 | |
michael@0 | 1068 | #endif /* nsStyleConsts_h___ */ |