layout/style/nsStyleConsts.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/style/nsStyleConsts.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,1068 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/* constants used in the style struct data provided by nsStyleContext */
    1.10 +
    1.11 +#ifndef nsStyleConsts_h___
    1.12 +#define nsStyleConsts_h___
    1.13 +
    1.14 +#include "gfxRect.h"
    1.15 +#include "nsFont.h"
    1.16 +
    1.17 +// XXX fold this into nsStyleContext and group by nsStyleXXX struct
    1.18 +
    1.19 +// Indices into border/padding/margin arrays
    1.20 +#define NS_SIDE_TOP     mozilla::css::eSideTop
    1.21 +#define NS_SIDE_RIGHT   mozilla::css::eSideRight
    1.22 +#define NS_SIDE_BOTTOM  mozilla::css::eSideBottom
    1.23 +#define NS_SIDE_LEFT    mozilla::css::eSideLeft
    1.24 +
    1.25 +#define NS_FOR_CSS_SIDES(var_) for (mozilla::css::Side var_ = NS_SIDE_TOP; var_ <= NS_SIDE_LEFT; var_++)
    1.26 +static inline mozilla::css::Side operator++(mozilla::css::Side& side, int) {
    1.27 +    NS_PRECONDITION(side >= NS_SIDE_TOP &&
    1.28 +                    side <= NS_SIDE_LEFT, "Out of range side");
    1.29 +    side = mozilla::css::Side(side + 1);
    1.30 +    return side;
    1.31 +}
    1.32 +
    1.33 +#define NS_FOR_CSS_FULL_CORNERS(var_) for (int32_t var_ = 0; var_ < 4; ++var_)
    1.34 +
    1.35 +// Indices into "half corner" arrays (nsStyleCorners e.g.)
    1.36 +#define NS_CORNER_TOP_LEFT_X      0
    1.37 +#define NS_CORNER_TOP_LEFT_Y      1
    1.38 +#define NS_CORNER_TOP_RIGHT_X     2
    1.39 +#define NS_CORNER_TOP_RIGHT_Y     3
    1.40 +#define NS_CORNER_BOTTOM_RIGHT_X  4
    1.41 +#define NS_CORNER_BOTTOM_RIGHT_Y  5
    1.42 +#define NS_CORNER_BOTTOM_LEFT_X   6
    1.43 +#define NS_CORNER_BOTTOM_LEFT_Y   7
    1.44 +
    1.45 +#define NS_FOR_CSS_HALF_CORNERS(var_) for (int32_t var_ = 0; var_ < 8; ++var_)
    1.46 +
    1.47 +// The results of these conversion macros are exhaustively checked in
    1.48 +// nsStyleCoord.cpp.
    1.49 +// Arguments must not have side effects.
    1.50 +
    1.51 +#define NS_HALF_CORNER_IS_X(var_) (!((var_)%2))
    1.52 +#define NS_HALF_TO_FULL_CORNER(var_) ((var_)/2)
    1.53 +#define NS_FULL_TO_HALF_CORNER(var_, vert_) ((var_)*2 + !!(vert_))
    1.54 +
    1.55 +#define NS_SIDE_IS_VERTICAL(side_) ((side_) % 2)
    1.56 +#define NS_SIDE_TO_FULL_CORNER(side_, second_) \
    1.57 +  (((side_) + !!(second_)) % 4)
    1.58 +#define NS_SIDE_TO_HALF_CORNER(side_, second_, parallel_) \
    1.59 +  ((((side_) + !!(second_))*2 + ((side_) + !(parallel_))%2) % 8)
    1.60 +
    1.61 +// {margin,border-{width,style,color},padding}-{left,right}-{ltr,rtl}-source
    1.62 +#define NS_BOXPROP_SOURCE_PHYSICAL 0
    1.63 +#define NS_BOXPROP_SOURCE_LOGICAL  1
    1.64 +
    1.65 +// box-sizing
    1.66 +#define NS_STYLE_BOX_SIZING_CONTENT       0
    1.67 +#define NS_STYLE_BOX_SIZING_PADDING       1
    1.68 +#define NS_STYLE_BOX_SIZING_BORDER        2
    1.69 +
    1.70 +// box-shadow
    1.71 +#define NS_STYLE_BOX_SHADOW_INSET         0
    1.72 +
    1.73 +// float-edge
    1.74 +#define NS_STYLE_FLOAT_EDGE_CONTENT       0
    1.75 +#define NS_STYLE_FLOAT_EDGE_MARGIN        1
    1.76 +
    1.77 +// user-focus
    1.78 +#define NS_STYLE_USER_FOCUS_NONE            0
    1.79 +#define NS_STYLE_USER_FOCUS_IGNORE          1
    1.80 +#define NS_STYLE_USER_FOCUS_NORMAL          2
    1.81 +#define NS_STYLE_USER_FOCUS_SELECT_ALL      3
    1.82 +#define NS_STYLE_USER_FOCUS_SELECT_BEFORE   4
    1.83 +#define NS_STYLE_USER_FOCUS_SELECT_AFTER    5
    1.84 +#define NS_STYLE_USER_FOCUS_SELECT_SAME     6
    1.85 +#define NS_STYLE_USER_FOCUS_SELECT_MENU     7
    1.86 +
    1.87 +// user-select
    1.88 +#define NS_STYLE_USER_SELECT_NONE       0
    1.89 +#define NS_STYLE_USER_SELECT_TEXT       1
    1.90 +#define NS_STYLE_USER_SELECT_ELEMENT    2
    1.91 +#define NS_STYLE_USER_SELECT_ELEMENTS   3
    1.92 +#define NS_STYLE_USER_SELECT_ALL        4
    1.93 +#define NS_STYLE_USER_SELECT_TOGGLE     5
    1.94 +#define NS_STYLE_USER_SELECT_TRI_STATE  6
    1.95 +#define NS_STYLE_USER_SELECT_AUTO       7 // internal value - please use nsFrame::IsSelectable()
    1.96 +#define NS_STYLE_USER_SELECT_MOZ_ALL    8 // force selection of all children, unless an ancestor has NONE set - bug 48096
    1.97 +#define NS_STYLE_USER_SELECT_MOZ_NONE   9 // Like NONE, but doesn't change selection behavior for descendants whose user-select is not AUTO.
    1.98 +
    1.99 +// user-input
   1.100 +#define NS_STYLE_USER_INPUT_NONE      0
   1.101 +#define NS_STYLE_USER_INPUT_ENABLED   1
   1.102 +#define NS_STYLE_USER_INPUT_DISABLED  2
   1.103 +#define NS_STYLE_USER_INPUT_AUTO      3
   1.104 +
   1.105 +// user-modify
   1.106 +#define NS_STYLE_USER_MODIFY_READ_ONLY   0
   1.107 +#define NS_STYLE_USER_MODIFY_READ_WRITE  1
   1.108 +#define NS_STYLE_USER_MODIFY_WRITE_ONLY  2
   1.109 +
   1.110 +// box-align
   1.111 +#define NS_STYLE_BOX_ALIGN_STRETCH     0
   1.112 +#define NS_STYLE_BOX_ALIGN_START       1
   1.113 +#define NS_STYLE_BOX_ALIGN_CENTER      2
   1.114 +#define NS_STYLE_BOX_ALIGN_BASELINE    3
   1.115 +#define NS_STYLE_BOX_ALIGN_END         4
   1.116 +
   1.117 +// box-pack
   1.118 +#define NS_STYLE_BOX_PACK_START        0
   1.119 +#define NS_STYLE_BOX_PACK_CENTER       1
   1.120 +#define NS_STYLE_BOX_PACK_END          2
   1.121 +#define NS_STYLE_BOX_PACK_JUSTIFY      3
   1.122 +
   1.123 +// box-direction
   1.124 +#define NS_STYLE_BOX_DIRECTION_NORMAL    0
   1.125 +#define NS_STYLE_BOX_DIRECTION_REVERSE   1
   1.126 +
   1.127 +// box-orient
   1.128 +#define NS_STYLE_BOX_ORIENT_HORIZONTAL 0
   1.129 +#define NS_STYLE_BOX_ORIENT_VERTICAL   1
   1.130 +
   1.131 +// orient
   1.132 +#define NS_STYLE_ORIENT_HORIZONTAL 0
   1.133 +#define NS_STYLE_ORIENT_VERTICAL   1
   1.134 +#define NS_STYLE_ORIENT_AUTO       2
   1.135 +
   1.136 +// stack-sizing
   1.137 +#define NS_STYLE_STACK_SIZING_IGNORE         0
   1.138 +#define NS_STYLE_STACK_SIZING_STRETCH_TO_FIT 1
   1.139 +
   1.140 +// Azimuth - See nsStyleAural
   1.141 +#define NS_STYLE_AZIMUTH_LEFT_SIDE        0x00
   1.142 +#define NS_STYLE_AZIMUTH_FAR_LEFT         0x01
   1.143 +#define NS_STYLE_AZIMUTH_LEFT             0x02
   1.144 +#define NS_STYLE_AZIMUTH_CENTER_LEFT      0x03
   1.145 +#define NS_STYLE_AZIMUTH_CENTER           0x04
   1.146 +#define NS_STYLE_AZIMUTH_CENTER_RIGHT     0x05
   1.147 +#define NS_STYLE_AZIMUTH_RIGHT            0x06
   1.148 +#define NS_STYLE_AZIMUTH_FAR_RIGHT        0x07
   1.149 +#define NS_STYLE_AZIMUTH_RIGHT_SIDE       0x08
   1.150 +#define NS_STYLE_AZIMUTH_BEHIND           0x80  // bits
   1.151 +#define NS_STYLE_AZIMUTH_LEFTWARDS        0x10  // bits
   1.152 +#define NS_STYLE_AZIMUTH_RIGHTWARDS       0x20  // bits
   1.153 +
   1.154 +// See nsStyleAural
   1.155 +#define NS_STYLE_ELEVATION_BELOW          1
   1.156 +#define NS_STYLE_ELEVATION_LEVEL          2
   1.157 +#define NS_STYLE_ELEVATION_ABOVE          3
   1.158 +#define NS_STYLE_ELEVATION_HIGHER         4
   1.159 +#define NS_STYLE_ELEVATION_LOWER          5
   1.160 +
   1.161 +// See nsStyleAural
   1.162 +#define NS_STYLE_PITCH_X_LOW              1
   1.163 +#define NS_STYLE_PITCH_LOW                2
   1.164 +#define NS_STYLE_PITCH_MEDIUM             3
   1.165 +#define NS_STYLE_PITCH_HIGH               4
   1.166 +#define NS_STYLE_PITCH_X_HIGH             5
   1.167 +
   1.168 +// See nsStyleAural
   1.169 +#define NS_STYLE_SPEAK_NONE               0
   1.170 +#define NS_STYLE_SPEAK_NORMAL             1
   1.171 +#define NS_STYLE_SPEAK_SPELL_OUT          2
   1.172 +
   1.173 +// See nsStyleAural
   1.174 +#define NS_STYLE_SPEAK_HEADER_ONCE        0
   1.175 +#define NS_STYLE_SPEAK_HEADER_ALWAYS      1
   1.176 +
   1.177 +// See nsStyleAural
   1.178 +#define NS_STYLE_SPEAK_NUMERAL_DIGITS     0
   1.179 +#define NS_STYLE_SPEAK_NUMERAL_CONTINUOUS 1
   1.180 +
   1.181 +// See nsStyleAural
   1.182 +#define NS_STYLE_SPEAK_PUNCTUATION_NONE   0
   1.183 +#define NS_STYLE_SPEAK_PUNCTUATION_CODE   1
   1.184 +
   1.185 +// See nsStyleAural
   1.186 +#define NS_STYLE_SPEECH_RATE_X_SLOW       0
   1.187 +#define NS_STYLE_SPEECH_RATE_SLOW         1
   1.188 +#define NS_STYLE_SPEECH_RATE_MEDIUM       2
   1.189 +#define NS_STYLE_SPEECH_RATE_FAST         3
   1.190 +#define NS_STYLE_SPEECH_RATE_X_FAST       4
   1.191 +#define NS_STYLE_SPEECH_RATE_FASTER       10
   1.192 +#define NS_STYLE_SPEECH_RATE_SLOWER       11
   1.193 +
   1.194 +// See nsStyleAural
   1.195 +#define NS_STYLE_VOLUME_SILENT            0
   1.196 +#define NS_STYLE_VOLUME_X_SOFT            1
   1.197 +#define NS_STYLE_VOLUME_SOFT              2
   1.198 +#define NS_STYLE_VOLUME_MEDIUM            3
   1.199 +#define NS_STYLE_VOLUME_LOUD              4
   1.200 +#define NS_STYLE_VOLUME_X_LOUD            5
   1.201 +
   1.202 +// See nsStyleColor
   1.203 +#define NS_STYLE_COLOR_MOZ_USE_TEXT_COLOR 1
   1.204 +#define NS_STYLE_COLOR_INHERIT_FROM_BODY  2  /* Can't come from CSS directly */
   1.205 +
   1.206 +// See nsStyleColor
   1.207 +#define NS_COLOR_CURRENTCOLOR                   -1
   1.208 +#define NS_COLOR_MOZ_DEFAULT_COLOR              -2
   1.209 +#define NS_COLOR_MOZ_DEFAULT_BACKGROUND_COLOR   -3
   1.210 +#define NS_COLOR_MOZ_HYPERLINKTEXT              -4
   1.211 +#define NS_COLOR_MOZ_VISITEDHYPERLINKTEXT       -5
   1.212 +#define NS_COLOR_MOZ_ACTIVEHYPERLINKTEXT        -6
   1.213 +// Only valid as paints in SVG glyphs
   1.214 +#define NS_COLOR_CONTEXT_FILL                   -7
   1.215 +#define NS_COLOR_CONTEXT_STROKE                 -8
   1.216 +
   1.217 +// See nsStyleDisplay
   1.218 +#define NS_STYLE_WILL_CHANGE_STACKING_CONTEXT   (1<<0)
   1.219 +#define NS_STYLE_WILL_CHANGE_TRANSFORM          (1<<1)
   1.220 +#define NS_STYLE_WILL_CHANGE_SCROLL             (1<<2)
   1.221 +#define NS_STYLE_WILL_CHANGE_OPACITY            (1<<3)
   1.222 +
   1.223 +// See nsStyleDisplay
   1.224 +#define NS_STYLE_ANIMATION_DIRECTION_NORMAL       0
   1.225 +#define NS_STYLE_ANIMATION_DIRECTION_REVERSE      1
   1.226 +#define NS_STYLE_ANIMATION_DIRECTION_ALTERNATE    2
   1.227 +#define NS_STYLE_ANIMATION_DIRECTION_ALTERNATE_REVERSE    3
   1.228 +
   1.229 +// See nsStyleDisplay
   1.230 +#define NS_STYLE_ANIMATION_FILL_MODE_NONE         0
   1.231 +#define NS_STYLE_ANIMATION_FILL_MODE_FORWARDS     1
   1.232 +#define NS_STYLE_ANIMATION_FILL_MODE_BACKWARDS    2
   1.233 +#define NS_STYLE_ANIMATION_FILL_MODE_BOTH         3
   1.234 +
   1.235 +// See nsStyleDisplay
   1.236 +#define NS_STYLE_ANIMATION_ITERATION_COUNT_INFINITE 0
   1.237 +
   1.238 +// See nsStyleDisplay
   1.239 +#define NS_STYLE_ANIMATION_PLAY_STATE_RUNNING     0
   1.240 +#define NS_STYLE_ANIMATION_PLAY_STATE_PAUSED      1
   1.241 +
   1.242 +// See nsStyleBackground
   1.243 +#define NS_STYLE_BG_ATTACHMENT_SCROLL     0
   1.244 +#define NS_STYLE_BG_ATTACHMENT_FIXED      1
   1.245 +#define NS_STYLE_BG_ATTACHMENT_LOCAL      2
   1.246 +
   1.247 +// See nsStyleBackground
   1.248 +// Code depends on these constants having the same values as BG_ORIGIN_*
   1.249 +#define NS_STYLE_BG_CLIP_BORDER           0
   1.250 +#define NS_STYLE_BG_CLIP_PADDING          1
   1.251 +#define NS_STYLE_BG_CLIP_CONTENT          2
   1.252 +// A magic value that we use for our "pretend that background-clip is
   1.253 +// 'padding' when we have a solid border" optimization.  This isn't
   1.254 +// actually equal to NS_STYLE_BG_CLIP_PADDING because using that
   1.255 +// causes antialiasing seams between the background and border.  This
   1.256 +// is a backend-only value.
   1.257 +#define NS_STYLE_BG_CLIP_MOZ_ALMOST_PADDING 127
   1.258 +
   1.259 +// See nsStyleBackground
   1.260 +#define NS_STYLE_BG_INLINE_POLICY_EACH_BOX      0
   1.261 +#define NS_STYLE_BG_INLINE_POLICY_CONTINUOUS    1
   1.262 +#define NS_STYLE_BG_INLINE_POLICY_BOUNDING_BOX  2
   1.263 +
   1.264 +// See nsStyleBackground
   1.265 +// Code depends on these constants having the same values as BG_CLIP_*
   1.266 +#define NS_STYLE_BG_ORIGIN_BORDER         0
   1.267 +#define NS_STYLE_BG_ORIGIN_PADDING        1
   1.268 +#define NS_STYLE_BG_ORIGIN_CONTENT        2
   1.269 +
   1.270 +// See nsStyleBackground
   1.271 +// The parser code depends on |ing these values together.
   1.272 +#define NS_STYLE_BG_POSITION_CENTER  (1<<0)
   1.273 +#define NS_STYLE_BG_POSITION_TOP     (1<<1)
   1.274 +#define NS_STYLE_BG_POSITION_BOTTOM  (1<<2)
   1.275 +#define NS_STYLE_BG_POSITION_LEFT    (1<<3)
   1.276 +#define NS_STYLE_BG_POSITION_RIGHT   (1<<4)
   1.277 +
   1.278 +// See nsStyleBackground
   1.279 +#define NS_STYLE_BG_REPEAT_NO_REPEAT                0x00
   1.280 +#define NS_STYLE_BG_REPEAT_REPEAT_X                 0x01
   1.281 +#define NS_STYLE_BG_REPEAT_REPEAT_Y                 0x02
   1.282 +#define NS_STYLE_BG_REPEAT_REPEAT                   0x03
   1.283 +
   1.284 +// See nsStyleBackground
   1.285 +#define NS_STYLE_BG_SIZE_CONTAIN  0
   1.286 +#define NS_STYLE_BG_SIZE_COVER    1
   1.287 +
   1.288 +// See nsStyleTable
   1.289 +#define NS_STYLE_BORDER_COLLAPSE                0
   1.290 +#define NS_STYLE_BORDER_SEPARATE                1
   1.291 +
   1.292 +// Possible enumerated specified values of border-*-width, used by nsCSSMargin
   1.293 +#define NS_STYLE_BORDER_WIDTH_THIN              0
   1.294 +#define NS_STYLE_BORDER_WIDTH_MEDIUM            1
   1.295 +#define NS_STYLE_BORDER_WIDTH_THICK             2
   1.296 +// XXX chopping block #define NS_STYLE_BORDER_WIDTH_LENGTH_VALUE      3
   1.297 +
   1.298 +// See nsStyleBorder mBorderStyle
   1.299 +#define NS_STYLE_BORDER_STYLE_NONE              0
   1.300 +#define NS_STYLE_BORDER_STYLE_GROOVE            1
   1.301 +#define NS_STYLE_BORDER_STYLE_RIDGE             2
   1.302 +#define NS_STYLE_BORDER_STYLE_DOTTED            3
   1.303 +#define NS_STYLE_BORDER_STYLE_DASHED            4
   1.304 +#define NS_STYLE_BORDER_STYLE_SOLID             5
   1.305 +#define NS_STYLE_BORDER_STYLE_DOUBLE            6
   1.306 +#define NS_STYLE_BORDER_STYLE_INSET             7
   1.307 +#define NS_STYLE_BORDER_STYLE_OUTSET            8
   1.308 +#define NS_STYLE_BORDER_STYLE_HIDDEN            9
   1.309 +#define NS_STYLE_BORDER_STYLE_AUTO              10 // for outline-style only
   1.310 +
   1.311 +// See nsStyleBorder mBorderImage
   1.312 +#define NS_STYLE_BORDER_IMAGE_REPEAT_STRETCH    0
   1.313 +#define NS_STYLE_BORDER_IMAGE_REPEAT_REPEAT     1
   1.314 +#define NS_STYLE_BORDER_IMAGE_REPEAT_ROUND      2
   1.315 +
   1.316 +#define NS_STYLE_BORDER_IMAGE_SLICE_NOFILL      0
   1.317 +#define NS_STYLE_BORDER_IMAGE_SLICE_FILL        1
   1.318 +
   1.319 +// See nsStyleDisplay
   1.320 +#define NS_STYLE_CLEAR_NONE                     0
   1.321 +#define NS_STYLE_CLEAR_LEFT                     1
   1.322 +#define NS_STYLE_CLEAR_RIGHT                    2
   1.323 +#define NS_STYLE_CLEAR_BOTH                     3
   1.324 +#define NS_STYLE_CLEAR_LINE                     4
   1.325 +// @note NS_STYLE_CLEAR_LINE can be added to one of the other values in layout
   1.326 +// so it needs to use a bit value that none of the other values can have.
   1.327 +#define NS_STYLE_CLEAR_MAX (NS_STYLE_CLEAR_LINE | NS_STYLE_CLEAR_BOTH)
   1.328 +
   1.329 +// See nsStyleContent
   1.330 +#define NS_STYLE_CONTENT_OPEN_QUOTE             0
   1.331 +#define NS_STYLE_CONTENT_CLOSE_QUOTE            1
   1.332 +#define NS_STYLE_CONTENT_NO_OPEN_QUOTE          2
   1.333 +#define NS_STYLE_CONTENT_NO_CLOSE_QUOTE         3
   1.334 +#define NS_STYLE_CONTENT_ALT_CONTENT            4
   1.335 +
   1.336 +// See nsStyleColor
   1.337 +#define NS_STYLE_CURSOR_AUTO                    1
   1.338 +#define NS_STYLE_CURSOR_CROSSHAIR               2
   1.339 +#define NS_STYLE_CURSOR_DEFAULT                 3    // ie: an arrow
   1.340 +#define NS_STYLE_CURSOR_POINTER                 4    // for links
   1.341 +#define NS_STYLE_CURSOR_MOVE                    5
   1.342 +#define NS_STYLE_CURSOR_E_RESIZE                6
   1.343 +#define NS_STYLE_CURSOR_NE_RESIZE               7
   1.344 +#define NS_STYLE_CURSOR_NW_RESIZE               8
   1.345 +#define NS_STYLE_CURSOR_N_RESIZE                9
   1.346 +#define NS_STYLE_CURSOR_SE_RESIZE               10
   1.347 +#define NS_STYLE_CURSOR_SW_RESIZE               11
   1.348 +#define NS_STYLE_CURSOR_S_RESIZE                12
   1.349 +#define NS_STYLE_CURSOR_W_RESIZE                13
   1.350 +#define NS_STYLE_CURSOR_TEXT                    14   // ie: i-beam
   1.351 +#define NS_STYLE_CURSOR_WAIT                    15
   1.352 +#define NS_STYLE_CURSOR_HELP                    16
   1.353 +#define NS_STYLE_CURSOR_COPY                    17   // CSS3
   1.354 +#define NS_STYLE_CURSOR_ALIAS                   18
   1.355 +#define NS_STYLE_CURSOR_CONTEXT_MENU            19
   1.356 +#define NS_STYLE_CURSOR_CELL                    20
   1.357 +#define NS_STYLE_CURSOR_GRAB                    21
   1.358 +#define NS_STYLE_CURSOR_GRABBING                22
   1.359 +#define NS_STYLE_CURSOR_SPINNING                23
   1.360 +#define NS_STYLE_CURSOR_ZOOM_IN                 24
   1.361 +#define NS_STYLE_CURSOR_ZOOM_OUT                25
   1.362 +#define NS_STYLE_CURSOR_NOT_ALLOWED             26
   1.363 +#define NS_STYLE_CURSOR_COL_RESIZE              27
   1.364 +#define NS_STYLE_CURSOR_ROW_RESIZE              28
   1.365 +#define NS_STYLE_CURSOR_NO_DROP                 29
   1.366 +#define NS_STYLE_CURSOR_VERTICAL_TEXT           30
   1.367 +#define NS_STYLE_CURSOR_ALL_SCROLL              31
   1.368 +#define NS_STYLE_CURSOR_NESW_RESIZE             32
   1.369 +#define NS_STYLE_CURSOR_NWSE_RESIZE             33
   1.370 +#define NS_STYLE_CURSOR_NS_RESIZE               34
   1.371 +#define NS_STYLE_CURSOR_EW_RESIZE               35
   1.372 +#define NS_STYLE_CURSOR_NONE                    36
   1.373 +
   1.374 +// See nsStyleVisibility
   1.375 +#define NS_STYLE_DIRECTION_LTR                  0
   1.376 +#define NS_STYLE_DIRECTION_RTL                  1
   1.377 +#define NS_STYLE_DIRECTION_INHERIT              2
   1.378 +
   1.379 +// See nsStyleVisibility
   1.380 +#define NS_STYLE_WRITING_MODE_HORIZONTAL_TB     0
   1.381 +#define NS_STYLE_WRITING_MODE_VERTICAL_LR       1
   1.382 +#define NS_STYLE_WRITING_MODE_VERTICAL_RL       2
   1.383 +
   1.384 +// See nsStyleDisplay
   1.385 +#define NS_STYLE_DISPLAY_NONE                   0
   1.386 +#define NS_STYLE_DISPLAY_BLOCK                  1
   1.387 +#define NS_STYLE_DISPLAY_INLINE                 2
   1.388 +#define NS_STYLE_DISPLAY_INLINE_BLOCK           3
   1.389 +#define NS_STYLE_DISPLAY_LIST_ITEM              4
   1.390 +#define NS_STYLE_DISPLAY_TABLE                  8
   1.391 +#define NS_STYLE_DISPLAY_INLINE_TABLE           9
   1.392 +#define NS_STYLE_DISPLAY_TABLE_ROW_GROUP        10
   1.393 +#define NS_STYLE_DISPLAY_TABLE_COLUMN           11
   1.394 +#define NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP     12
   1.395 +#define NS_STYLE_DISPLAY_TABLE_HEADER_GROUP     13
   1.396 +#define NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP     14
   1.397 +#define NS_STYLE_DISPLAY_TABLE_ROW              15
   1.398 +#define NS_STYLE_DISPLAY_TABLE_CELL             16
   1.399 +#define NS_STYLE_DISPLAY_TABLE_CAPTION          17
   1.400 +#define NS_STYLE_DISPLAY_BOX                    18
   1.401 +#define NS_STYLE_DISPLAY_INLINE_BOX             19
   1.402 +#ifdef MOZ_XUL
   1.403 +#define NS_STYLE_DISPLAY_XUL_GRID               20
   1.404 +#define NS_STYLE_DISPLAY_INLINE_XUL_GRID        21
   1.405 +#define NS_STYLE_DISPLAY_XUL_GRID_GROUP         22
   1.406 +#define NS_STYLE_DISPLAY_XUL_GRID_LINE          23
   1.407 +#define NS_STYLE_DISPLAY_STACK                  24
   1.408 +#define NS_STYLE_DISPLAY_INLINE_STACK           25
   1.409 +#define NS_STYLE_DISPLAY_DECK                   26
   1.410 +#define NS_STYLE_DISPLAY_POPUP                  27
   1.411 +#define NS_STYLE_DISPLAY_GROUPBOX               28
   1.412 +#endif
   1.413 +#define NS_STYLE_DISPLAY_FLEX                   29
   1.414 +#define NS_STYLE_DISPLAY_INLINE_FLEX            30
   1.415 +#define NS_STYLE_DISPLAY_GRID                   31
   1.416 +#define NS_STYLE_DISPLAY_INLINE_GRID            32
   1.417 +
   1.418 +// See nsStylePosition
   1.419 +#define NS_STYLE_ALIGN_CONTENT_FLEX_START       0
   1.420 +#define NS_STYLE_ALIGN_CONTENT_FLEX_END         1
   1.421 +#define NS_STYLE_ALIGN_CONTENT_CENTER           2
   1.422 +#define NS_STYLE_ALIGN_CONTENT_SPACE_BETWEEN    3
   1.423 +#define NS_STYLE_ALIGN_CONTENT_SPACE_AROUND     4
   1.424 +#define NS_STYLE_ALIGN_CONTENT_STRETCH          5
   1.425 +
   1.426 +// See nsStylePosition
   1.427 +#define NS_STYLE_ALIGN_ITEMS_FLEX_START         0
   1.428 +#define NS_STYLE_ALIGN_ITEMS_FLEX_END           1
   1.429 +#define NS_STYLE_ALIGN_ITEMS_CENTER             2
   1.430 +#define NS_STYLE_ALIGN_ITEMS_BASELINE           3
   1.431 +#define NS_STYLE_ALIGN_ITEMS_STRETCH            4
   1.432 +
   1.433 +// For convenience/clarity (since we use this default value in multiple places)
   1.434 +#define NS_STYLE_ALIGN_ITEMS_INITIAL_VALUE      NS_STYLE_ALIGN_ITEMS_STRETCH
   1.435 +
   1.436 +// The "align-self" property accepts all of the normal "align-items" values
   1.437 +// (above) plus a special 'auto' value that computes to the parent's
   1.438 +// "align-items" value. Our computed style code internally represents 'auto'
   1.439 +// with this enum until we actually evaluate it:
   1.440 +#define NS_STYLE_ALIGN_SELF_AUTO                5
   1.441 +
   1.442 +// See nsStylePosition
   1.443 +#define NS_STYLE_FLEX_DIRECTION_ROW             0
   1.444 +#define NS_STYLE_FLEX_DIRECTION_ROW_REVERSE     1
   1.445 +#define NS_STYLE_FLEX_DIRECTION_COLUMN          2
   1.446 +#define NS_STYLE_FLEX_DIRECTION_COLUMN_REVERSE  3
   1.447 +
   1.448 +// See nsStylePosition
   1.449 +#define NS_STYLE_FLEX_WRAP_NOWRAP               0
   1.450 +#define NS_STYLE_FLEX_WRAP_WRAP                 1
   1.451 +#define NS_STYLE_FLEX_WRAP_WRAP_REVERSE         2
   1.452 +
   1.453 +// See nsStylePosition
   1.454 +// NOTE: This is the initial value of the integer-valued 'order' property
   1.455 +// (rather than an internal numerical representation of some keyword).
   1.456 +#define NS_STYLE_ORDER_INITIAL                  0
   1.457 +
   1.458 +// See nsStylePosition
   1.459 +#define NS_STYLE_JUSTIFY_CONTENT_FLEX_START     0
   1.460 +#define NS_STYLE_JUSTIFY_CONTENT_FLEX_END       1
   1.461 +#define NS_STYLE_JUSTIFY_CONTENT_CENTER         2
   1.462 +#define NS_STYLE_JUSTIFY_CONTENT_SPACE_BETWEEN  3
   1.463 +#define NS_STYLE_JUSTIFY_CONTENT_SPACE_AROUND   4
   1.464 +
   1.465 +// See nsStyleDisplay
   1.466 +#define NS_STYLE_FLOAT_NONE                     0
   1.467 +#define NS_STYLE_FLOAT_LEFT                     1
   1.468 +#define NS_STYLE_FLOAT_RIGHT                    2
   1.469 +
   1.470 +// See nsStyleFilter
   1.471 +#define NS_STYLE_FILTER_NONE                    0
   1.472 +#define NS_STYLE_FILTER_URL                     1
   1.473 +#define NS_STYLE_FILTER_BLUR                    2
   1.474 +#define NS_STYLE_FILTER_BRIGHTNESS              3
   1.475 +#define NS_STYLE_FILTER_CONTRAST                4
   1.476 +#define NS_STYLE_FILTER_GRAYSCALE               5
   1.477 +#define NS_STYLE_FILTER_INVERT                  6
   1.478 +#define NS_STYLE_FILTER_OPACITY                 7
   1.479 +#define NS_STYLE_FILTER_SATURATE                8
   1.480 +#define NS_STYLE_FILTER_SEPIA                   9
   1.481 +#define NS_STYLE_FILTER_HUE_ROTATE              10
   1.482 +#define NS_STYLE_FILTER_DROP_SHADOW             11
   1.483 +
   1.484 +// See nsStyleFont
   1.485 +// We should eventually stop using the NS_STYLE_* variants here.
   1.486 +#define NS_STYLE_FONT_STYLE_NORMAL              NS_FONT_STYLE_NORMAL
   1.487 +#define NS_STYLE_FONT_STYLE_ITALIC              NS_FONT_STYLE_ITALIC
   1.488 +#define NS_STYLE_FONT_STYLE_OBLIQUE             NS_FONT_STYLE_OBLIQUE
   1.489 +
   1.490 +// See nsStyleFont
   1.491 +// We should eventually stop using the NS_STYLE_* variants here.
   1.492 +#define NS_STYLE_FONT_VARIANT_NORMAL            NS_FONT_VARIANT_NORMAL
   1.493 +#define NS_STYLE_FONT_VARIANT_SMALL_CAPS        NS_FONT_VARIANT_SMALL_CAPS
   1.494 +
   1.495 +// See nsStyleFont
   1.496 +// We should eventually stop using the NS_STYLE_* variants here.
   1.497 +#define NS_STYLE_FONT_WEIGHT_NORMAL             NS_FONT_WEIGHT_NORMAL
   1.498 +#define NS_STYLE_FONT_WEIGHT_BOLD               NS_FONT_WEIGHT_BOLD
   1.499 +// The constants below appear only in style sheets and not computed style.
   1.500 +#define NS_STYLE_FONT_WEIGHT_BOLDER             (-1)
   1.501 +#define NS_STYLE_FONT_WEIGHT_LIGHTER            (-2)
   1.502 +
   1.503 +// See nsStyleFont
   1.504 +#define NS_STYLE_FONT_SIZE_XXSMALL              0
   1.505 +#define NS_STYLE_FONT_SIZE_XSMALL               1
   1.506 +#define NS_STYLE_FONT_SIZE_SMALL                2
   1.507 +#define NS_STYLE_FONT_SIZE_MEDIUM               3
   1.508 +#define NS_STYLE_FONT_SIZE_LARGE                4
   1.509 +#define NS_STYLE_FONT_SIZE_XLARGE               5
   1.510 +#define NS_STYLE_FONT_SIZE_XXLARGE              6
   1.511 +#define NS_STYLE_FONT_SIZE_XXXLARGE             7  // Only used by <font size="7">. Not specifiable in CSS.
   1.512 +#define NS_STYLE_FONT_SIZE_LARGER               8
   1.513 +#define NS_STYLE_FONT_SIZE_SMALLER              9
   1.514 +
   1.515 +// See nsStyleFont
   1.516 +// We should eventually stop using the NS_STYLE_* variants here.
   1.517 +#define NS_STYLE_FONT_STRETCH_ULTRA_CONDENSED   NS_FONT_STRETCH_ULTRA_CONDENSED
   1.518 +#define NS_STYLE_FONT_STRETCH_EXTRA_CONDENSED   NS_FONT_STRETCH_EXTRA_CONDENSED
   1.519 +#define NS_STYLE_FONT_STRETCH_CONDENSED         NS_FONT_STRETCH_CONDENSED
   1.520 +#define NS_STYLE_FONT_STRETCH_SEMI_CONDENSED    NS_FONT_STRETCH_SEMI_CONDENSED
   1.521 +#define NS_STYLE_FONT_STRETCH_NORMAL            NS_FONT_STRETCH_NORMAL
   1.522 +#define NS_STYLE_FONT_STRETCH_SEMI_EXPANDED     NS_FONT_STRETCH_SEMI_EXPANDED
   1.523 +#define NS_STYLE_FONT_STRETCH_EXPANDED          NS_FONT_STRETCH_EXPANDED
   1.524 +#define NS_STYLE_FONT_STRETCH_EXTRA_EXPANDED    NS_FONT_STRETCH_EXTRA_EXPANDED
   1.525 +#define NS_STYLE_FONT_STRETCH_ULTRA_EXPANDED    NS_FONT_STRETCH_ULTRA_EXPANDED
   1.526 +
   1.527 +// See nsStyleFont - system fonts
   1.528 +#define NS_STYLE_FONT_CAPTION                   1   // css2
   1.529 +#define NS_STYLE_FONT_ICON                      2
   1.530 +#define NS_STYLE_FONT_MENU                      3
   1.531 +#define NS_STYLE_FONT_MESSAGE_BOX               4
   1.532 +#define NS_STYLE_FONT_SMALL_CAPTION             5
   1.533 +#define NS_STYLE_FONT_STATUS_BAR                6
   1.534 +#define NS_STYLE_FONT_WINDOW                    7   // css3
   1.535 +#define NS_STYLE_FONT_DOCUMENT                  8
   1.536 +#define NS_STYLE_FONT_WORKSPACE                 9
   1.537 +#define NS_STYLE_FONT_DESKTOP                   10
   1.538 +#define NS_STYLE_FONT_INFO                      11
   1.539 +#define NS_STYLE_FONT_DIALOG                    12
   1.540 +#define NS_STYLE_FONT_BUTTON                    13
   1.541 +#define NS_STYLE_FONT_PULL_DOWN_MENU            14
   1.542 +#define NS_STYLE_FONT_LIST                      15
   1.543 +#define NS_STYLE_FONT_FIELD                     16
   1.544 +
   1.545 +// grid-auto-flow keywords
   1.546 +#define NS_STYLE_GRID_AUTO_FLOW_NONE            (1 << 0)
   1.547 +#define NS_STYLE_GRID_AUTO_FLOW_COLUMN          (1 << 1)
   1.548 +#define NS_STYLE_GRID_AUTO_FLOW_ROW             (1 << 2)
   1.549 +#define NS_STYLE_GRID_AUTO_FLOW_DENSE           (1 << 3)
   1.550 +
   1.551 +// 'subgrid' keyword in grid-template-{columns,rows}
   1.552 +#define NS_STYLE_GRID_TEMPLATE_SUBGRID          0
   1.553 +
   1.554 +// CSS Grid <track-breadth> keywords
   1.555 +// Should not overlap with NS_STYLE_GRID_TEMPLATE_SUBGRID
   1.556 +#define NS_STYLE_GRID_TRACK_BREADTH_MAX_CONTENT 1
   1.557 +#define NS_STYLE_GRID_TRACK_BREADTH_MIN_CONTENT 2
   1.558 +
   1.559 +// defaults per MathML spec
   1.560 +#define NS_MATHML_DEFAULT_SCRIPT_SIZE_MULTIPLIER 0.71f
   1.561 +#define NS_MATHML_DEFAULT_SCRIPT_MIN_SIZE_PT 8
   1.562 +
   1.563 +// See nsStyleFont
   1.564 +#define NS_MATHML_MATHVARIANT_NONE                     0
   1.565 +#define NS_MATHML_MATHVARIANT_NORMAL                   1
   1.566 +#define NS_MATHML_MATHVARIANT_BOLD                     2
   1.567 +#define NS_MATHML_MATHVARIANT_ITALIC                   3
   1.568 +#define NS_MATHML_MATHVARIANT_BOLD_ITALIC              4
   1.569 +#define NS_MATHML_MATHVARIANT_SCRIPT                   5
   1.570 +#define NS_MATHML_MATHVARIANT_BOLD_SCRIPT              6
   1.571 +#define NS_MATHML_MATHVARIANT_FRAKTUR                  7
   1.572 +#define NS_MATHML_MATHVARIANT_DOUBLE_STRUCK            8
   1.573 +#define NS_MATHML_MATHVARIANT_BOLD_FRAKTUR             9
   1.574 +#define NS_MATHML_MATHVARIANT_SANS_SERIF              10
   1.575 +#define NS_MATHML_MATHVARIANT_BOLD_SANS_SERIF         11
   1.576 +#define NS_MATHML_MATHVARIANT_SANS_SERIF_ITALIC       12
   1.577 +#define NS_MATHML_MATHVARIANT_SANS_SERIF_BOLD_ITALIC  13
   1.578 +#define NS_MATHML_MATHVARIANT_MONOSPACE               14
   1.579 +#define NS_MATHML_MATHVARIANT_INITIAL                 15
   1.580 +#define NS_MATHML_MATHVARIANT_TAILED                  16
   1.581 +#define NS_MATHML_MATHVARIANT_LOOPED                  17
   1.582 +#define NS_MATHML_MATHVARIANT_STRETCHED               18
   1.583 +
   1.584 +// See nsStyleFont::mMathDisplay
   1.585 +#define NS_MATHML_DISPLAYSTYLE_INLINE           0
   1.586 +#define NS_MATHML_DISPLAYSTYLE_BLOCK            1
   1.587 +
   1.588 +// See nsStylePosition::mWidth, mMinWidth, mMaxWidth
   1.589 +#define NS_STYLE_WIDTH_MAX_CONTENT              0
   1.590 +#define NS_STYLE_WIDTH_MIN_CONTENT              1
   1.591 +#define NS_STYLE_WIDTH_FIT_CONTENT              2
   1.592 +#define NS_STYLE_WIDTH_AVAILABLE                3
   1.593 +
   1.594 +// See nsStyleDisplay.mPosition
   1.595 +#define NS_STYLE_POSITION_STATIC                0
   1.596 +#define NS_STYLE_POSITION_RELATIVE              1
   1.597 +#define NS_STYLE_POSITION_ABSOLUTE              2
   1.598 +#define NS_STYLE_POSITION_FIXED                 3
   1.599 +#define NS_STYLE_POSITION_STICKY                4
   1.600 +
   1.601 +// See nsStyleDisplay.mClip
   1.602 +#define NS_STYLE_CLIP_AUTO                      0x00
   1.603 +#define NS_STYLE_CLIP_RECT                      0x01
   1.604 +#define NS_STYLE_CLIP_TYPE_MASK                 0x0F
   1.605 +#define NS_STYLE_CLIP_LEFT_AUTO                 0x10
   1.606 +#define NS_STYLE_CLIP_TOP_AUTO                  0x20
   1.607 +#define NS_STYLE_CLIP_RIGHT_AUTO                0x40
   1.608 +#define NS_STYLE_CLIP_BOTTOM_AUTO               0x80
   1.609 +
   1.610 +// FRAME/FRAMESET/IFRAME specific values including backward compatibility. Boolean values with
   1.611 +// the same meaning (e.g. 1 & yes) may need to be distinguished for correct mode processing
   1.612 +#define NS_STYLE_FRAME_YES                      0
   1.613 +#define NS_STYLE_FRAME_NO                       1
   1.614 +#define NS_STYLE_FRAME_0                        2
   1.615 +#define NS_STYLE_FRAME_1                        3
   1.616 +#define NS_STYLE_FRAME_ON                       4
   1.617 +#define NS_STYLE_FRAME_OFF                      5
   1.618 +#define NS_STYLE_FRAME_AUTO                     6
   1.619 +#define NS_STYLE_FRAME_SCROLL                   7
   1.620 +#define NS_STYLE_FRAME_NOSCROLL                 8
   1.621 +
   1.622 +// See nsStyleDisplay.mOverflow
   1.623 +#define NS_STYLE_OVERFLOW_VISIBLE               0
   1.624 +#define NS_STYLE_OVERFLOW_HIDDEN                1
   1.625 +#define NS_STYLE_OVERFLOW_SCROLL                2
   1.626 +#define NS_STYLE_OVERFLOW_AUTO                  3
   1.627 +#define NS_STYLE_OVERFLOW_CLIP                  4
   1.628 +#define NS_STYLE_OVERFLOW_SCROLLBARS_HORIZONTAL 5
   1.629 +#define NS_STYLE_OVERFLOW_SCROLLBARS_VERTICAL   6
   1.630 +
   1.631 +// See nsStyleDisplay.mOverflowClipBox
   1.632 +#define NS_STYLE_OVERFLOW_CLIP_BOX_PADDING_BOX  0
   1.633 +#define NS_STYLE_OVERFLOW_CLIP_BOX_CONTENT_BOX  1
   1.634 +
   1.635 +// See nsStyleList
   1.636 +#define NS_STYLE_LIST_STYLE_NONE                  0
   1.637 +#define NS_STYLE_LIST_STYLE_DISC                  1
   1.638 +#define NS_STYLE_LIST_STYLE_CIRCLE                2
   1.639 +#define NS_STYLE_LIST_STYLE_SQUARE                3
   1.640 +#define NS_STYLE_LIST_STYLE_DECIMAL               4
   1.641 +#define NS_STYLE_LIST_STYLE_DECIMAL_LEADING_ZERO  5
   1.642 +#define NS_STYLE_LIST_STYLE_LOWER_ROMAN           6
   1.643 +#define NS_STYLE_LIST_STYLE_UPPER_ROMAN           7
   1.644 +#define NS_STYLE_LIST_STYLE_LOWER_GREEK           8
   1.645 +#define NS_STYLE_LIST_STYLE_LOWER_ALPHA           9
   1.646 +#define NS_STYLE_LIST_STYLE_LOWER_LATIN           9   // == ALPHA
   1.647 +#define NS_STYLE_LIST_STYLE_UPPER_ALPHA           10
   1.648 +#define NS_STYLE_LIST_STYLE_UPPER_LATIN           10  // == ALPHA
   1.649 +#define NS_STYLE_LIST_STYLE_HEBREW                11
   1.650 +#define NS_STYLE_LIST_STYLE_ARMENIAN              12
   1.651 +#define NS_STYLE_LIST_STYLE_GEORGIAN              13
   1.652 +#define NS_STYLE_LIST_STYLE_CJK_DECIMAL           14
   1.653 +#define NS_STYLE_LIST_STYLE_CJK_IDEOGRAPHIC       15
   1.654 +#define NS_STYLE_LIST_STYLE_HIRAGANA              16
   1.655 +#define NS_STYLE_LIST_STYLE_KATAKANA              17
   1.656 +#define NS_STYLE_LIST_STYLE_HIRAGANA_IROHA        18
   1.657 +#define NS_STYLE_LIST_STYLE_KATAKANA_IROHA        19
   1.658 +#define NS_STYLE_LIST_STYLE_JAPANESE_INFORMAL     20
   1.659 +#define NS_STYLE_LIST_STYLE_JAPANESE_FORMAL       21
   1.660 +#define NS_STYLE_LIST_STYLE_KOREAN_HANGUL_FORMAL  22
   1.661 +#define NS_STYLE_LIST_STYLE_KOREAN_HANJA_INFORMAL 23
   1.662 +#define NS_STYLE_LIST_STYLE_KOREAN_HANJA_FORMAL   24
   1.663 +#define NS_STYLE_LIST_STYLE_SIMP_CHINESE_INFORMAL 25
   1.664 +#define NS_STYLE_LIST_STYLE_SIMP_CHINESE_FORMAL   26
   1.665 +#define NS_STYLE_LIST_STYLE_TRAD_CHINESE_INFORMAL 27
   1.666 +#define NS_STYLE_LIST_STYLE_TRAD_CHINESE_FORMAL   28
   1.667 +#define NS_STYLE_LIST_STYLE_MOZ_CJK_HEAVENLY_STEM     124
   1.668 +#define NS_STYLE_LIST_STYLE_MOZ_CJK_EARTHLY_BRANCH    125
   1.669 +#define NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_INFORMAL 126
   1.670 +#define NS_STYLE_LIST_STYLE_MOZ_TRAD_CHINESE_FORMAL   127
   1.671 +#define NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_INFORMAL 128
   1.672 +#define NS_STYLE_LIST_STYLE_MOZ_SIMP_CHINESE_FORMAL   129
   1.673 +#define NS_STYLE_LIST_STYLE_MOZ_JAPANESE_INFORMAL     130
   1.674 +#define NS_STYLE_LIST_STYLE_MOZ_JAPANESE_FORMAL       131
   1.675 +#define NS_STYLE_LIST_STYLE_MOZ_ARABIC_INDIC          132
   1.676 +#define NS_STYLE_LIST_STYLE_MOZ_PERSIAN               133
   1.677 +#define NS_STYLE_LIST_STYLE_MOZ_URDU                  134
   1.678 +#define NS_STYLE_LIST_STYLE_MOZ_DEVANAGARI            135
   1.679 +#define NS_STYLE_LIST_STYLE_MOZ_GURMUKHI              136
   1.680 +#define NS_STYLE_LIST_STYLE_MOZ_GUJARATI              137
   1.681 +#define NS_STYLE_LIST_STYLE_MOZ_ORIYA                 138
   1.682 +#define NS_STYLE_LIST_STYLE_MOZ_KANNADA               139
   1.683 +#define NS_STYLE_LIST_STYLE_MOZ_MALAYALAM             140
   1.684 +#define NS_STYLE_LIST_STYLE_MOZ_BENGALI               141
   1.685 +#define NS_STYLE_LIST_STYLE_MOZ_TAMIL                 142
   1.686 +#define NS_STYLE_LIST_STYLE_MOZ_TELUGU                143
   1.687 +#define NS_STYLE_LIST_STYLE_MOZ_THAI                  144
   1.688 +#define NS_STYLE_LIST_STYLE_MOZ_LAO                   145
   1.689 +#define NS_STYLE_LIST_STYLE_MOZ_MYANMAR               146
   1.690 +#define NS_STYLE_LIST_STYLE_MOZ_KHMER                 147
   1.691 +#define NS_STYLE_LIST_STYLE_MOZ_HANGUL                148
   1.692 +#define NS_STYLE_LIST_STYLE_MOZ_HANGUL_CONSONANT      149
   1.693 +#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME     150
   1.694 +#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_NUMERIC      151
   1.695 +#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_AM  152
   1.696 +#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ER  153
   1.697 +#define NS_STYLE_LIST_STYLE_MOZ_ETHIOPIC_HALEHAME_TI_ET  154
   1.698 +
   1.699 +// See nsStyleList
   1.700 +#define NS_STYLE_LIST_STYLE_POSITION_INSIDE     0
   1.701 +#define NS_STYLE_LIST_STYLE_POSITION_OUTSIDE    1
   1.702 +
   1.703 +// See nsStyleMargin
   1.704 +#define NS_STYLE_MARGIN_SIZE_AUTO               0
   1.705 +
   1.706 +// See nsStyleVisibility
   1.707 +#define NS_STYLE_POINTER_EVENTS_NONE            0
   1.708 +#define NS_STYLE_POINTER_EVENTS_VISIBLEPAINTED  1
   1.709 +#define NS_STYLE_POINTER_EVENTS_VISIBLEFILL     2
   1.710 +#define NS_STYLE_POINTER_EVENTS_VISIBLESTROKE   3
   1.711 +#define NS_STYLE_POINTER_EVENTS_VISIBLE         4
   1.712 +#define NS_STYLE_POINTER_EVENTS_PAINTED         5
   1.713 +#define NS_STYLE_POINTER_EVENTS_FILL            6
   1.714 +#define NS_STYLE_POINTER_EVENTS_STROKE          7
   1.715 +#define NS_STYLE_POINTER_EVENTS_ALL             8
   1.716 +#define NS_STYLE_POINTER_EVENTS_AUTO            9
   1.717 +
   1.718 +// See nsStyleVisibility.mImageOrientationType
   1.719 +#define NS_STYLE_IMAGE_ORIENTATION_FLIP         0
   1.720 +#define NS_STYLE_IMAGE_ORIENTATION_FROM_IMAGE   1
   1.721 +
   1.722 +// See nsStyleDisplay
   1.723 +#define NS_STYLE_RESIZE_NONE                    0
   1.724 +#define NS_STYLE_RESIZE_BOTH                    1
   1.725 +#define NS_STYLE_RESIZE_HORIZONTAL              2
   1.726 +#define NS_STYLE_RESIZE_VERTICAL                3
   1.727 +
   1.728 +// See nsStyleText
   1.729 +#define NS_STYLE_TEXT_ALIGN_DEFAULT               0
   1.730 +#define NS_STYLE_TEXT_ALIGN_LEFT                  1
   1.731 +#define NS_STYLE_TEXT_ALIGN_RIGHT                 2
   1.732 +#define NS_STYLE_TEXT_ALIGN_CENTER                3
   1.733 +#define NS_STYLE_TEXT_ALIGN_JUSTIFY               4
   1.734 +#define NS_STYLE_TEXT_ALIGN_CHAR                  5   //align based on a certain character, for table cell
   1.735 +#define NS_STYLE_TEXT_ALIGN_END                   6
   1.736 +#define NS_STYLE_TEXT_ALIGN_AUTO                  7
   1.737 +#define NS_STYLE_TEXT_ALIGN_MOZ_CENTER            8
   1.738 +#define NS_STYLE_TEXT_ALIGN_MOZ_RIGHT             9
   1.739 +#define NS_STYLE_TEXT_ALIGN_MOZ_LEFT             10
   1.740 +// NS_STYLE_TEXT_ALIGN_MOZ_CENTER_OR_INHERIT is only used in data structs; it
   1.741 +// is never present in stylesheets or computed data.
   1.742 +#define NS_STYLE_TEXT_ALIGN_MOZ_CENTER_OR_INHERIT 11
   1.743 +#define NS_STYLE_TEXT_ALIGN_TRUE                  12
   1.744 +// Note: make sure that the largest NS_STYLE_TEXT_ALIGN_* value is smaller than
   1.745 +// the smallest NS_STYLE_VERTICAL_ALIGN_* value below!
   1.746 +
   1.747 +// See nsStyleText, nsStyleFont
   1.748 +#define NS_STYLE_TEXT_DECORATION_LINE_NONE         0
   1.749 +#define NS_STYLE_TEXT_DECORATION_LINE_UNDERLINE    NS_FONT_DECORATION_UNDERLINE
   1.750 +#define NS_STYLE_TEXT_DECORATION_LINE_OVERLINE     NS_FONT_DECORATION_OVERLINE
   1.751 +#define NS_STYLE_TEXT_DECORATION_LINE_LINE_THROUGH NS_FONT_DECORATION_LINE_THROUGH
   1.752 +#define NS_STYLE_TEXT_DECORATION_LINE_BLINK        0x08
   1.753 +#define NS_STYLE_TEXT_DECORATION_LINE_PREF_ANCHORS 0x10
   1.754 +// OVERRIDE_ALL does not occur in stylesheets; it only comes from HTML
   1.755 +// attribute mapping (and thus appears in computed data)
   1.756 +#define NS_STYLE_TEXT_DECORATION_LINE_OVERRIDE_ALL 0x20
   1.757 +#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)
   1.758 +
   1.759 +// See nsStyleText
   1.760 +#define NS_STYLE_TEXT_DECORATION_STYLE_NONE     0 // not in CSS spec, mapped to -moz-none
   1.761 +#define NS_STYLE_TEXT_DECORATION_STYLE_DOTTED   1
   1.762 +#define NS_STYLE_TEXT_DECORATION_STYLE_DASHED   2
   1.763 +#define NS_STYLE_TEXT_DECORATION_STYLE_SOLID    3
   1.764 +#define NS_STYLE_TEXT_DECORATION_STYLE_DOUBLE   4
   1.765 +#define NS_STYLE_TEXT_DECORATION_STYLE_WAVY     5
   1.766 +#define NS_STYLE_TEXT_DECORATION_STYLE_MAX      NS_STYLE_TEXT_DECORATION_STYLE_WAVY
   1.767 +
   1.768 +// See nsStyleTextOverflow
   1.769 +#define NS_STYLE_TEXT_OVERFLOW_CLIP     0
   1.770 +#define NS_STYLE_TEXT_OVERFLOW_ELLIPSIS 1
   1.771 +#define NS_STYLE_TEXT_OVERFLOW_STRING   2
   1.772 +
   1.773 +// See nsStyleText
   1.774 +#define NS_STYLE_TEXT_TRANSFORM_NONE            0
   1.775 +#define NS_STYLE_TEXT_TRANSFORM_CAPITALIZE      1
   1.776 +#define NS_STYLE_TEXT_TRANSFORM_LOWERCASE       2
   1.777 +#define NS_STYLE_TEXT_TRANSFORM_UPPERCASE       3
   1.778 +#define NS_STYLE_TEXT_TRANSFORM_FULLWIDTH       4
   1.779 +
   1.780 +// See nsStyleDisplay
   1.781 +#define NS_STYLE_TOUCH_ACTION_NONE            (1 << 0)
   1.782 +#define NS_STYLE_TOUCH_ACTION_AUTO            (1 << 1)
   1.783 +#define NS_STYLE_TOUCH_ACTION_PAN_X           (1 << 2)
   1.784 +#define NS_STYLE_TOUCH_ACTION_PAN_Y           (1 << 3)
   1.785 +#define NS_STYLE_TOUCH_ACTION_MANIPULATION    (1 << 4)
   1.786 +
   1.787 +// See nsStyleDisplay
   1.788 +#define NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE         0
   1.789 +#define NS_STYLE_TRANSITION_TIMING_FUNCTION_LINEAR       1
   1.790 +#define NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE_IN      2
   1.791 +#define NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE_OUT     3
   1.792 +#define NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE_IN_OUT  4
   1.793 +#define NS_STYLE_TRANSITION_TIMING_FUNCTION_STEP_START   5
   1.794 +#define NS_STYLE_TRANSITION_TIMING_FUNCTION_STEP_END     6
   1.795 +
   1.796 +// See nsStyleText
   1.797 +// Note: these values pickup after the text-align values because there
   1.798 +// are a few html cases where an object can have both types of
   1.799 +// alignment applied with a single attribute
   1.800 +#define NS_STYLE_VERTICAL_ALIGN_BASELINE             13
   1.801 +#define NS_STYLE_VERTICAL_ALIGN_SUB                  14
   1.802 +#define NS_STYLE_VERTICAL_ALIGN_SUPER                15
   1.803 +#define NS_STYLE_VERTICAL_ALIGN_TOP                  16
   1.804 +#define NS_STYLE_VERTICAL_ALIGN_TEXT_TOP             17
   1.805 +#define NS_STYLE_VERTICAL_ALIGN_MIDDLE               18
   1.806 +#define NS_STYLE_VERTICAL_ALIGN_TEXT_BOTTOM          19
   1.807 +#define NS_STYLE_VERTICAL_ALIGN_BOTTOM               20
   1.808 +#define NS_STYLE_VERTICAL_ALIGN_MIDDLE_WITH_BASELINE 21
   1.809 +
   1.810 +// See nsStyleVisibility
   1.811 +#define NS_STYLE_VISIBILITY_HIDDEN              0
   1.812 +#define NS_STYLE_VISIBILITY_VISIBLE             1
   1.813 +#define NS_STYLE_VISIBILITY_COLLAPSE            2
   1.814 +
   1.815 +// See nsStyleText
   1.816 +#define NS_STYLE_TABSIZE_INITIAL                8
   1.817 +
   1.818 +// See nsStyleText
   1.819 +#define NS_STYLE_WHITESPACE_NORMAL               0
   1.820 +#define NS_STYLE_WHITESPACE_PRE                  1
   1.821 +#define NS_STYLE_WHITESPACE_NOWRAP               2
   1.822 +#define NS_STYLE_WHITESPACE_PRE_WRAP             3
   1.823 +#define NS_STYLE_WHITESPACE_PRE_LINE             4
   1.824 +#define NS_STYLE_WHITESPACE_PRE_DISCARD_NEWLINES 5
   1.825 +
   1.826 +// See nsStyleText
   1.827 +#define NS_STYLE_WORDBREAK_NORMAL               0
   1.828 +#define NS_STYLE_WORDBREAK_BREAK_ALL            1
   1.829 +#define NS_STYLE_WORDBREAK_KEEP_ALL             2
   1.830 +
   1.831 +// See nsStyleText
   1.832 +#define NS_STYLE_WORDWRAP_NORMAL                0
   1.833 +#define NS_STYLE_WORDWRAP_BREAK_WORD            1
   1.834 +
   1.835 +// See nsStyleText
   1.836 +#define NS_STYLE_HYPHENS_NONE                   0
   1.837 +#define NS_STYLE_HYPHENS_MANUAL                 1
   1.838 +#define NS_STYLE_HYPHENS_AUTO                   2
   1.839 +
   1.840 +// See nsStyleText
   1.841 +#define NS_STYLE_TEXT_SIZE_ADJUST_NONE          0
   1.842 +#define NS_STYLE_TEXT_SIZE_ADJUST_AUTO          1
   1.843 +
   1.844 +// See nsStyleText
   1.845 +#define NS_STYLE_TEXT_ORIENTATION_AUTO          0
   1.846 +#define NS_STYLE_TEXT_ORIENTATION_UPRIGHT       1
   1.847 +#define NS_STYLE_TEXT_ORIENTATION_SIDEWAYS      2
   1.848 +
   1.849 +// See nsStyleText
   1.850 +#define NS_STYLE_TEXT_COMBINE_UPRIGHT_NONE        0
   1.851 +#define NS_STYLE_TEXT_COMBINE_UPRIGHT_ALL         1
   1.852 +#define NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_2    2
   1.853 +#define NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_3    3
   1.854 +#define NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_4    4
   1.855 +
   1.856 +// See nsStyleText
   1.857 +#define NS_STYLE_LINE_HEIGHT_BLOCK_HEIGHT       0
   1.858 +
   1.859 +// See nsStyleText
   1.860 +#define NS_STYLE_UNICODE_BIDI_NORMAL            0x0
   1.861 +#define NS_STYLE_UNICODE_BIDI_EMBED             0x1
   1.862 +#define NS_STYLE_UNICODE_BIDI_ISOLATE           0x2
   1.863 +#define NS_STYLE_UNICODE_BIDI_OVERRIDE          0x4
   1.864 +#define NS_STYLE_UNICODE_BIDI_ISOLATE_OVERRIDE  0x6
   1.865 +#define NS_STYLE_UNICODE_BIDI_PLAINTEXT         0x8
   1.866 +
   1.867 +// See nsStyleTable (here for HTML 4.0 for now, should probably change to side flags)
   1.868 +#define NS_STYLE_TABLE_FRAME_NONE               0
   1.869 +#define NS_STYLE_TABLE_FRAME_ABOVE              1
   1.870 +#define NS_STYLE_TABLE_FRAME_BELOW              2
   1.871 +#define NS_STYLE_TABLE_FRAME_HSIDES             3
   1.872 +#define NS_STYLE_TABLE_FRAME_VSIDES             4
   1.873 +#define NS_STYLE_TABLE_FRAME_LEFT               5
   1.874 +#define NS_STYLE_TABLE_FRAME_RIGHT              6
   1.875 +#define NS_STYLE_TABLE_FRAME_BOX                7
   1.876 +#define NS_STYLE_TABLE_FRAME_BORDER             8
   1.877 +
   1.878 +// See nsStyleTable
   1.879 +#define NS_STYLE_TABLE_RULES_NONE               0
   1.880 +#define NS_STYLE_TABLE_RULES_GROUPS             1
   1.881 +#define NS_STYLE_TABLE_RULES_ROWS               2
   1.882 +#define NS_STYLE_TABLE_RULES_COLS               3
   1.883 +#define NS_STYLE_TABLE_RULES_ALL                4
   1.884 +
   1.885 +#define NS_STYLE_TABLE_LAYOUT_AUTO              0
   1.886 +#define NS_STYLE_TABLE_LAYOUT_FIXED             1
   1.887 +
   1.888 +#define NS_STYLE_TABLE_EMPTY_CELLS_HIDE            0
   1.889 +#define NS_STYLE_TABLE_EMPTY_CELLS_SHOW            1
   1.890 +#define NS_STYLE_TABLE_EMPTY_CELLS_SHOW_BACKGROUND 2
   1.891 +
   1.892 +#define NS_STYLE_CAPTION_SIDE_TOP               0
   1.893 +#define NS_STYLE_CAPTION_SIDE_RIGHT             1
   1.894 +#define NS_STYLE_CAPTION_SIDE_BOTTOM            2
   1.895 +#define NS_STYLE_CAPTION_SIDE_LEFT              3
   1.896 +#define NS_STYLE_CAPTION_SIDE_TOP_OUTSIDE       4
   1.897 +#define NS_STYLE_CAPTION_SIDE_BOTTOM_OUTSIDE    5
   1.898 +
   1.899 +// constants for cell "scope" attribute
   1.900 +#define NS_STYLE_CELL_SCOPE_ROW                 0
   1.901 +#define NS_STYLE_CELL_SCOPE_COL                 1
   1.902 +#define NS_STYLE_CELL_SCOPE_ROWGROUP            2
   1.903 +#define NS_STYLE_CELL_SCOPE_COLGROUP            3
   1.904 +
   1.905 +// See nsStylePage
   1.906 +#define NS_STYLE_PAGE_MARKS_NONE                0x00
   1.907 +#define NS_STYLE_PAGE_MARKS_CROP                0x01
   1.908 +#define NS_STYLE_PAGE_MARKS_REGISTER            0x02
   1.909 +
   1.910 +// See nsStylePage
   1.911 +#define NS_STYLE_PAGE_SIZE_AUTO                 0
   1.912 +#define NS_STYLE_PAGE_SIZE_PORTRAIT             1
   1.913 +#define NS_STYLE_PAGE_SIZE_LANDSCAPE            2
   1.914 +
   1.915 +// See nsStyleBreaks
   1.916 +#define NS_STYLE_PAGE_BREAK_AUTO                0
   1.917 +#define NS_STYLE_PAGE_BREAK_ALWAYS              1
   1.918 +#define NS_STYLE_PAGE_BREAK_AVOID               2
   1.919 +#define NS_STYLE_PAGE_BREAK_LEFT                3
   1.920 +#define NS_STYLE_PAGE_BREAK_RIGHT               4
   1.921 +
   1.922 +// See nsStyleColumn
   1.923 +#define NS_STYLE_COLUMN_COUNT_AUTO              0
   1.924 +#define NS_STYLE_COLUMN_COUNT_UNLIMITED         (-1)
   1.925 +
   1.926 +#define NS_STYLE_COLUMN_FILL_AUTO               0
   1.927 +#define NS_STYLE_COLUMN_FILL_BALANCE            1
   1.928 +
   1.929 +// See nsStyleUIReset
   1.930 +#define NS_STYLE_IME_MODE_AUTO                  0
   1.931 +#define NS_STYLE_IME_MODE_NORMAL                1
   1.932 +#define NS_STYLE_IME_MODE_ACTIVE                2
   1.933 +#define NS_STYLE_IME_MODE_DISABLED              3
   1.934 +#define NS_STYLE_IME_MODE_INACTIVE              4
   1.935 +
   1.936 +// See nsStyleGradient
   1.937 +#define NS_STYLE_GRADIENT_SHAPE_LINEAR          0
   1.938 +#define NS_STYLE_GRADIENT_SHAPE_ELLIPTICAL      1
   1.939 +#define NS_STYLE_GRADIENT_SHAPE_CIRCULAR        2
   1.940 +
   1.941 +#define NS_STYLE_GRADIENT_SIZE_CLOSEST_SIDE     0
   1.942 +#define NS_STYLE_GRADIENT_SIZE_CLOSEST_CORNER   1
   1.943 +#define NS_STYLE_GRADIENT_SIZE_FARTHEST_SIDE    2
   1.944 +#define NS_STYLE_GRADIENT_SIZE_FARTHEST_CORNER  3
   1.945 +#define NS_STYLE_GRADIENT_SIZE_EXPLICIT_SIZE    4
   1.946 +
   1.947 +// See nsStyleSVG
   1.948 +
   1.949 +// dominant-baseline
   1.950 +#define NS_STYLE_DOMINANT_BASELINE_AUTO              0
   1.951 +#define NS_STYLE_DOMINANT_BASELINE_USE_SCRIPT        1
   1.952 +#define NS_STYLE_DOMINANT_BASELINE_NO_CHANGE         2
   1.953 +#define NS_STYLE_DOMINANT_BASELINE_RESET_SIZE        3
   1.954 +#define NS_STYLE_DOMINANT_BASELINE_IDEOGRAPHIC       4
   1.955 +#define NS_STYLE_DOMINANT_BASELINE_ALPHABETIC        5
   1.956 +#define NS_STYLE_DOMINANT_BASELINE_HANGING           6
   1.957 +#define NS_STYLE_DOMINANT_BASELINE_MATHEMATICAL      7
   1.958 +#define NS_STYLE_DOMINANT_BASELINE_CENTRAL           8
   1.959 +#define NS_STYLE_DOMINANT_BASELINE_MIDDLE            9
   1.960 +#define NS_STYLE_DOMINANT_BASELINE_TEXT_AFTER_EDGE  10
   1.961 +#define NS_STYLE_DOMINANT_BASELINE_TEXT_BEFORE_EDGE 11
   1.962 +
   1.963 +// fill-rule
   1.964 +#define NS_STYLE_FILL_RULE_NONZERO              0
   1.965 +#define NS_STYLE_FILL_RULE_EVENODD              1
   1.966 +
   1.967 +// image-rendering
   1.968 +#define NS_STYLE_IMAGE_RENDERING_AUTO             0
   1.969 +#define NS_STYLE_IMAGE_RENDERING_OPTIMIZESPEED    1
   1.970 +#define NS_STYLE_IMAGE_RENDERING_OPTIMIZEQUALITY  2
   1.971 +#define NS_STYLE_IMAGE_RENDERING_CRISPEDGES       3
   1.972 +
   1.973 +// mask-type
   1.974 +#define NS_STYLE_MASK_TYPE_LUMINANCE            0
   1.975 +#define NS_STYLE_MASK_TYPE_ALPHA                1
   1.976 +
   1.977 +// paint-order
   1.978 +#define NS_STYLE_PAINT_ORDER_NORMAL             0
   1.979 +#define NS_STYLE_PAINT_ORDER_FILL               1
   1.980 +#define NS_STYLE_PAINT_ORDER_STROKE             2
   1.981 +#define NS_STYLE_PAINT_ORDER_MARKERS            3
   1.982 +#define NS_STYLE_PAINT_ORDER_LAST_VALUE NS_STYLE_PAINT_ORDER_MARKERS
   1.983 +// NS_STYLE_PAINT_ORDER_BITWIDTH is the number of bits required to store
   1.984 +// a single paint-order component value.
   1.985 +#define NS_STYLE_PAINT_ORDER_BITWIDTH           2
   1.986 +
   1.987 +// shape-rendering
   1.988 +#define NS_STYLE_SHAPE_RENDERING_AUTO               0
   1.989 +#define NS_STYLE_SHAPE_RENDERING_OPTIMIZESPEED      1
   1.990 +#define NS_STYLE_SHAPE_RENDERING_CRISPEDGES         2
   1.991 +#define NS_STYLE_SHAPE_RENDERING_GEOMETRICPRECISION 3
   1.992 +
   1.993 +// stroke-linecap
   1.994 +#define NS_STYLE_STROKE_LINECAP_BUTT            0
   1.995 +#define NS_STYLE_STROKE_LINECAP_ROUND           1
   1.996 +#define NS_STYLE_STROKE_LINECAP_SQUARE          2
   1.997 +
   1.998 +// stroke-linejoin
   1.999 +#define NS_STYLE_STROKE_LINEJOIN_MITER          0
  1.1000 +#define NS_STYLE_STROKE_LINEJOIN_ROUND          1
  1.1001 +#define NS_STYLE_STROKE_LINEJOIN_BEVEL          2
  1.1002 +
  1.1003 +// stroke-dasharray, stroke-dashoffset, stroke-width
  1.1004 +#define NS_STYLE_STROKE_PROP_CONTEXT_VALUE      0
  1.1005 +
  1.1006 +// text-anchor
  1.1007 +#define NS_STYLE_TEXT_ANCHOR_START              0
  1.1008 +#define NS_STYLE_TEXT_ANCHOR_MIDDLE             1
  1.1009 +#define NS_STYLE_TEXT_ANCHOR_END                2
  1.1010 +
  1.1011 +// text-rendering
  1.1012 +#define NS_STYLE_TEXT_RENDERING_AUTO               0
  1.1013 +#define NS_STYLE_TEXT_RENDERING_OPTIMIZESPEED      1
  1.1014 +#define NS_STYLE_TEXT_RENDERING_OPTIMIZELEGIBILITY 2
  1.1015 +#define NS_STYLE_TEXT_RENDERING_GEOMETRICPRECISION 3
  1.1016 +
  1.1017 +// color-interpolation and color-interpolation-filters
  1.1018 +#define NS_STYLE_COLOR_INTERPOLATION_AUTO           0
  1.1019 +#define NS_STYLE_COLOR_INTERPOLATION_SRGB           1
  1.1020 +#define NS_STYLE_COLOR_INTERPOLATION_LINEARRGB      2
  1.1021 +
  1.1022 +// vector-effect
  1.1023 +#define NS_STYLE_VECTOR_EFFECT_NONE                 0
  1.1024 +#define NS_STYLE_VECTOR_EFFECT_NON_SCALING_STROKE   1
  1.1025 +
  1.1026 +// 3d Transforms - Backface visibility
  1.1027 +#define NS_STYLE_BACKFACE_VISIBILITY_VISIBLE        1
  1.1028 +#define NS_STYLE_BACKFACE_VISIBILITY_HIDDEN         0
  1.1029 +
  1.1030 +#define NS_STYLE_TRANSFORM_STYLE_FLAT               0
  1.1031 +#define NS_STYLE_TRANSFORM_STYLE_PRESERVE_3D        1
  1.1032 +
  1.1033 +// object {fill,stroke}-opacity inherited from context for SVG glyphs
  1.1034 +#define NS_STYLE_CONTEXT_FILL_OPACITY               0
  1.1035 +#define NS_STYLE_CONTEXT_STROKE_OPACITY             1
  1.1036 +
  1.1037 +// blending
  1.1038 +#define NS_STYLE_BLEND_NORMAL                       0
  1.1039 +#define NS_STYLE_BLEND_MULTIPLY                     1
  1.1040 +#define NS_STYLE_BLEND_SCREEN                       2
  1.1041 +#define NS_STYLE_BLEND_OVERLAY                      3
  1.1042 +#define NS_STYLE_BLEND_DARKEN                       4
  1.1043 +#define NS_STYLE_BLEND_LIGHTEN                      5
  1.1044 +#define NS_STYLE_BLEND_COLOR_DODGE                  6
  1.1045 +#define NS_STYLE_BLEND_COLOR_BURN                   7
  1.1046 +#define NS_STYLE_BLEND_HARD_LIGHT                   8
  1.1047 +#define NS_STYLE_BLEND_SOFT_LIGHT                   9
  1.1048 +#define NS_STYLE_BLEND_DIFFERENCE                   10
  1.1049 +#define NS_STYLE_BLEND_EXCLUSION                    11
  1.1050 +#define NS_STYLE_BLEND_HUE                          12
  1.1051 +#define NS_STYLE_BLEND_SATURATION                   13
  1.1052 +#define NS_STYLE_BLEND_COLOR                        14
  1.1053 +#define NS_STYLE_BLEND_LUMINOSITY                   15
  1.1054 +
  1.1055 +// See nsStyleText::mControlCharacterVisibility
  1.1056 +#define NS_STYLE_CONTROL_CHARACTER_VISIBILITY_HIDDEN  0
  1.1057 +#define NS_STYLE_CONTROL_CHARACTER_VISIBILITY_VISIBLE 1
  1.1058 +
  1.1059 +/*****************************************************************************
  1.1060 + * Constants for media features.                                             *
  1.1061 + *****************************************************************************/
  1.1062 +
  1.1063 +// orientation
  1.1064 +#define NS_STYLE_ORIENTATION_PORTRAIT           0
  1.1065 +#define NS_STYLE_ORIENTATION_LANDSCAPE          1
  1.1066 +
  1.1067 +// scan
  1.1068 +#define NS_STYLE_SCAN_PROGRESSIVE               0
  1.1069 +#define NS_STYLE_SCAN_INTERLACE                 1
  1.1070 +
  1.1071 +#endif /* nsStyleConsts_h___ */

mercurial