1998-04-13 20:24:54 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
** This is a generated file, do not edit it. This file is created by
|
|
|
|
** genhash.pl
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "plstr.h"
|
|
|
|
#include "nsCSSProps.h"
|
1999-04-03 03:15:01 +00:00
|
|
|
#define TOTAL_KEYWORDS 143
|
1998-04-13 20:24:54 +00:00
|
|
|
#define MIN_WORD_LENGTH 3
|
|
|
|
#define MAX_WORD_LENGTH 21
|
1999-04-03 03:15:01 +00:00
|
|
|
#define MIN_HASH_VALUE 260
|
|
|
|
#define MAX_HASH_VALUE 1186
|
|
|
|
/* maximum key range = 927, duplicates = 0 */
|
1998-04-13 20:24:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
struct StaticNameTable {
|
|
|
|
char* tag;
|
|
|
|
PRInt32 id;
|
|
|
|
};
|
|
|
|
|
|
|
|
static const unsigned char kLowerLookup[256] = {
|
|
|
|
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
|
|
|
|
16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,
|
|
|
|
32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,
|
|
|
|
48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,
|
|
|
|
64,
|
|
|
|
97,98,99,100,101,102,103,104,105,106,107,108,109,
|
|
|
|
110,111,112,113,114,115,116,117,118,119,120,121,122,
|
|
|
|
|
|
|
|
91, 92, 93, 94, 95, 96, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,
|
|
|
|
112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,
|
|
|
|
|
|
|
|
128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,
|
|
|
|
144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,
|
|
|
|
160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,
|
|
|
|
176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,
|
|
|
|
192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,
|
|
|
|
208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,
|
|
|
|
224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,
|
|
|
|
240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255
|
|
|
|
};
|
|
|
|
|
|
|
|
#define MYLOWER(x) kLowerLookup[((x) & 0x7f)]
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Map a name to an ID or -1
|
|
|
|
*/
|
|
|
|
PRInt32 nsCSSProps::LookupName(const char* str)
|
|
|
|
{
|
1998-05-28 01:11:30 +00:00
|
|
|
static unsigned short asso_values[] =
|
1998-04-13 20:24:54 +00:00
|
|
|
{
|
1999-04-03 03:15:01 +00:00
|
|
|
1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187,
|
|
|
|
1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187,
|
|
|
|
1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187,
|
|
|
|
1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187,
|
|
|
|
1187, 1187, 1187, 1187, 1187, 115, 1187, 1187, 1187, 1187,
|
|
|
|
1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187,
|
|
|
|
1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187,
|
|
|
|
1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187,
|
|
|
|
1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187, 1187,
|
|
|
|
1187, 1187, 1187, 1187, 1187, 1187, 1187, 84, 184, 76,
|
|
|
|
120, 248, 1, 192, 45, 108, 1187, 52, 98, 78,
|
|
|
|
46, 127, 221, 59, 85, 219, 204, 211, 54, 111,
|
|
|
|
216, 201, 122, 1187, 1187, 1187, 1187, 1187,
|
1998-04-13 20:24:54 +00:00
|
|
|
};
|
|
|
|
static unsigned char lengthtable[] =
|
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0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17,
|
1998-04-13 20:24:54 +00:00
|
|
|
};
|
|
|
|
static struct StaticNameTable wordlist[] =
|
|
|
|
{
|
1999-04-03 03:15:01 +00:00
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"margin", 73},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"clear", 37},
|
|
|
|
{"",}, {"",}, {"",}, {"",},
|
|
|
|
{"width", 140},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"filter", 55},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"color", 43},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"float", 56},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
|
|
|
|
{"font", 57},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"pitch", 103},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"marks", 79},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"clip", 38},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"right", 112},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"font-family", 58},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",},
|
|
|
|
{"content", 44},
|
|
|
|
{"",},
|
|
|
|
{"azimuth", 1},
|
|
|
|
{"cursor", 50},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"bottom", 35},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",},
|
|
|
|
{"orphans", 85},
|
|
|
|
{"",},
|
|
|
|
{"clip-left", 40},
|
|
|
|
{"border", 11},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"speak", 116},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"overflow", 90},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"pause-after", 101},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"display", 52},
|
|
|
|
{"margin-left", 75},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"max-width", 81},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"font-stretch", 61},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"cue", 47},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"padding", 91},
|
|
|
|
{"",},
|
|
|
|
{"min-width", 83},
|
|
|
|
{"",},
|
|
|
|
{"left", 66},
|
|
|
|
{"top", 132},
|
|
|
|
{"position", 107},
|
|
|
|
{"page", 96},
|
|
|
|
{"pause", 100},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"font-weight", 64},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"line-height", 68},
|
|
|
|
{"",}, {"",}, {"",}, {"",},
|
|
|
|
{"size", 113},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"visibility", 135},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"border-width", 32},
|
|
|
|
{"margin-bottom", 74},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"size-width", 115},
|
|
|
|
{"direction", 51},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"cue-after", 48},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"outline", 86},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"margin-top", 77},
|
|
|
|
{"vertical-align", 134},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"clip-bottom", 39},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"border-color", 17},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"widows", 139},
|
|
|
|
{"",},
|
|
|
|
{"clip-right", 41},
|
|
|
|
{"",},
|
|
|
|
{"background-filter", 5},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"border-left-width", 21},
|
|
|
|
{"",},
|
|
|
|
{"quotes-open", 110},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"volume", 137},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"font-variant", 63},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"background", 2},
|
|
|
|
{"size-height", 114},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"padding-top", 95},
|
|
|
|
{"",},
|
|
|
|
{"text-align", 123},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"height", 65},
|
|
|
|
{"z-index", 142},
|
|
|
|
{"border-left", 18},
|
|
|
|
{"",},
|
|
|
|
{"border-left-color", 19},
|
|
|
|
{"",},
|
|
|
|
{"margin-right", 76},
|
|
|
|
{"quotes", 108},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"unicode-bidi", 133},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"outline-color", 87},
|
|
|
|
{"",},
|
|
|
|
{"font-size", 59},
|
|
|
|
{"play-during", 105},
|
|
|
|
{"padding-right", 94},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"elevation", 53},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"background-color", 4},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"border-right-width", 25},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"white-space", 138},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"opacity", 84},
|
|
|
|
{"outline-width", 89},
|
|
|
|
{"padding-bottom", 92},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"border-bottom-width", 15},
|
|
|
|
{"border-top-width", 31},
|
|
|
|
{"",}, {"",}, {"",}, {"",},
|
|
|
|
{"border-top-color", 29},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"pitch-range", 104},
|
|
|
|
{"border-right-color", 23},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"voice-family", 136},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"border-bottom", 12},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"font-style", 62},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"font-size-adjust", 60},
|
|
|
|
{"",},
|
|
|
|
{"border-bottom-color", 13},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"-moz-border-radius", 0},
|
|
|
|
{"",},
|
|
|
|
{"max-height", 80},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"border-collapse", 16},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"clip-top", 42},
|
|
|
|
{"speech-rate", 120},
|
|
|
|
{"",},
|
|
|
|
{"border-top", 28},
|
|
|
|
{"background-y-position", 10},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"marker-offset", 78},
|
|
|
|
{"min-height", 82},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"background-x-position", 9},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"background-position", 7},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"outline-style", 88},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"stress", 121},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"background-repeat", 8},
|
|
|
|
{"",},
|
|
|
|
{"counter-increment", 45},
|
|
|
|
{"background-attachment", 3},
|
|
|
|
{"border-left-style", 20},
|
|
|
|
{"play-during-flags", 106},
|
|
|
|
{"",},
|
|
|
|
{"text-shadow", 126},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"list-style", 69},
|
|
|
|
{"",},
|
|
|
|
{"padding-left", 93},
|
|
|
|
{"richness", 111},
|
|
|
|
{"",},
|
|
|
|
{"border-y-spacing", 34},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"text-indent", 125},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"border-right", 22},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"border-x-spacing", 33},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"table-layout", 122},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"caption-side", 36},
|
|
|
|
{"",},
|
|
|
|
{"list-style-position", 71},
|
|
|
|
{"text-decoration", 124},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"empty-cells", 54},
|
|
|
|
{"cue-before", 49},
|
|
|
|
{"",},
|
|
|
|
{"page-break-after", 97},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"border-spacing", 26},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"background-image", 6},
|
|
|
|
{"word-spacing", 141},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",},
|
|
|
|
{"border-right-style", 24},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"text-transform", 131},
|
|
|
|
{"",},
|
|
|
|
{"speak-numeral", 118},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"letter-spacing", 67},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"text-shadow-color", 127},
|
|
|
|
{"",},
|
|
|
|
{"border-bottom-style", 14},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",},
|
|
|
|
{"speak-header", 117},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"list-style-image", 70},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"counter-reset", 46},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"speak-punctuation", 119},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"quotes-close", 109},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"border-top-style", 30},
|
|
|
|
{"text-shadow-y", 130},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"list-style-type", 72},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"text-shadow-x", 129},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"text-shadow-radius", 128},
|
|
|
|
{"",}, {"",},
|
|
|
|
{"page-break-inside", 99},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",},
|
|
|
|
{"border-style", 27},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"pause-before", 102},
|
|
|
|
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
|
|
|
|
{"page-break-before", 98},
|
1998-04-13 20:24:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
if (str != NULL) {
|
|
|
|
int len = PL_strlen(str);
|
|
|
|
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) {
|
|
|
|
register int hval = len;
|
|
|
|
|
|
|
|
switch (hval)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
case 12:
|
|
|
|
hval += asso_values[MYLOWER(str[11])];
|
|
|
|
case 11:
|
|
|
|
case 10:
|
|
|
|
case 9:
|
|
|
|
case 8:
|
1998-10-26 23:16:27 +00:00
|
|
|
hval += asso_values[MYLOWER(str[7])];
|
1998-04-13 20:24:54 +00:00
|
|
|
case 7:
|
|
|
|
case 6:
|
|
|
|
hval += asso_values[MYLOWER(str[5])];
|
|
|
|
case 5:
|
|
|
|
case 4:
|
|
|
|
case 3:
|
|
|
|
case 2:
|
|
|
|
hval += asso_values[MYLOWER(str[1])];
|
|
|
|
case 1:
|
|
|
|
hval += asso_values[MYLOWER(str[0])];
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
hval += asso_values[MYLOWER(str[len - 1])];
|
|
|
|
if (hval <= MAX_HASH_VALUE && hval >= MIN_HASH_VALUE) {
|
|
|
|
if (len == lengthtable[hval]) {
|
|
|
|
register const char *tag = wordlist[hval].tag;
|
|
|
|
|
|
|
|
/*
|
|
|
|
** While not at the end of the string, if they ever differ
|
|
|
|
** they are not equal. We know "tag" is already lower case.
|
|
|
|
*/
|
|
|
|
while ((*tag != '\0')&&(*str != '\0')) {
|
|
|
|
if (*tag != (char) MYLOWER(*str)) {
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
tag++;
|
|
|
|
str++;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
** One of the strings has ended, if they are both ended, then they
|
|
|
|
** are equal, otherwise not.
|
|
|
|
*/
|
|
|
|
if ((*tag == '\0')&&(*str == '\0')) {
|
|
|
|
return wordlist[hval].id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
const nsCSSProps::NameTableEntry nsCSSProps::kNameTable[] = {
|
1999-04-03 03:15:01 +00:00
|
|
|
{ "-moz-border-radius", 0 },
|
|
|
|
{ "azimuth", 1 },
|
|
|
|
{ "background", 2 },
|
|
|
|
{ "background-attachment", 3 },
|
|
|
|
{ "background-color", 4 },
|
|
|
|
{ "background-filter", 5 },
|
|
|
|
{ "background-image", 6 },
|
|
|
|
{ "background-position", 7 },
|
|
|
|
{ "background-repeat", 8 },
|
|
|
|
{ "background-x-position", 9 },
|
|
|
|
{ "background-y-position", 10 },
|
|
|
|
{ "border", 11 },
|
|
|
|
{ "border-bottom", 12 },
|
|
|
|
{ "border-bottom-color", 13 },
|
|
|
|
{ "border-bottom-style", 14 },
|
|
|
|
{ "border-bottom-width", 15 },
|
|
|
|
{ "border-collapse", 16 },
|
|
|
|
{ "border-color", 17 },
|
|
|
|
{ "border-left", 18 },
|
|
|
|
{ "border-left-color", 19 },
|
|
|
|
{ "border-left-style", 20 },
|
|
|
|
{ "border-left-width", 21 },
|
|
|
|
{ "border-right", 22 },
|
|
|
|
{ "border-right-color", 23 },
|
|
|
|
{ "border-right-style", 24 },
|
|
|
|
{ "border-right-width", 25 },
|
|
|
|
{ "border-spacing", 26 },
|
|
|
|
{ "border-style", 27 },
|
|
|
|
{ "border-top", 28 },
|
|
|
|
{ "border-top-color", 29 },
|
|
|
|
{ "border-top-style", 30 },
|
|
|
|
{ "border-top-width", 31 },
|
|
|
|
{ "border-width", 32 },
|
|
|
|
{ "border-x-spacing", 33 },
|
|
|
|
{ "border-y-spacing", 34 },
|
|
|
|
{ "bottom", 35 },
|
|
|
|
{ "caption-side", 36 },
|
|
|
|
{ "clear", 37 },
|
|
|
|
{ "clip", 38 },
|
|
|
|
{ "clip-bottom", 39 },
|
|
|
|
{ "clip-left", 40 },
|
|
|
|
{ "clip-right", 41 },
|
|
|
|
{ "clip-top", 42 },
|
|
|
|
{ "color", 43 },
|
|
|
|
{ "content", 44 },
|
|
|
|
{ "counter-increment", 45 },
|
|
|
|
{ "counter-reset", 46 },
|
|
|
|
{ "cue", 47 },
|
|
|
|
{ "cue-after", 48 },
|
|
|
|
{ "cue-before", 49 },
|
|
|
|
{ "cursor", 50 },
|
|
|
|
{ "direction", 51 },
|
|
|
|
{ "display", 52 },
|
|
|
|
{ "elevation", 53 },
|
|
|
|
{ "empty-cells", 54 },
|
|
|
|
{ "filter", 55 },
|
|
|
|
{ "float", 56 },
|
|
|
|
{ "font", 57 },
|
|
|
|
{ "font-family", 58 },
|
|
|
|
{ "font-size", 59 },
|
|
|
|
{ "font-size-adjust", 60 },
|
|
|
|
{ "font-stretch", 61 },
|
|
|
|
{ "font-style", 62 },
|
|
|
|
{ "font-variant", 63 },
|
|
|
|
{ "font-weight", 64 },
|
|
|
|
{ "height", 65 },
|
|
|
|
{ "left", 66 },
|
|
|
|
{ "letter-spacing", 67 },
|
|
|
|
{ "line-height", 68 },
|
|
|
|
{ "list-style", 69 },
|
|
|
|
{ "list-style-image", 70 },
|
|
|
|
{ "list-style-position", 71 },
|
|
|
|
{ "list-style-type", 72 },
|
|
|
|
{ "margin", 73 },
|
|
|
|
{ "margin-bottom", 74 },
|
|
|
|
{ "margin-left", 75 },
|
|
|
|
{ "margin-right", 76 },
|
|
|
|
{ "margin-top", 77 },
|
|
|
|
{ "marker-offset", 78 },
|
|
|
|
{ "marks", 79 },
|
|
|
|
{ "max-height", 80 },
|
|
|
|
{ "max-width", 81 },
|
|
|
|
{ "min-height", 82 },
|
|
|
|
{ "min-width", 83 },
|
|
|
|
{ "opacity", 84 },
|
|
|
|
{ "orphans", 85 },
|
|
|
|
{ "outline", 86 },
|
|
|
|
{ "outline-color", 87 },
|
|
|
|
{ "outline-style", 88 },
|
|
|
|
{ "outline-width", 89 },
|
|
|
|
{ "overflow", 90 },
|
|
|
|
{ "padding", 91 },
|
|
|
|
{ "padding-bottom", 92 },
|
|
|
|
{ "padding-left", 93 },
|
|
|
|
{ "padding-right", 94 },
|
|
|
|
{ "padding-top", 95 },
|
|
|
|
{ "page", 96 },
|
|
|
|
{ "page-break-after", 97 },
|
|
|
|
{ "page-break-before", 98 },
|
|
|
|
{ "page-break-inside", 99 },
|
|
|
|
{ "pause", 100 },
|
|
|
|
{ "pause-after", 101 },
|
|
|
|
{ "pause-before", 102 },
|
|
|
|
{ "pitch", 103 },
|
|
|
|
{ "pitch-range", 104 },
|
|
|
|
{ "play-during", 105 },
|
|
|
|
{ "play-during-flags", 106 },
|
|
|
|
{ "position", 107 },
|
|
|
|
{ "quotes", 108 },
|
|
|
|
{ "quotes-close", 109 },
|
|
|
|
{ "quotes-open", 110 },
|
|
|
|
{ "richness", 111 },
|
|
|
|
{ "right", 112 },
|
|
|
|
{ "size", 113 },
|
|
|
|
{ "size-height", 114 },
|
|
|
|
{ "size-width", 115 },
|
|
|
|
{ "speak", 116 },
|
|
|
|
{ "speak-header", 117 },
|
|
|
|
{ "speak-numeral", 118 },
|
|
|
|
{ "speak-punctuation", 119 },
|
|
|
|
{ "speech-rate", 120 },
|
|
|
|
{ "stress", 121 },
|
|
|
|
{ "table-layout", 122 },
|
|
|
|
{ "text-align", 123 },
|
|
|
|
{ "text-decoration", 124 },
|
|
|
|
{ "text-indent", 125 },
|
|
|
|
{ "text-shadow", 126 },
|
|
|
|
{ "text-shadow-color", 127 },
|
|
|
|
{ "text-shadow-radius", 128 },
|
|
|
|
{ "text-shadow-x", 129 },
|
|
|
|
{ "text-shadow-y", 130 },
|
|
|
|
{ "text-transform", 131 },
|
|
|
|
{ "top", 132 },
|
|
|
|
{ "unicode-bidi", 133 },
|
|
|
|
{ "vertical-align", 134 },
|
|
|
|
{ "visibility", 135 },
|
|
|
|
{ "voice-family", 136 },
|
|
|
|
{ "volume", 137 },
|
|
|
|
{ "white-space", 138 },
|
|
|
|
{ "widows", 139 },
|
|
|
|
{ "width", 140 },
|
|
|
|
{ "word-spacing", 141 },
|
|
|
|
{ "z-index", 142 },
|
1998-04-13 20:24:54 +00:00
|
|
|
};
|