File indexing completed on 2024-04-28 15:22:45
0001 /* ANSI-C code produced by gperf version 3.0.3 */ 0002 /* Command-line: gperf -a -L ANSI-C -E -C -c -o -t -k '*' -NfindProp -Hhash_prop -Wwordlist_prop -D -s 2 cssproperties.gperf */ 0003 0004 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ 0005 && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ 0006 && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ 0007 && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ 0008 && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ 0009 && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ 0010 && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ 0011 && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ 0012 && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ 0013 && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ 0014 && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ 0015 && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ 0016 && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ 0017 && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ 0018 && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ 0019 && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ 0020 && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ 0021 && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ 0022 && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ 0023 && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ 0024 && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ 0025 && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ 0026 && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) 0027 /* The character set is not based on ISO-646. */ 0028 #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>." 0029 #endif 0030 0031 #line 1 "cssproperties.gperf" 0032 0033 /* This file is automatically generated from cssproperties.in by makeprop, do not edit */ 0034 /* Copyright 1999 W. Bastian */ 0035 #include "cssproperties.h" 0036 #line 6 "cssproperties.gperf" 0037 struct css_prop { 0038 const char *name; 0039 int id; 0040 }; 0041 0042 static const struct css_prop * findProp (const char *str, unsigned int len); 0043 /* maximum key range = 797, duplicates = 0 */ 0044 0045 #ifdef __GNUC__ 0046 __inline 0047 #else 0048 #ifdef __cplusplus 0049 inline 0050 #endif 0051 #endif 0052 static unsigned int 0053 hash_prop (const char *str, unsigned int len) 0054 { 0055 static const unsigned short asso_values[] = 0056 { 0057 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0058 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0059 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0060 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0061 802, 802, 802, 802, 802, 0, 802, 802, 802, 802, 0062 802, 0, 802, 802, 802, 802, 802, 802, 802, 802, 0063 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0064 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0065 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0066 802, 802, 802, 802, 802, 802, 802, 5, 0, 0, 0067 0, 0, 240, 0, 180, 20, 0, 55, 0, 20, 0068 20, 0, 0, 10, 0, 10, 5, 80, 45, 265, 0069 60, 230, 0, 802, 802, 802, 802, 802, 802, 802, 0070 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0071 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0072 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0073 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0074 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0075 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0076 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0077 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0078 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0079 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0080 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0081 802, 802, 802, 802, 802, 802, 802, 802, 802, 802, 0082 802, 802, 802, 802, 802, 802 0083 }; 0084 int hval = len; 0085 0086 switch (hval) 0087 { 0088 default: 0089 hval += asso_values[(unsigned char)str[31]]; 0090 /*FALLTHROUGH*/ 0091 case 31: 0092 hval += asso_values[(unsigned char)str[30]]; 0093 /*FALLTHROUGH*/ 0094 case 30: 0095 hval += asso_values[(unsigned char)str[29]]; 0096 /*FALLTHROUGH*/ 0097 case 29: 0098 hval += asso_values[(unsigned char)str[28]]; 0099 /*FALLTHROUGH*/ 0100 case 28: 0101 hval += asso_values[(unsigned char)str[27]]; 0102 /*FALLTHROUGH*/ 0103 case 27: 0104 hval += asso_values[(unsigned char)str[26]]; 0105 /*FALLTHROUGH*/ 0106 case 26: 0107 hval += asso_values[(unsigned char)str[25]]; 0108 /*FALLTHROUGH*/ 0109 case 25: 0110 hval += asso_values[(unsigned char)str[24]]; 0111 /*FALLTHROUGH*/ 0112 case 24: 0113 hval += asso_values[(unsigned char)str[23]]; 0114 /*FALLTHROUGH*/ 0115 case 23: 0116 hval += asso_values[(unsigned char)str[22]]; 0117 /*FALLTHROUGH*/ 0118 case 22: 0119 hval += asso_values[(unsigned char)str[21]]; 0120 /*FALLTHROUGH*/ 0121 case 21: 0122 hval += asso_values[(unsigned char)str[20]]; 0123 /*FALLTHROUGH*/ 0124 case 20: 0125 hval += asso_values[(unsigned char)str[19]]; 0126 /*FALLTHROUGH*/ 0127 case 19: 0128 hval += asso_values[(unsigned char)str[18]]; 0129 /*FALLTHROUGH*/ 0130 case 18: 0131 hval += asso_values[(unsigned char)str[17]]; 0132 /*FALLTHROUGH*/ 0133 case 17: 0134 hval += asso_values[(unsigned char)str[16]]; 0135 /*FALLTHROUGH*/ 0136 case 16: 0137 hval += asso_values[(unsigned char)str[15]]; 0138 /*FALLTHROUGH*/ 0139 case 15: 0140 hval += asso_values[(unsigned char)str[14]]; 0141 /*FALLTHROUGH*/ 0142 case 14: 0143 hval += asso_values[(unsigned char)str[13]]; 0144 /*FALLTHROUGH*/ 0145 case 13: 0146 hval += asso_values[(unsigned char)str[12]]; 0147 /*FALLTHROUGH*/ 0148 case 12: 0149 hval += asso_values[(unsigned char)str[11]]; 0150 /*FALLTHROUGH*/ 0151 case 11: 0152 hval += asso_values[(unsigned char)str[10]]; 0153 /*FALLTHROUGH*/ 0154 case 10: 0155 hval += asso_values[(unsigned char)str[9]]; 0156 /*FALLTHROUGH*/ 0157 case 9: 0158 hval += asso_values[(unsigned char)str[8]]; 0159 /*FALLTHROUGH*/ 0160 case 8: 0161 hval += asso_values[(unsigned char)str[7]]; 0162 /*FALLTHROUGH*/ 0163 case 7: 0164 hval += asso_values[(unsigned char)str[6]]; 0165 /*FALLTHROUGH*/ 0166 case 6: 0167 hval += asso_values[(unsigned char)str[5]]; 0168 /*FALLTHROUGH*/ 0169 case 5: 0170 hval += asso_values[(unsigned char)str[4]]; 0171 /*FALLTHROUGH*/ 0172 case 4: 0173 hval += asso_values[(unsigned char)str[3]]; 0174 /*FALLTHROUGH*/ 0175 case 3: 0176 hval += asso_values[(unsigned char)str[2]]; 0177 /*FALLTHROUGH*/ 0178 case 2: 0179 hval += asso_values[(unsigned char)str[1]]; 0180 /*FALLTHROUGH*/ 0181 case 1: 0182 hval += asso_values[(unsigned char)str[0]]; 0183 break; 0184 } 0185 return hval; 0186 } 0187 0188 #ifdef __GNUC__ 0189 __inline 0190 #ifdef __GNUC_STDC_INLINE__ 0191 __attribute__ ((__gnu_inline__)) 0192 #endif 0193 #endif 0194 const struct css_prop * 0195 findProp (const char *str, unsigned int len) 0196 { 0197 enum 0198 { 0199 TOTAL_KEYWORDS = 179, 0200 MIN_WORD_LENGTH = 3, 0201 MAX_WORD_LENGTH = 32, 0202 MIN_HASH_VALUE = 5, 0203 MAX_HASH_VALUE = 801 0204 }; 0205 0206 static const struct css_prop wordlist_prop[] = 0207 { 0208 #line 49 "cssproperties.gperf" 0209 {"color", CSS_PROP_COLOR}, 0210 #line 126 "cssproperties.gperf" 0211 {"border", CSS_PROP_BORDER}, 0212 #line 114 "cssproperties.gperf" 0213 {"top", CSS_PROP_TOP}, 0214 #line 47 "cssproperties.gperf" 0215 {"clear", CSS_PROP_CLEAR}, 0216 #line 127 "cssproperties.gperf" 0217 {"border-color", CSS_PROP_BORDER_COLOR}, 0218 #line 106 "cssproperties.gperf" 0219 {"src", CSS_PROP_SRC}, 0220 #line 129 "cssproperties.gperf" 0221 {"border-top", CSS_PROP_BORDER_TOP}, 0222 #line 33 "cssproperties.gperf" 0223 {"border-top-color", CSS_PROP_BORDER_TOP_COLOR}, 0224 #line 48 "cssproperties.gperf" 0225 {"clip", CSS_PROP_CLIP}, 0226 #line 180 "cssproperties.gperf" 0227 {"stop-color", CSS_PROP_STOP_COLOR}, 0228 #line 29 "cssproperties.gperf" 0229 {"border-collapse", CSS_PROP_BORDER_COLLAPSE}, 0230 #line 105 "cssproperties.gperf" 0231 {"size", CSS_PROP_SIZE}, 0232 #line 45 "cssproperties.gperf" 0233 {"bottom", CSS_PROP_BOTTOM}, 0234 #line 131 "cssproperties.gperf" 0235 {"border-bottom", CSS_PROP_BORDER_BOTTOM}, 0236 #line 35 "cssproperties.gperf" 0237 {"border-bottom-color", CSS_PROP_BORDER_BOTTOM_COLOR}, 0238 #line 140 "cssproperties.gperf" 0239 {"scrollbar-base-color", CSS_PROP_SCROLLBAR_BASE_COLOR}, 0240 #line 139 "cssproperties.gperf" 0241 {"padding", CSS_PROP_PADDING}, 0242 #line 50 "cssproperties.gperf" 0243 {"content", CSS_PROP_CONTENT}, 0244 #line 94 "cssproperties.gperf" 0245 {"padding-top", CSS_PROP_PADDING_TOP}, 0246 #line 30 "cssproperties.gperf" 0247 {"border-spacing", CSS_PROP_BORDER_SPACING}, 0248 #line 137 "cssproperties.gperf" 0249 {"margin", CSS_PROP_MARGIN}, 0250 #line 54 "cssproperties.gperf" 0251 {"direction", CSS_PROP_DIRECTION}, 0252 #line 157 "cssproperties.gperf" 0253 {"color-rendering", CSS_PROP_COLOR_RENDERING}, 0254 #line 182 "cssproperties.gperf" 0255 {"stroke", CSS_PROP_STROKE}, 0256 #line 65 "cssproperties.gperf" 0257 {"letter-spacing", CSS_PROP_LETTER_SPACING}, 0258 #line 70 "cssproperties.gperf" 0259 {"margin-top", CSS_PROP_MARGIN_TOP}, 0260 #line 102 "cssproperties.gperf" 0261 {"position", CSS_PROP_POSITION}, 0262 #line 173 "cssproperties.gperf" 0263 {"marker", CSS_PROP_MARKER}, 0264 #line 96 "cssproperties.gperf" 0265 {"padding-bottom", CSS_PROP_PADDING_BOTTOM}, 0266 #line 46 "cssproperties.gperf" 0267 {"caption-side", CSS_PROP_CAPTION_SIDE}, 0268 #line 177 "cssproperties.gperf" 0269 {"mask", CSS_PROP_MASK}, 0270 #line 53 "cssproperties.gperf" 0271 {"cursor", CSS_PROP_CURSOR}, 0272 #line 146 "cssproperties.gperf" 0273 {"scrollbar-track-color", CSS_PROP_SCROLLBAR_TRACK_COLOR}, 0274 #line 124 "cssproperties.gperf" 0275 {"z-index", CSS_PROP_Z_INDEX}, 0276 #line 72 "cssproperties.gperf" 0277 {"margin-bottom", CSS_PROP_MARGIN_BOTTOM}, 0278 #line 153 "cssproperties.gperf" 0279 {"clip-rule", CSS_PROP_CLIP_RULE}, 0280 #line 174 "cssproperties.gperf" 0281 {"marker-end", CSS_PROP_MARKER_END}, 0282 #line 103 "cssproperties.gperf" 0283 {"quotes", CSS_PROP_QUOTES}, 0284 #line 154 "cssproperties.gperf" 0285 {"color-interpolation", CSS_PROP_COLOR_INTERPOLATION}, 0286 #line 176 "cssproperties.gperf" 0287 {"marker-start", CSS_PROP_MARKER_START}, 0288 #line 170 "cssproperties.gperf" 0289 {"image-rendering", CSS_PROP_IMAGE_RENDERING}, 0290 #line 171 "cssproperties.gperf" 0291 {"kerning", CSS_PROP_KERNING}, 0292 #line 108 "cssproperties.gperf" 0293 {"text-align", CSS_PROP_TEXT_ALIGN}, 0294 #line 28 "cssproperties.gperf" 0295 {"border-radius", CSS_PROP_BORDER_RADIUS}, 0296 #line 185 "cssproperties.gperf" 0297 {"stroke-linecap", CSS_PROP_STROKE_LINECAP}, 0298 #line 175 "cssproperties.gperf" 0299 {"marker-mid", CSS_PROP_MARKER_MID}, 0300 #line 138 "cssproperties.gperf" 0301 {"outline", CSS_PROP_OUTLINE}, 0302 #line 52 "cssproperties.gperf" 0303 {"counter-reset", CSS_PROP_COUNTER_RESET}, 0304 #line 117 "cssproperties.gperf" 0305 {"vertical-align", CSS_PROP_VERTICAL_ALIGN}, 0306 #line 109 "cssproperties.gperf" 0307 {"text-decoration", CSS_PROP_TEXT_DECORATION}, 0308 #line 87 "cssproperties.gperf" 0309 {"outline-color", CSS_PROP_OUTLINE_COLOR}, 0310 #line 178 "cssproperties.gperf" 0311 {"pointer-events", CSS_PROP_POINTER_EVENTS}, 0312 #line 134 "cssproperties.gperf" 0313 {"box-sizing", CSS_PROP_BOX_SIZING}, 0314 #line 191 "cssproperties.gperf" 0315 {"text-rendering", CSS_PROP_TEXT_RENDERING}, 0316 #line 110 "cssproperties.gperf" 0317 {"text-indent", CSS_PROP_TEXT_INDENT}, 0318 #line 101 "cssproperties.gperf" 0319 {"page-break-inside", CSS_PROP_PAGE_BREAK_INSIDE}, 0320 #line 116 "cssproperties.gperf" 0321 {"unicode-range", CSS_PROP_UNICODE_RANGE}, 0322 #line 158 "cssproperties.gperf" 0323 {"dominant-baseline", CSS_PROP_DOMINANT_BASELINE}, 0324 #line 150 "cssproperties.gperf" 0325 {"alignment-baseline", CSS_PROP_ALIGNMENT_BASELINE}, 0326 #line 186 "cssproperties.gperf" 0327 {"stroke-linejoin", CSS_PROP_STROKE_LINEJOIN}, 0328 #line 125 "cssproperties.gperf" 0329 {"background", CSS_PROP_BACKGROUND}, 0330 #line 115 "cssproperties.gperf" 0331 {"unicode-bidi", CSS_PROP_UNICODE_BIDI}, 0332 #line 14 "cssproperties.gperf" 0333 {"background-color", CSS_PROP_BACKGROUND_COLOR}, 0334 #line 16 "cssproperties.gperf" 0335 {"background-repeat", CSS_PROP_BACKGROUND_REPEAT}, 0336 #line 21 "cssproperties.gperf" 0337 {"background-clip", CSS_PROP_BACKGROUND_CLIP}, 0338 #line 187 "cssproperties.gperf" 0339 {"stroke-miterlimit", CSS_PROP_STROKE_MITERLIMIT}, 0340 #line 159 "cssproperties.gperf" 0341 {"enable-background", CSS_PROP_ENABLE_BACKGROUND}, 0342 #line 23 "cssproperties.gperf" 0343 {"background-size", CSS_PROP_BACKGROUND_SIZE}, 0344 #line 51 "cssproperties.gperf" 0345 {"counter-increment", CSS_PROP_COUNTER_INCREMENT}, 0346 #line 104 "cssproperties.gperf" 0347 {"right", CSS_PROP_RIGHT}, 0348 #line 130 "cssproperties.gperf" 0349 {"border-right", CSS_PROP_BORDER_RIGHT}, 0350 #line 152 "cssproperties.gperf" 0351 {"clip-path", CSS_PROP_CLIP_PATH}, 0352 #line 15 "cssproperties.gperf" 0353 {"background-image", CSS_PROP_BACKGROUND_IMAGE}, 0354 #line 85 "cssproperties.gperf" 0355 {"orphans", CSS_PROP_ORPHANS}, 0356 #line 34 "cssproperties.gperf" 0357 {"border-right-color", CSS_PROP_BORDER_RIGHT_COLOR}, 0358 #line 22 "cssproperties.gperf" 0359 {"background-origin", CSS_PROP_BACKGROUND_ORIGIN}, 0360 #line 144 "cssproperties.gperf" 0361 {"scrollbar-3dlight-color", CSS_PROP_SCROLLBAR_3DLIGHT_COLOR}, 0362 #line 64 "cssproperties.gperf" 0363 {"left", CSS_PROP_LEFT}, 0364 #line 164 "cssproperties.gperf" 0365 {"flood-color", CSS_PROP_FLOOD_COLOR}, 0366 #line 18 "cssproperties.gperf" 0367 {"background-position", CSS_PROP_BACKGROUND_POSITION}, 0368 #line 57 "cssproperties.gperf" 0369 {"float", CSS_PROP_FLOAT}, 0370 #line 132 "cssproperties.gperf" 0371 {"border-left", CSS_PROP_BORDER_LEFT}, 0372 #line 128 "cssproperties.gperf" 0373 {"border-style", CSS_PROP_BORDER_STYLE}, 0374 #line 172 "cssproperties.gperf" 0375 {"lighting-color", CSS_PROP_LIGHTING_COLOR}, 0376 #line 36 "cssproperties.gperf" 0377 {"border-left-color", CSS_PROP_BORDER_LEFT_COLOR}, 0378 #line 95 "cssproperties.gperf" 0379 {"padding-right", CSS_PROP_PADDING_RIGHT}, 0380 #line 160 "cssproperties.gperf" 0381 {"fill", CSS_PROP_FILL}, 0382 #line 37 "cssproperties.gperf" 0383 {"border-top-style", CSS_PROP_BORDER_TOP_STYLE}, 0384 #line 86 "cssproperties.gperf" 0385 {"opacity", CSS_PROP_OPACITY}, 0386 #line 135 "cssproperties.gperf" 0387 {"font", CSS_PROP_FONT}, 0388 #line 179 "cssproperties.gperf" 0389 {"shape-rendering", CSS_PROP_SHAPE_RENDERING}, 0390 #line 163 "cssproperties.gperf" 0391 {"filter", CSS_PROP_FILTER}, 0392 #line 55 "cssproperties.gperf" 0393 {"display", CSS_PROP_DISPLAY}, 0394 #line 156 "cssproperties.gperf" 0395 {"color-profile", CSS_PROP_COLOR_PROFILE}, 0396 #line 56 "cssproperties.gperf" 0397 {"empty-cells", CSS_PROP_EMPTY_CELLS}, 0398 #line 141 "cssproperties.gperf" 0399 {"scrollbar-face-color", CSS_PROP_SCROLLBAR_FACE_COLOR}, 0400 #line 71 "cssproperties.gperf" 0401 {"margin-right", CSS_PROP_MARGIN_RIGHT}, 0402 #line 190 "cssproperties.gperf" 0403 {"text-anchor", CSS_PROP_TEXT_ANCHOR}, 0404 #line 181 "cssproperties.gperf" 0405 {"stop-opacity", CSS_PROP_STOP_OPACITY}, 0406 #line 136 "cssproperties.gperf" 0407 {"list-style", CSS_PROP_LIST_STYLE}, 0408 #line 39 "cssproperties.gperf" 0409 {"border-bottom-style", CSS_PROP_BORDER_BOTTOM_STYLE}, 0410 #line 97 "cssproperties.gperf" 0411 {"padding-left", CSS_PROP_PADDING_LEFT}, 0412 #line 59 "cssproperties.gperf" 0413 {"font-size", CSS_PROP_FONT_SIZE}, 0414 #line 147 "cssproperties.gperf" 0415 {"scrollbar-arrow-color", CSS_PROP_SCROLLBAR_ARROW_COLOR}, 0416 #line 19 "cssproperties.gperf" 0417 {"background-position-x", CSS_PROP_BACKGROUND_POSITION_X}, 0418 #line 73 "cssproperties.gperf" 0419 {"margin-left", CSS_PROP_MARGIN_LEFT}, 0420 #line 100 "cssproperties.gperf" 0421 {"page-break-before", CSS_PROP_PAGE_BREAK_BEFORE}, 0422 #line 99 "cssproperties.gperf" 0423 {"page-break-after", CSS_PROP_PAGE_BREAK_AFTER}, 0424 #line 123 "cssproperties.gperf" 0425 {"word-spacing", CSS_PROP_WORD_SPACING}, 0426 #line 67 "cssproperties.gperf" 0427 {"list-style-image", CSS_PROP_LIST_STYLE_IMAGE}, 0428 #line 107 "cssproperties.gperf" 0429 {"table-layout", CSS_PROP_TABLE_LAYOUT}, 0430 #line 188 "cssproperties.gperf" 0431 {"stroke-opacity", CSS_PROP_STROKE_OPACITY}, 0432 #line 24 "cssproperties.gperf" 0433 {"border-top-right-radius", CSS_PROP_BORDER_TOP_RIGHT_RADIUS}, 0434 #line 162 "cssproperties.gperf" 0435 {"fill-rule", CSS_PROP_FILL_RULE}, 0436 #line 98 "cssproperties.gperf" 0437 {"-khtml-padding-start", CSS_PROP__KHTML_PADDING_START}, 0438 #line 192 "cssproperties.gperf" 0439 {"writing-mode", CSS_PROP_WRITING_MODE}, 0440 #line 74 "cssproperties.gperf" 0441 {"-khtml-margin-start", CSS_PROP__KHTML_MARGIN_START}, 0442 #line 68 "cssproperties.gperf" 0443 {"list-style-position", CSS_PROP_LIST_STYLE_POSITION}, 0444 #line 25 "cssproperties.gperf" 0445 {"border-bottom-right-radius", CSS_PROP_BORDER_BOTTOM_RIGHT_RADIUS}, 0446 #line 61 "cssproperties.gperf" 0447 {"font-variant", CSS_PROP_FONT_VARIANT}, 0448 #line 118 "cssproperties.gperf" 0449 {"visibility", CSS_PROP_VISIBILITY}, 0450 #line 89 "cssproperties.gperf" 0451 {"outline-style", CSS_PROP_OUTLINE_STYLE}, 0452 #line 113 "cssproperties.gperf" 0453 {"text-transform", CSS_PROP_TEXT_TRANSFORM}, 0454 #line 27 "cssproperties.gperf" 0455 {"border-top-left-radius", CSS_PROP_BORDER_TOP_LEFT_RADIUS}, 0456 #line 75 "cssproperties.gperf" 0457 {"-khtml-marquee", CSS_PROP__KHTML_MARQUEE}, 0458 #line 63 "cssproperties.gperf" 0459 {"height", CSS_PROP_HEIGHT}, 0460 #line 155 "cssproperties.gperf" 0461 {"color-interpolation-filters", CSS_PROP_COLOR_INTERPOLATION_FILTERS}, 0462 #line 79 "cssproperties.gperf" 0463 {"-khtml-marquee-speed", CSS_PROP__KHTML_MARQUEE_SPEED}, 0464 #line 166 "cssproperties.gperf" 0465 {"font-size-adjust", CSS_PROP_FONT_SIZE_ADJUST}, 0466 #line 26 "cssproperties.gperf" 0467 {"border-bottom-left-radius", CSS_PROP_BORDER_BOTTOM_LEFT_RADIUS}, 0468 #line 32 "cssproperties.gperf" 0469 {"-khtml-border-vertical-spacing", CSS_PROP__KHTML_BORDER_VERTICAL_SPACING}, 0470 #line 17 "cssproperties.gperf" 0471 {"background-attachment", CSS_PROP_BACKGROUND_ATTACHMENT}, 0472 #line 66 "cssproperties.gperf" 0473 {"line-height", CSS_PROP_LINE_HEIGHT}, 0474 #line 83 "cssproperties.gperf" 0475 {"min-height", CSS_PROP_MIN_HEIGHT}, 0476 #line 76 "cssproperties.gperf" 0477 {"-khtml-marquee-direction", CSS_PROP__KHTML_MARQUEE_DIRECTION}, 0478 #line 38 "cssproperties.gperf" 0479 {"border-right-style", CSS_PROP_BORDER_RIGHT_STYLE}, 0480 #line 78 "cssproperties.gperf" 0481 {"-khtml-marquee-repetition", CSS_PROP__KHTML_MARQUEE_REPETITION}, 0482 #line 121 "cssproperties.gperf" 0483 {"width", CSS_PROP_WIDTH}, 0484 #line 167 "cssproperties.gperf" 0485 {"font-stretch", CSS_PROP_FONT_STRETCH}, 0486 #line 81 "cssproperties.gperf" 0487 {"max-height", CSS_PROP_MAX_HEIGHT}, 0488 #line 133 "cssproperties.gperf" 0489 {"border-width", CSS_PROP_BORDER_WIDTH}, 0490 #line 77 "cssproperties.gperf" 0491 {"-khtml-marquee-increment", CSS_PROP__KHTML_MARQUEE_INCREMENT}, 0492 #line 20 "cssproperties.gperf" 0493 {"background-position-y", CSS_PROP_BACKGROUND_POSITION_Y}, 0494 #line 41 "cssproperties.gperf" 0495 {"border-top-width", CSS_PROP_BORDER_TOP_WIDTH}, 0496 #line 149 "cssproperties.gperf" 0497 {"-khtml-user-input", CSS_PROP__KHTML_USER_INPUT}, 0498 #line 119 "cssproperties.gperf" 0499 {"white-space", CSS_PROP_WHITE_SPACE}, 0500 #line 142 "cssproperties.gperf" 0501 {"scrollbar-shadow-color", CSS_PROP_SCROLLBAR_SHADOW_COLOR}, 0502 #line 40 "cssproperties.gperf" 0503 {"border-left-style", CSS_PROP_BORDER_LEFT_STYLE}, 0504 #line 165 "cssproperties.gperf" 0505 {"flood-opacity", CSS_PROP_FLOOD_OPACITY}, 0506 #line 43 "cssproperties.gperf" 0507 {"border-bottom-width", CSS_PROP_BORDER_BOTTOM_WIDTH}, 0508 #line 60 "cssproperties.gperf" 0509 {"font-style", CSS_PROP_FONT_STYLE}, 0510 #line 183 "cssproperties.gperf" 0511 {"stroke-dasharray", CSS_PROP_STROKE_DASHARRAY}, 0512 #line 151 "cssproperties.gperf" 0513 {"baseline-shift", CSS_PROP_BASELINE_SHIFT}, 0514 #line 69 "cssproperties.gperf" 0515 {"list-style-type", CSS_PROP_LIST_STYLE_TYPE}, 0516 #line 161 "cssproperties.gperf" 0517 {"fill-opacity", CSS_PROP_FILL_OPACITY}, 0518 #line 84 "cssproperties.gperf" 0519 {"min-width", CSS_PROP_MIN_WIDTH}, 0520 #line 112 "cssproperties.gperf" 0521 {"text-shadow", CSS_PROP_TEXT_SHADOW}, 0522 #line 122 "cssproperties.gperf" 0523 {"word-wrap", CSS_PROP_WORD_WRAP}, 0524 #line 189 "cssproperties.gperf" 0525 {"stroke-width", CSS_PROP_STROKE_WIDTH}, 0526 #line 91 "cssproperties.gperf" 0527 {"overflow", CSS_PROP_OVERFLOW}, 0528 #line 145 "cssproperties.gperf" 0529 {"scrollbar-darkshadow-color", CSS_PROP_SCROLLBAR_DARKSHADOW_COLOR}, 0530 #line 82 "cssproperties.gperf" 0531 {"max-width", CSS_PROP_MAX_WIDTH}, 0532 #line 120 "cssproperties.gperf" 0533 {"widows", CSS_PROP_WIDOWS}, 0534 #line 31 "cssproperties.gperf" 0535 {"-khtml-border-horizontal-spacing", CSS_PROP__KHTML_BORDER_HORIZONTAL_SPACING}, 0536 #line 169 "cssproperties.gperf" 0537 {"glyph-orientation-vertical", CSS_PROP_GLYPH_ORIENTATION_VERTICAL}, 0538 #line 90 "cssproperties.gperf" 0539 {"outline-width", CSS_PROP_OUTLINE_WIDTH}, 0540 #line 92 "cssproperties.gperf" 0541 {"overflow-x", CSS_PROP_OVERFLOW_X}, 0542 #line 143 "cssproperties.gperf" 0543 {"scrollbar-highlight-color", CSS_PROP_SCROLLBAR_HIGHLIGHT_COLOR}, 0544 #line 111 "cssproperties.gperf" 0545 {"text-overflow", CSS_PROP_TEXT_OVERFLOW}, 0546 #line 88 "cssproperties.gperf" 0547 {"outline-offset", CSS_PROP_OUTLINE_OFFSET}, 0548 #line 80 "cssproperties.gperf" 0549 {"-khtml-marquee-style", CSS_PROP__KHTML_MARQUEE_STYLE}, 0550 #line 42 "cssproperties.gperf" 0551 {"border-right-width", CSS_PROP_BORDER_RIGHT_WIDTH}, 0552 #line 44 "cssproperties.gperf" 0553 {"border-left-width", CSS_PROP_BORDER_LEFT_WIDTH}, 0554 #line 62 "cssproperties.gperf" 0555 {"font-weight", CSS_PROP_FONT_WEIGHT}, 0556 #line 168 "cssproperties.gperf" 0557 {"glyph-orientation-horizontal", CSS_PROP_GLYPH_ORIENTATION_HORIZONTAL}, 0558 #line 184 "cssproperties.gperf" 0559 {"stroke-dashoffset", CSS_PROP_STROKE_DASHOFFSET}, 0560 #line 93 "cssproperties.gperf" 0561 {"overflow-y", CSS_PROP_OVERFLOW_Y}, 0562 #line 58 "cssproperties.gperf" 0563 {"font-family", CSS_PROP_FONT_FAMILY}, 0564 #line 148 "cssproperties.gperf" 0565 {"-khtml-flow-mode", CSS_PROP__KHTML_FLOW_MODE} 0566 }; 0567 0568 static const short lookup[] = 0569 { 0570 -1, -1, -1, -1, -1, 0, 1, -1, 2, -1, 0571 3, -1, 4, 5, -1, 6, -1, -1, -1, -1, 0572 -1, 7, -1, -1, 8, 9, -1, -1, -1, -1, 0573 10, -1, -1, -1, 11, -1, 12, -1, -1, -1, 0574 -1, -1, -1, 13, -1, -1, -1, -1, -1, 14, 0575 15, -1, 16, -1, -1, -1, -1, 17, -1, -1, 0576 -1, 18, -1, -1, -1, -1, -1, -1, -1, 19, 0577 -1, 20, -1, -1, 21, 22, 23, -1, -1, 24, 0578 25, -1, -1, 26, -1, -1, 27, -1, -1, 28, 0579 -1, -1, 29, -1, 30, -1, 31, -1, -1, -1, 0580 -1, 32, -1, -1, -1, -1, -1, 33, 34, 35, 0581 36, 37, -1, -1, 38, -1, -1, 39, -1, -1, 0582 40, -1, 41, -1, -1, 42, -1, -1, 43, 44, 0583 45, -1, 46, 47, 48, 49, -1, -1, 50, 51, 0584 52, -1, -1, -1, 53, -1, 54, -1, -1, -1, 0585 -1, -1, 55, -1, -1, -1, -1, -1, 56, -1, 0586 -1, -1, 57, 58, -1, 59, -1, -1, -1, -1, 0587 60, -1, 61, -1, -1, -1, 62, -1, -1, -1, 0588 -1, -1, -1, -1, -1, -1, -1, 63, -1, -1, 0589 -1, -1, -1, -1, -1, 64, -1, 65, -1, -1, 0590 -1, -1, 66, -1, -1, 67, -1, 68, -1, -1, 0591 69, -1, -1, -1, -1, -1, -1, 70, -1, 71, 0592 -1, 72, 73, 74, -1, -1, -1, -1, -1, -1, 0593 -1, -1, -1, -1, -1, -1, -1, 75, -1, -1, 0594 -1, -1, -1, 76, -1, -1, -1, -1, -1, 77, 0595 -1, 78, -1, -1, 79, 80, 81, 82, -1, 83, 0596 -1, -1, 84, 85, 86, -1, 87, 88, -1, 89, 0597 90, 91, 92, 93, -1, -1, 94, -1, -1, -1, 0598 95, -1, 96, -1, -1, -1, 97, 98, -1, -1, 0599 99, -1, -1, -1, 100, -1, -1, -1, -1, -1, 0600 -1, -1, 101, -1, 102, -1, 103, -1, -1, -1, 0601 -1, -1, -1, -1, -1, -1, 104, -1, -1, -1, 0602 -1, 105, 106, -1, -1, -1, -1, -1, -1, -1, 0603 -1, 107, 108, -1, -1, -1, -1, -1, -1, -1, 0604 -1, 109, 110, -1, 111, -1, -1, -1, 112, 113, 0605 114, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0606 -1, -1, 115, -1, -1, -1, -1, -1, -1, 116, 0607 -1, -1, -1, -1, 117, -1, 118, 119, -1, -1, 0608 120, -1, -1, 121, 122, -1, -1, 123, -1, 124, 0609 -1, 125, -1, -1, -1, -1, -1, 126, -1, -1, 0610 -1, -1, -1, -1, -1, 127, -1, -1, -1, -1, 0611 -1, 128, -1, -1, -1, 129, -1, -1, -1, -1, 0612 130, -1, -1, -1, -1, -1, 131, -1, -1, -1, 0613 -1, -1, -1, -1, -1, -1, 132, -1, -1, -1, 0614 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0615 -1, -1, -1, -1, -1, 133, -1, -1, -1, -1, 0616 -1, -1, -1, -1, 134, -1, -1, -1, 135, -1, 0617 136, -1, -1, -1, -1, 137, -1, 138, -1, -1, 0618 139, -1, 140, -1, 141, -1, 142, -1, -1, -1, 0619 -1, 143, 144, -1, -1, -1, 145, 146, -1, -1, 0620 -1, -1, -1, -1, -1, -1, -1, 147, -1, -1, 0621 -1, -1, -1, 148, -1, -1, -1, -1, -1, 149, 0622 150, 151, -1, -1, 152, -1, -1, -1, -1, -1, 0623 153, -1, 154, -1, -1, -1, -1, -1, -1, 155, 0624 -1, 156, -1, -1, 157, -1, -1, -1, -1, -1, 0625 -1, -1, 158, -1, -1, -1, -1, -1, 159, -1, 0626 -1, 160, -1, -1, 161, -1, 162, -1, -1, -1, 0627 -1, -1, -1, -1, -1, -1, -1, 163, -1, -1, 0628 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0629 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0630 -1, -1, -1, -1, -1, -1, 164, -1, 165, -1, 0631 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0632 166, -1, -1, -1, -1, 167, -1, -1, -1, -1, 0633 -1, -1, -1, 168, 169, -1, -1, -1, -1, -1, 0634 170, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0635 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0636 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0637 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0638 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0639 -1, -1, -1, 171, -1, -1, -1, -1, -1, -1, 0640 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0641 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0642 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0643 -1, -1, 172, -1, -1, -1, -1, -1, -1, -1, 0644 -1, -1, -1, -1, -1, -1, 173, -1, -1, -1, 0645 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0646 -1, -1, -1, 174, -1, -1, -1, -1, -1, -1, 0647 -1, -1, -1, -1, -1, -1, -1, 175, -1, -1, 0648 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0649 176, 177, -1, -1, -1, -1, -1, -1, -1, -1, 0650 -1, 178 0651 }; 0652 0653 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) 0654 { 0655 int key = hash_prop (str, len); 0656 0657 if (key <= MAX_HASH_VALUE && key >= 0) 0658 { 0659 int index = lookup[key]; 0660 0661 if (index >= 0) 0662 { 0663 const char *s = wordlist_prop[index].name; 0664 0665 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') 0666 return &wordlist_prop[index]; 0667 } 0668 } 0669 } 0670 return nullptr; 0671 } 0672 #line 193 "cssproperties.gperf" 0673 0674 static const char * const propertyList[] = { 0675 "", 0676 "background-color", 0677 "background-image", 0678 "background-repeat", 0679 "background-attachment", 0680 "background-position", 0681 "background-position-x", 0682 "background-position-y", 0683 "background-clip", 0684 "background-origin", 0685 "background-size", 0686 "border-top-right-radius", 0687 "border-bottom-right-radius", 0688 "border-bottom-left-radius", 0689 "border-top-left-radius", 0690 "border-radius", 0691 "border-collapse", 0692 "border-spacing", 0693 "-khtml-border-horizontal-spacing", 0694 "-khtml-border-vertical-spacing", 0695 "border-top-color", 0696 "border-right-color", 0697 "border-bottom-color", 0698 "border-left-color", 0699 "border-top-style", 0700 "border-right-style", 0701 "border-bottom-style", 0702 "border-left-style", 0703 "border-top-width", 0704 "border-right-width", 0705 "border-bottom-width", 0706 "border-left-width", 0707 "bottom", 0708 "caption-side", 0709 "clear", 0710 "clip", 0711 "color", 0712 "content", 0713 "counter-increment", 0714 "counter-reset", 0715 "cursor", 0716 "direction", 0717 "display", 0718 "empty-cells", 0719 "float", 0720 "font-family", 0721 "font-size", 0722 "font-style", 0723 "font-variant", 0724 "font-weight", 0725 "height", 0726 "left", 0727 "letter-spacing", 0728 "line-height", 0729 "list-style-image", 0730 "list-style-position", 0731 "list-style-type", 0732 "margin-top", 0733 "margin-right", 0734 "margin-bottom", 0735 "margin-left", 0736 "-khtml-margin-start", 0737 "-khtml-marquee", 0738 "-khtml-marquee-direction", 0739 "-khtml-marquee-increment", 0740 "-khtml-marquee-repetition", 0741 "-khtml-marquee-speed", 0742 "-khtml-marquee-style", 0743 "max-height", 0744 "max-width", 0745 "min-height", 0746 "min-width", 0747 "orphans", 0748 "opacity", 0749 "outline-color", 0750 "outline-offset", 0751 "outline-style", 0752 "outline-width", 0753 "overflow", 0754 "overflow-x", 0755 "overflow-y", 0756 "padding-top", 0757 "padding-right", 0758 "padding-bottom", 0759 "padding-left", 0760 "-khtml-padding-start", 0761 "page-break-after", 0762 "page-break-before", 0763 "page-break-inside", 0764 "position", 0765 "quotes", 0766 "right", 0767 "size", 0768 "src", 0769 "table-layout", 0770 "text-align", 0771 "text-decoration", 0772 "text-indent", 0773 "text-overflow", 0774 "text-shadow", 0775 "text-transform", 0776 "top", 0777 "unicode-bidi", 0778 "unicode-range", 0779 "vertical-align", 0780 "visibility", 0781 "white-space", 0782 "widows", 0783 "width", 0784 "word-wrap", 0785 "word-spacing", 0786 "z-index", 0787 "background", 0788 "border", 0789 "border-color", 0790 "border-style", 0791 "border-top", 0792 "border-right", 0793 "border-bottom", 0794 "border-left", 0795 "border-width", 0796 "box-sizing", 0797 "font", 0798 "list-style", 0799 "margin", 0800 "outline", 0801 "padding", 0802 "scrollbar-base-color", 0803 "scrollbar-face-color", 0804 "scrollbar-shadow-color", 0805 "scrollbar-highlight-color", 0806 "scrollbar-3dlight-color", 0807 "scrollbar-darkshadow-color", 0808 "scrollbar-track-color", 0809 "scrollbar-arrow-color", 0810 "-khtml-flow-mode", 0811 "-khtml-user-input", 0812 "alignment-baseline", 0813 "baseline-shift", 0814 "clip-path", 0815 "clip-rule", 0816 "color-interpolation", 0817 "color-interpolation-filters", 0818 "color-profile", 0819 "color-rendering", 0820 "dominant-baseline", 0821 "enable-background", 0822 "fill", 0823 "fill-opacity", 0824 "fill-rule", 0825 "filter", 0826 "flood-color", 0827 "flood-opacity", 0828 "font-size-adjust", 0829 "font-stretch", 0830 "glyph-orientation-horizontal", 0831 "glyph-orientation-vertical", 0832 "image-rendering", 0833 "kerning", 0834 "lighting-color", 0835 "marker", 0836 "marker-end", 0837 "marker-mid", 0838 "marker-start", 0839 "mask", 0840 "pointer-events", 0841 "shape-rendering", 0842 "stop-color", 0843 "stop-opacity", 0844 "stroke", 0845 "stroke-dasharray", 0846 "stroke-dashoffset", 0847 "stroke-linecap", 0848 "stroke-linejoin", 0849 "stroke-miterlimit", 0850 "stroke-opacity", 0851 "stroke-width", 0852 "text-anchor", 0853 "text-rendering", 0854 "writing-mode", 0855 nullptr 0856 }; 0857 DOMString getPropertyName(unsigned short id) 0858 { 0859 if(id >= CSS_PROP_TOTAL || id == 0) 0860 return DOMString(); 0861 else 0862 return DOMString(propertyList[id]); 0863 } 0864