This commit is contained in:
kipp 1998-04-24 19:55:53 +00:00
Родитель 3ac5d1a576
Коммит deffb550af
4 изменённых файлов: 491 добавлений и 449 удалений

Просмотреть файл

@ -6,12 +6,12 @@
#include "plstr.h"
#include "nsCSSProps.h"
#define TOTAL_KEYWORDS 76
#define TOTAL_KEYWORDS 79
#define MIN_WORD_LENGTH 3
#define MAX_WORD_LENGTH 21
#define MIN_HASH_VALUE 6
#define MAX_HASH_VALUE 212
/* maximum key range = 207, duplicates = 0 */
#define MAX_HASH_VALUE 238
/* maximum key range = 233, duplicates = 0 */
struct StaticNameTable {
@ -50,164 +50,174 @@ PRInt32 nsCSSProps::LookupName(const char* str)
{
static unsigned char asso_values[] =
{
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 30, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 45, 0, 85,
45, 25, 5, 20, 80, 0, 213, 213, 25, 75,
0, 0, 5, 213, 0, 65, 40, 213, 0, 65,
10, 15, 10, 213, 213, 213, 213, 213,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 35, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 45, 0, 85,
80, 25, 5, 0, 80, 0, 239, 239, 25, 90,
0, 0, 5, 239, 0, 65, 40, 35, 0, 80,
10, 15, 5, 239, 239, 239, 239, 239,
};
static unsigned char lengthtable[] =
{
0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 12, 8,
0, 10, 0, 0, 0, 19, 0, 0, 0, 0, 0, 10, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0,
0, 0, 19, 0, 0, 17, 3, 4, 0, 11, 0, 0, 0, 0,
0, 0, 18, 0, 0, 0, 12, 0, 0, 0, 11, 17, 0, 19,
0, 0, 17, 0, 0, 5, 21, 7, 0, 0, 0, 21, 7, 18,
14, 0, 16, 0, 13, 0, 5, 0, 12, 0, 4, 0, 0, 12,
8, 19, 10, 16, 17, 0, 9, 10, 16, 0, 0, 0, 0, 0,
7, 0, 19, 5, 11, 0, 0, 4, 10, 11, 0, 0, 14, 10,
6, 17, 0, 0, 0, 16, 0, 0, 0, 10, 0, 0, 18, 0,
0, 0, 12, 0, 0, 0, 16, 0, 0, 0, 5, 21, 0, 0,
0, 0, 11, 0, 0, 0, 10, 16, 0, 8, 0, 15, 0, 0,
0, 0, 15, 11, 12, 0, 0, 0, 0, 0, 0, 14, 0, 0,
12, 13, 9, 0, 0, 0, 0, 0, 0, 6, 0, 0, 14, 0,
11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0,
0, 11, 12,
0, 0, 19, 0, 0, 0, 3, 4, 0, 11, 17, 0, 0, 0,
0, 7, 18, 0, 0, 0, 12, 0, 14, 0, 11, 17, 0, 19,
0, 0, 0, 0, 0, 5, 21, 17, 0, 0, 0, 21, 7, 18,
0, 0, 16, 0, 0, 0, 5, 0, 12, 0, 4, 0, 0, 12,
0, 19, 0, 16, 17, 13, 9, 10, 16, 0, 0, 0, 0, 0,
0, 8, 19, 5, 11, 0, 0, 4, 10, 0, 0, 0, 14, 10,
6, 0, 0, 9, 0, 16, 17, 0, 0, 10, 11, 0, 18, 0,
0, 6, 12, 0, 0, 0, 16, 7, 0, 0, 10, 21, 0, 0,
0, 0, 11, 12, 0, 0, 10, 0, 0, 8, 0, 5, 0, 0,
0, 0, 15, 0, 12, 0, 0, 0, 16, 0, 0, 0, 0, 0,
12, 13, 9, 0, 11, 0, 0, 0, 0, 6, 0, 0, 14, 0,
0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 14,
0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 12, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0,
13,
};
static struct StaticNameTable wordlist[] =
{
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"border", 9},
{"",}, {"",}, {"",}, {"",},
{"filter", 37},
{"filter", 40},
{"border-color", 14},
{"position", 64},
{"position", 67},
{"",},
{"border-top", 24},
{"",}, {"",}, {"",},
{"border-bottom-color", 11},
{"",}, {"",}, {"",}, {"",}, {"",},
{"visibility", 71},
{"visibility", 74},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",},
{"font-family", 40},
{"font-family", 43},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"border-bottom-style", 12},
{"",}, {"",},
{"border-left-color", 16},
{"top", 69},
{"font", 39},
{"",}, {"",}, {"",},
{"top", 72},
{"font", 42},
{"",},
{"border-left", 15},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"border-left-color", 16},
{"",}, {"",}, {"",}, {"",},
{"padding", 62},
{"border-right-color", 20},
{"",}, {"",}, {"",},
{"border-style", 23},
{"",}, {"",}, {"",},
{"padding-top", 63},
{"",},
{"letter-spacing", 50},
{"",},
{"padding-top", 66},
{"background-filter", 3},
{"",},
{"background-position", 5},
{"",}, {"",},
{"border-left-style", 17},
{"",}, {"",},
{"float", 38},
{"",}, {"",}, {"",}, {"",}, {"",},
{"float", 41},
{"background-x-position", 6},
{"padding", 59},
{"border-left-style", 17},
{"",}, {"",}, {"",},
{"background-y-position", 7},
{"z-index", 75},
{"z-index", 78},
{"border-right-style", 21},
{"letter-spacing", 47},
{"",},
{"",}, {"",},
{"background-image", 4},
{"",},
{"border-bottom", 10},
{"",},
{"",}, {"",}, {"",},
{"color", 35},
{"",},
{"border-right", 19},
{"",},
{"left", 46},
{"left", 49},
{"",}, {"",},
{"font-variant", 43},
{"overflow", 58},
{"font-variant", 46},
{"",},
{"border-bottom-width", 13},
{"background", 0},
{"",},
{"border-top-color", 25},
{"background-repeat", 8},
{"",},
{"font-size", 41},
{"font-style", 42},
{"border-bottom", 10},
{"font-size", 44},
{"font-style", 45},
{"border-top-style", 26},
{"",}, {"",}, {"",}, {"",}, {"",},
{"display", 36},
{"",},
{"list-style-position", 51},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"overflow", 61},
{"list-style-position", 54},
{"clear", 29},
{"text-indent", 67},
{"text-indent", 70},
{"",}, {"",},
{"clip", 30},
{"text-align", 65},
{"font-weight", 44},
{"text-align", 68},
{"",}, {"",}, {"",},
{"vertical-align", 73},
{"list-style", 52},
{"cursor", 36},
{"",}, {"",},
{"vertical-align", 70},
{"list-style", 49},
{"margin", 53},
{"direction", 38},
{"",},
{"list-style-image", 53},
{"border-left-width", 18},
{"",}, {"",}, {"",},
{"list-style-image", 50},
{"",}, {"",}, {"",},
{"margin-top", 57},
{"",}, {"",},
{"background", 0},
{"font-weight", 47},
{"",},
{"border-right-width", 22},
{"",}, {"",}, {"",},
{"padding-left", 61},
{"",}, {"",},
{"margin", 56},
{"padding-left", 64},
{"",}, {"",}, {"",},
{"background-color", 2},
{"",}, {"",}, {"",},
{"width", 73},
{"display", 39},
{"",}, {"",},
{"margin-top", 60},
{"background-attachment", 1},
{"",}, {"",}, {"",}, {"",},
{"line-height", 48},
{"",}, {"",}, {"",},
{"line-height", 51},
{"word-spacing", 77},
{"",}, {"",},
{"clip-right", 33},
{"border-top-width", 27},
{"",},
{"",}, {"",},
{"clip-top", 34},
{"",},
{"text-decoration", 66},
{"width", 76},
{"",}, {"",}, {"",}, {"",},
{"list-style-type", 52},
{"margin-left", 55},
{"list-style-type", 55},
{"",},
{"border-width", 28},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"padding-bottom", 60},
{"",}, {"",},
{"word-spacing", 74},
{"padding-right", 62},
{"",}, {"",}, {"",},
{"border-top-width", 27},
{"",}, {"",}, {"",}, {"",}, {"",},
{"cursor-image", 37},
{"padding-right", 65},
{"clip-left", 32},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"height", 45},
{"",},
{"margin-left", 58},
{"",}, {"",}, {"",}, {"",},
{"height", 48},
{"",}, {"",},
{"text-transform", 68},
{"padding-bottom", 63},
{"",}, {"",}, {"",}, {"",}, {"",},
{"text-decoration", 69},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"text-transform", 71},
{"",},
{"clip-bottom", 31},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",},
{"margin-bottom", 54},
{"",}, {"",},
{"white-space", 72},
{"margin-right", 56},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"margin-right", 59},
{"",}, {"",}, {"",},
{"white-space", 75},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"margin-bottom", 57},
};
if (str != NULL) {
@ -304,44 +314,47 @@ const nsCSSProps::NameTableEntry nsCSSProps::kNameTable[] = {
{ "clip-right", 33 },
{ "clip-top", 34 },
{ "color", 35 },
{ "display", 36 },
{ "filter", 37 },
{ "float", 38 },
{ "font", 39 },
{ "font-family", 40 },
{ "font-size", 41 },
{ "font-style", 42 },
{ "font-variant", 43 },
{ "font-weight", 44 },
{ "height", 45 },
{ "left", 46 },
{ "letter-spacing", 47 },
{ "line-height", 48 },
{ "list-style", 49 },
{ "list-style-image", 50 },
{ "list-style-position", 51 },
{ "list-style-type", 52 },
{ "margin", 53 },
{ "margin-bottom", 54 },
{ "margin-left", 55 },
{ "margin-right", 56 },
{ "margin-top", 57 },
{ "overflow", 58 },
{ "padding", 59 },
{ "padding-bottom", 60 },
{ "padding-left", 61 },
{ "padding-right", 62 },
{ "padding-top", 63 },
{ "position", 64 },
{ "text-align", 65 },
{ "text-decoration", 66 },
{ "text-indent", 67 },
{ "text-transform", 68 },
{ "top", 69 },
{ "vertical-align", 70 },
{ "visibility", 71 },
{ "white-space", 72 },
{ "width", 73 },
{ "word-spacing", 74 },
{ "z-index", 75 },
{ "cursor", 36 },
{ "cursor-image", 37 },
{ "direction", 38 },
{ "display", 39 },
{ "filter", 40 },
{ "float", 41 },
{ "font", 42 },
{ "font-family", 43 },
{ "font-size", 44 },
{ "font-style", 45 },
{ "font-variant", 46 },
{ "font-weight", 47 },
{ "height", 48 },
{ "left", 49 },
{ "letter-spacing", 50 },
{ "line-height", 51 },
{ "list-style", 52 },
{ "list-style-image", 53 },
{ "list-style-position", 54 },
{ "list-style-type", 55 },
{ "margin", 56 },
{ "margin-bottom", 57 },
{ "margin-left", 58 },
{ "margin-right", 59 },
{ "margin-top", 60 },
{ "overflow", 61 },
{ "padding", 62 },
{ "padding-bottom", 63 },
{ "padding-left", 64 },
{ "padding-right", 65 },
{ "padding-top", 66 },
{ "position", 67 },
{ "text-align", 68 },
{ "text-decoration", 69 },
{ "text-indent", 70 },
{ "text-transform", 71 },
{ "top", 72 },
{ "vertical-align", 73 },
{ "visibility", 74 },
{ "white-space", 75 },
{ "width", 76 },
{ "word-spacing", 77 },
{ "z-index", 78 },
};

Просмотреть файл

@ -35,44 +35,47 @@
#define PROP_CLIP_RIGHT 33
#define PROP_CLIP_TOP 34
#define PROP_COLOR 35
#define PROP_DISPLAY 36
#define PROP_FILTER 37
#define PROP_FLOAT 38
#define PROP_FONT 39
#define PROP_FONT_FAMILY 40
#define PROP_FONT_SIZE 41
#define PROP_FONT_STYLE 42
#define PROP_FONT_VARIANT 43
#define PROP_FONT_WEIGHT 44
#define PROP_HEIGHT 45
#define PROP_LEFT 46
#define PROP_LETTER_SPACING 47
#define PROP_LINE_HEIGHT 48
#define PROP_LIST_STYLE 49
#define PROP_LIST_STYLE_IMAGE 50
#define PROP_LIST_STYLE_POSITION 51
#define PROP_LIST_STYLE_TYPE 52
#define PROP_MARGIN 53
#define PROP_MARGIN_BOTTOM 54
#define PROP_MARGIN_LEFT 55
#define PROP_MARGIN_RIGHT 56
#define PROP_MARGIN_TOP 57
#define PROP_OVERFLOW 58
#define PROP_PADDING 59
#define PROP_PADDING_BOTTOM 60
#define PROP_PADDING_LEFT 61
#define PROP_PADDING_RIGHT 62
#define PROP_PADDING_TOP 63
#define PROP_POSITION 64
#define PROP_TEXT_ALIGN 65
#define PROP_TEXT_DECORATION 66
#define PROP_TEXT_INDENT 67
#define PROP_TEXT_TRANSFORM 68
#define PROP_TOP 69
#define PROP_VERTICAL_ALIGN 70
#define PROP_VISIBILITY 71
#define PROP_WHITE_SPACE 72
#define PROP_WIDTH 73
#define PROP_WORD_SPACING 74
#define PROP_Z_INDEX 75
#define PROP_MAX 76
#define PROP_CURSOR 36
#define PROP_CURSOR_IMAGE 37
#define PROP_DIRECTION 38
#define PROP_DISPLAY 39
#define PROP_FILTER 40
#define PROP_FLOAT 41
#define PROP_FONT 42
#define PROP_FONT_FAMILY 43
#define PROP_FONT_SIZE 44
#define PROP_FONT_STYLE 45
#define PROP_FONT_VARIANT 46
#define PROP_FONT_WEIGHT 47
#define PROP_HEIGHT 48
#define PROP_LEFT 49
#define PROP_LETTER_SPACING 50
#define PROP_LINE_HEIGHT 51
#define PROP_LIST_STYLE 52
#define PROP_LIST_STYLE_IMAGE 53
#define PROP_LIST_STYLE_POSITION 54
#define PROP_LIST_STYLE_TYPE 55
#define PROP_MARGIN 56
#define PROP_MARGIN_BOTTOM 57
#define PROP_MARGIN_LEFT 58
#define PROP_MARGIN_RIGHT 59
#define PROP_MARGIN_TOP 60
#define PROP_OVERFLOW 61
#define PROP_PADDING 62
#define PROP_PADDING_BOTTOM 63
#define PROP_PADDING_LEFT 64
#define PROP_PADDING_RIGHT 65
#define PROP_PADDING_TOP 66
#define PROP_POSITION 67
#define PROP_TEXT_ALIGN 68
#define PROP_TEXT_DECORATION 69
#define PROP_TEXT_INDENT 70
#define PROP_TEXT_TRANSFORM 71
#define PROP_TOP 72
#define PROP_VERTICAL_ALIGN 73
#define PROP_VISIBILITY 74
#define PROP_WHITE_SPACE 75
#define PROP_WIDTH 76
#define PROP_WORD_SPACING 77
#define PROP_Z_INDEX 78
#define PROP_MAX 79

Просмотреть файл

@ -6,12 +6,12 @@
#include "plstr.h"
#include "nsCSSProps.h"
#define TOTAL_KEYWORDS 76
#define TOTAL_KEYWORDS 79
#define MIN_WORD_LENGTH 3
#define MAX_WORD_LENGTH 21
#define MIN_HASH_VALUE 6
#define MAX_HASH_VALUE 212
/* maximum key range = 207, duplicates = 0 */
#define MAX_HASH_VALUE 238
/* maximum key range = 233, duplicates = 0 */
struct StaticNameTable {
@ -50,164 +50,174 @@ PRInt32 nsCSSProps::LookupName(const char* str)
{
static unsigned char asso_values[] =
{
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 30, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 45, 0, 85,
45, 25, 5, 20, 80, 0, 213, 213, 25, 75,
0, 0, 5, 213, 0, 65, 40, 213, 0, 65,
10, 15, 10, 213, 213, 213, 213, 213,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 35, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 45, 0, 85,
80, 25, 5, 0, 80, 0, 239, 239, 25, 90,
0, 0, 5, 239, 0, 65, 40, 35, 0, 80,
10, 15, 5, 239, 239, 239, 239, 239,
};
static unsigned char lengthtable[] =
{
0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 12, 8,
0, 10, 0, 0, 0, 19, 0, 0, 0, 0, 0, 10, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0,
0, 0, 19, 0, 0, 17, 3, 4, 0, 11, 0, 0, 0, 0,
0, 0, 18, 0, 0, 0, 12, 0, 0, 0, 11, 17, 0, 19,
0, 0, 17, 0, 0, 5, 21, 7, 0, 0, 0, 21, 7, 18,
14, 0, 16, 0, 13, 0, 5, 0, 12, 0, 4, 0, 0, 12,
8, 19, 10, 16, 17, 0, 9, 10, 16, 0, 0, 0, 0, 0,
7, 0, 19, 5, 11, 0, 0, 4, 10, 11, 0, 0, 14, 10,
6, 17, 0, 0, 0, 16, 0, 0, 0, 10, 0, 0, 18, 0,
0, 0, 12, 0, 0, 0, 16, 0, 0, 0, 5, 21, 0, 0,
0, 0, 11, 0, 0, 0, 10, 16, 0, 8, 0, 15, 0, 0,
0, 0, 15, 11, 12, 0, 0, 0, 0, 0, 0, 14, 0, 0,
12, 13, 9, 0, 0, 0, 0, 0, 0, 6, 0, 0, 14, 0,
11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0,
0, 11, 12,
0, 0, 19, 0, 0, 0, 3, 4, 0, 11, 17, 0, 0, 0,
0, 7, 18, 0, 0, 0, 12, 0, 14, 0, 11, 17, 0, 19,
0, 0, 0, 0, 0, 5, 21, 17, 0, 0, 0, 21, 7, 18,
0, 0, 16, 0, 0, 0, 5, 0, 12, 0, 4, 0, 0, 12,
0, 19, 0, 16, 17, 13, 9, 10, 16, 0, 0, 0, 0, 0,
0, 8, 19, 5, 11, 0, 0, 4, 10, 0, 0, 0, 14, 10,
6, 0, 0, 9, 0, 16, 17, 0, 0, 10, 11, 0, 18, 0,
0, 6, 12, 0, 0, 0, 16, 7, 0, 0, 10, 21, 0, 0,
0, 0, 11, 12, 0, 0, 10, 0, 0, 8, 0, 5, 0, 0,
0, 0, 15, 0, 12, 0, 0, 0, 16, 0, 0, 0, 0, 0,
12, 13, 9, 0, 11, 0, 0, 0, 0, 6, 0, 0, 14, 0,
0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 14,
0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 12, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0,
13,
};
static struct StaticNameTable wordlist[] =
{
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"border", 9},
{"",}, {"",}, {"",}, {"",},
{"filter", 37},
{"filter", 40},
{"border-color", 14},
{"position", 64},
{"position", 67},
{"",},
{"border-top", 24},
{"",}, {"",}, {"",},
{"border-bottom-color", 11},
{"",}, {"",}, {"",}, {"",}, {"",},
{"visibility", 71},
{"visibility", 74},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",},
{"font-family", 40},
{"font-family", 43},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"border-bottom-style", 12},
{"",}, {"",},
{"border-left-color", 16},
{"top", 69},
{"font", 39},
{"",}, {"",}, {"",},
{"top", 72},
{"font", 42},
{"",},
{"border-left", 15},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"border-left-color", 16},
{"",}, {"",}, {"",}, {"",},
{"padding", 62},
{"border-right-color", 20},
{"",}, {"",}, {"",},
{"border-style", 23},
{"",}, {"",}, {"",},
{"padding-top", 63},
{"",},
{"letter-spacing", 50},
{"",},
{"padding-top", 66},
{"background-filter", 3},
{"",},
{"background-position", 5},
{"",}, {"",},
{"border-left-style", 17},
{"",}, {"",},
{"float", 38},
{"",}, {"",}, {"",}, {"",}, {"",},
{"float", 41},
{"background-x-position", 6},
{"padding", 59},
{"border-left-style", 17},
{"",}, {"",}, {"",},
{"background-y-position", 7},
{"z-index", 75},
{"z-index", 78},
{"border-right-style", 21},
{"letter-spacing", 47},
{"",},
{"",}, {"",},
{"background-image", 4},
{"",},
{"border-bottom", 10},
{"",},
{"",}, {"",}, {"",},
{"color", 35},
{"",},
{"border-right", 19},
{"",},
{"left", 46},
{"left", 49},
{"",}, {"",},
{"font-variant", 43},
{"overflow", 58},
{"font-variant", 46},
{"",},
{"border-bottom-width", 13},
{"background", 0},
{"",},
{"border-top-color", 25},
{"background-repeat", 8},
{"",},
{"font-size", 41},
{"font-style", 42},
{"border-bottom", 10},
{"font-size", 44},
{"font-style", 45},
{"border-top-style", 26},
{"",}, {"",}, {"",}, {"",}, {"",},
{"display", 36},
{"",},
{"list-style-position", 51},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"overflow", 61},
{"list-style-position", 54},
{"clear", 29},
{"text-indent", 67},
{"text-indent", 70},
{"",}, {"",},
{"clip", 30},
{"text-align", 65},
{"font-weight", 44},
{"text-align", 68},
{"",}, {"",}, {"",},
{"vertical-align", 73},
{"list-style", 52},
{"cursor", 36},
{"",}, {"",},
{"vertical-align", 70},
{"list-style", 49},
{"margin", 53},
{"direction", 38},
{"",},
{"list-style-image", 53},
{"border-left-width", 18},
{"",}, {"",}, {"",},
{"list-style-image", 50},
{"",}, {"",}, {"",},
{"margin-top", 57},
{"",}, {"",},
{"background", 0},
{"font-weight", 47},
{"",},
{"border-right-width", 22},
{"",}, {"",}, {"",},
{"padding-left", 61},
{"",}, {"",},
{"margin", 56},
{"padding-left", 64},
{"",}, {"",}, {"",},
{"background-color", 2},
{"",}, {"",}, {"",},
{"width", 73},
{"display", 39},
{"",}, {"",},
{"margin-top", 60},
{"background-attachment", 1},
{"",}, {"",}, {"",}, {"",},
{"line-height", 48},
{"",}, {"",}, {"",},
{"line-height", 51},
{"word-spacing", 77},
{"",}, {"",},
{"clip-right", 33},
{"border-top-width", 27},
{"",},
{"",}, {"",},
{"clip-top", 34},
{"",},
{"text-decoration", 66},
{"width", 76},
{"",}, {"",}, {"",}, {"",},
{"list-style-type", 52},
{"margin-left", 55},
{"list-style-type", 55},
{"",},
{"border-width", 28},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"padding-bottom", 60},
{"",}, {"",},
{"word-spacing", 74},
{"padding-right", 62},
{"",}, {"",}, {"",},
{"border-top-width", 27},
{"",}, {"",}, {"",}, {"",}, {"",},
{"cursor-image", 37},
{"padding-right", 65},
{"clip-left", 32},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"height", 45},
{"",},
{"margin-left", 58},
{"",}, {"",}, {"",}, {"",},
{"height", 48},
{"",}, {"",},
{"text-transform", 68},
{"padding-bottom", 63},
{"",}, {"",}, {"",}, {"",}, {"",},
{"text-decoration", 69},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"text-transform", 71},
{"",},
{"clip-bottom", 31},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",},
{"margin-bottom", 54},
{"",}, {"",},
{"white-space", 72},
{"margin-right", 56},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"margin-right", 59},
{"",}, {"",}, {"",},
{"white-space", 75},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"margin-bottom", 57},
};
if (str != NULL) {
@ -304,44 +314,47 @@ const nsCSSProps::NameTableEntry nsCSSProps::kNameTable[] = {
{ "clip-right", 33 },
{ "clip-top", 34 },
{ "color", 35 },
{ "display", 36 },
{ "filter", 37 },
{ "float", 38 },
{ "font", 39 },
{ "font-family", 40 },
{ "font-size", 41 },
{ "font-style", 42 },
{ "font-variant", 43 },
{ "font-weight", 44 },
{ "height", 45 },
{ "left", 46 },
{ "letter-spacing", 47 },
{ "line-height", 48 },
{ "list-style", 49 },
{ "list-style-image", 50 },
{ "list-style-position", 51 },
{ "list-style-type", 52 },
{ "margin", 53 },
{ "margin-bottom", 54 },
{ "margin-left", 55 },
{ "margin-right", 56 },
{ "margin-top", 57 },
{ "overflow", 58 },
{ "padding", 59 },
{ "padding-bottom", 60 },
{ "padding-left", 61 },
{ "padding-right", 62 },
{ "padding-top", 63 },
{ "position", 64 },
{ "text-align", 65 },
{ "text-decoration", 66 },
{ "text-indent", 67 },
{ "text-transform", 68 },
{ "top", 69 },
{ "vertical-align", 70 },
{ "visibility", 71 },
{ "white-space", 72 },
{ "width", 73 },
{ "word-spacing", 74 },
{ "z-index", 75 },
{ "cursor", 36 },
{ "cursor-image", 37 },
{ "direction", 38 },
{ "display", 39 },
{ "filter", 40 },
{ "float", 41 },
{ "font", 42 },
{ "font-family", 43 },
{ "font-size", 44 },
{ "font-style", 45 },
{ "font-variant", 46 },
{ "font-weight", 47 },
{ "height", 48 },
{ "left", 49 },
{ "letter-spacing", 50 },
{ "line-height", 51 },
{ "list-style", 52 },
{ "list-style-image", 53 },
{ "list-style-position", 54 },
{ "list-style-type", 55 },
{ "margin", 56 },
{ "margin-bottom", 57 },
{ "margin-left", 58 },
{ "margin-right", 59 },
{ "margin-top", 60 },
{ "overflow", 61 },
{ "padding", 62 },
{ "padding-bottom", 63 },
{ "padding-left", 64 },
{ "padding-right", 65 },
{ "padding-top", 66 },
{ "position", 67 },
{ "text-align", 68 },
{ "text-decoration", 69 },
{ "text-indent", 70 },
{ "text-transform", 71 },
{ "top", 72 },
{ "vertical-align", 73 },
{ "visibility", 74 },
{ "white-space", 75 },
{ "width", 76 },
{ "word-spacing", 77 },
{ "z-index", 78 },
};

Просмотреть файл

@ -6,12 +6,12 @@
#include "plstr.h"
#include "nsCSSProps.h"
#define TOTAL_KEYWORDS 76
#define TOTAL_KEYWORDS 79
#define MIN_WORD_LENGTH 3
#define MAX_WORD_LENGTH 21
#define MIN_HASH_VALUE 6
#define MAX_HASH_VALUE 212
/* maximum key range = 207, duplicates = 0 */
#define MAX_HASH_VALUE 238
/* maximum key range = 233, duplicates = 0 */
struct StaticNameTable {
@ -50,164 +50,174 @@ PRInt32 nsCSSProps::LookupName(const char* str)
{
static unsigned char asso_values[] =
{
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 30, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 45, 0, 85,
45, 25, 5, 20, 80, 0, 213, 213, 25, 75,
0, 0, 5, 213, 0, 65, 40, 213, 0, 65,
10, 15, 10, 213, 213, 213, 213, 213,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 35, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 239, 239, 239,
239, 239, 239, 239, 239, 239, 239, 45, 0, 85,
80, 25, 5, 0, 80, 0, 239, 239, 25, 90,
0, 0, 5, 239, 0, 65, 40, 35, 0, 80,
10, 15, 5, 239, 239, 239, 239, 239,
};
static unsigned char lengthtable[] =
{
0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 12, 8,
0, 10, 0, 0, 0, 19, 0, 0, 0, 0, 0, 10, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0,
0, 0, 19, 0, 0, 17, 3, 4, 0, 11, 0, 0, 0, 0,
0, 0, 18, 0, 0, 0, 12, 0, 0, 0, 11, 17, 0, 19,
0, 0, 17, 0, 0, 5, 21, 7, 0, 0, 0, 21, 7, 18,
14, 0, 16, 0, 13, 0, 5, 0, 12, 0, 4, 0, 0, 12,
8, 19, 10, 16, 17, 0, 9, 10, 16, 0, 0, 0, 0, 0,
7, 0, 19, 5, 11, 0, 0, 4, 10, 11, 0, 0, 14, 10,
6, 17, 0, 0, 0, 16, 0, 0, 0, 10, 0, 0, 18, 0,
0, 0, 12, 0, 0, 0, 16, 0, 0, 0, 5, 21, 0, 0,
0, 0, 11, 0, 0, 0, 10, 16, 0, 8, 0, 15, 0, 0,
0, 0, 15, 11, 12, 0, 0, 0, 0, 0, 0, 14, 0, 0,
12, 13, 9, 0, 0, 0, 0, 0, 0, 6, 0, 0, 14, 0,
11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0,
0, 11, 12,
0, 0, 19, 0, 0, 0, 3, 4, 0, 11, 17, 0, 0, 0,
0, 7, 18, 0, 0, 0, 12, 0, 14, 0, 11, 17, 0, 19,
0, 0, 0, 0, 0, 5, 21, 17, 0, 0, 0, 21, 7, 18,
0, 0, 16, 0, 0, 0, 5, 0, 12, 0, 4, 0, 0, 12,
0, 19, 0, 16, 17, 13, 9, 10, 16, 0, 0, 0, 0, 0,
0, 8, 19, 5, 11, 0, 0, 4, 10, 0, 0, 0, 14, 10,
6, 0, 0, 9, 0, 16, 17, 0, 0, 10, 11, 0, 18, 0,
0, 6, 12, 0, 0, 0, 16, 7, 0, 0, 10, 21, 0, 0,
0, 0, 11, 12, 0, 0, 10, 0, 0, 8, 0, 5, 0, 0,
0, 0, 15, 0, 12, 0, 0, 0, 16, 0, 0, 0, 0, 0,
12, 13, 9, 0, 11, 0, 0, 0, 0, 6, 0, 0, 14, 0,
0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 14,
0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 12, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0,
13,
};
static struct StaticNameTable wordlist[] =
{
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"border", 9},
{"",}, {"",}, {"",}, {"",},
{"filter", 37},
{"filter", 40},
{"border-color", 14},
{"position", 64},
{"position", 67},
{"",},
{"border-top", 24},
{"",}, {"",}, {"",},
{"border-bottom-color", 11},
{"",}, {"",}, {"",}, {"",}, {"",},
{"visibility", 71},
{"visibility", 74},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",},
{"font-family", 40},
{"font-family", 43},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"border-bottom-style", 12},
{"",}, {"",},
{"border-left-color", 16},
{"top", 69},
{"font", 39},
{"",}, {"",}, {"",},
{"top", 72},
{"font", 42},
{"",},
{"border-left", 15},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"border-left-color", 16},
{"",}, {"",}, {"",}, {"",},
{"padding", 62},
{"border-right-color", 20},
{"",}, {"",}, {"",},
{"border-style", 23},
{"",}, {"",}, {"",},
{"padding-top", 63},
{"",},
{"letter-spacing", 50},
{"",},
{"padding-top", 66},
{"background-filter", 3},
{"",},
{"background-position", 5},
{"",}, {"",},
{"border-left-style", 17},
{"",}, {"",},
{"float", 38},
{"",}, {"",}, {"",}, {"",}, {"",},
{"float", 41},
{"background-x-position", 6},
{"padding", 59},
{"border-left-style", 17},
{"",}, {"",}, {"",},
{"background-y-position", 7},
{"z-index", 75},
{"z-index", 78},
{"border-right-style", 21},
{"letter-spacing", 47},
{"",},
{"",}, {"",},
{"background-image", 4},
{"",},
{"border-bottom", 10},
{"",},
{"",}, {"",}, {"",},
{"color", 35},
{"",},
{"border-right", 19},
{"",},
{"left", 46},
{"left", 49},
{"",}, {"",},
{"font-variant", 43},
{"overflow", 58},
{"font-variant", 46},
{"",},
{"border-bottom-width", 13},
{"background", 0},
{"",},
{"border-top-color", 25},
{"background-repeat", 8},
{"",},
{"font-size", 41},
{"font-style", 42},
{"border-bottom", 10},
{"font-size", 44},
{"font-style", 45},
{"border-top-style", 26},
{"",}, {"",}, {"",}, {"",}, {"",},
{"display", 36},
{"",},
{"list-style-position", 51},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"overflow", 61},
{"list-style-position", 54},
{"clear", 29},
{"text-indent", 67},
{"text-indent", 70},
{"",}, {"",},
{"clip", 30},
{"text-align", 65},
{"font-weight", 44},
{"text-align", 68},
{"",}, {"",}, {"",},
{"vertical-align", 73},
{"list-style", 52},
{"cursor", 36},
{"",}, {"",},
{"vertical-align", 70},
{"list-style", 49},
{"margin", 53},
{"direction", 38},
{"",},
{"list-style-image", 53},
{"border-left-width", 18},
{"",}, {"",}, {"",},
{"list-style-image", 50},
{"",}, {"",}, {"",},
{"margin-top", 57},
{"",}, {"",},
{"background", 0},
{"font-weight", 47},
{"",},
{"border-right-width", 22},
{"",}, {"",}, {"",},
{"padding-left", 61},
{"",}, {"",},
{"margin", 56},
{"padding-left", 64},
{"",}, {"",}, {"",},
{"background-color", 2},
{"",}, {"",}, {"",},
{"width", 73},
{"display", 39},
{"",}, {"",},
{"margin-top", 60},
{"background-attachment", 1},
{"",}, {"",}, {"",}, {"",},
{"line-height", 48},
{"",}, {"",}, {"",},
{"line-height", 51},
{"word-spacing", 77},
{"",}, {"",},
{"clip-right", 33},
{"border-top-width", 27},
{"",},
{"",}, {"",},
{"clip-top", 34},
{"",},
{"text-decoration", 66},
{"width", 76},
{"",}, {"",}, {"",}, {"",},
{"list-style-type", 52},
{"margin-left", 55},
{"list-style-type", 55},
{"",},
{"border-width", 28},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"padding-bottom", 60},
{"",}, {"",},
{"word-spacing", 74},
{"padding-right", 62},
{"",}, {"",}, {"",},
{"border-top-width", 27},
{"",}, {"",}, {"",}, {"",}, {"",},
{"cursor-image", 37},
{"padding-right", 65},
{"clip-left", 32},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"height", 45},
{"",},
{"margin-left", 58},
{"",}, {"",}, {"",}, {"",},
{"height", 48},
{"",}, {"",},
{"text-transform", 68},
{"padding-bottom", 63},
{"",}, {"",}, {"",}, {"",}, {"",},
{"text-decoration", 69},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"text-transform", 71},
{"",},
{"clip-bottom", 31},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",},
{"margin-bottom", 54},
{"",}, {"",},
{"white-space", 72},
{"margin-right", 56},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"margin-right", 59},
{"",}, {"",}, {"",},
{"white-space", 75},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"margin-bottom", 57},
};
if (str != NULL) {
@ -304,44 +314,47 @@ const nsCSSProps::NameTableEntry nsCSSProps::kNameTable[] = {
{ "clip-right", 33 },
{ "clip-top", 34 },
{ "color", 35 },
{ "display", 36 },
{ "filter", 37 },
{ "float", 38 },
{ "font", 39 },
{ "font-family", 40 },
{ "font-size", 41 },
{ "font-style", 42 },
{ "font-variant", 43 },
{ "font-weight", 44 },
{ "height", 45 },
{ "left", 46 },
{ "letter-spacing", 47 },
{ "line-height", 48 },
{ "list-style", 49 },
{ "list-style-image", 50 },
{ "list-style-position", 51 },
{ "list-style-type", 52 },
{ "margin", 53 },
{ "margin-bottom", 54 },
{ "margin-left", 55 },
{ "margin-right", 56 },
{ "margin-top", 57 },
{ "overflow", 58 },
{ "padding", 59 },
{ "padding-bottom", 60 },
{ "padding-left", 61 },
{ "padding-right", 62 },
{ "padding-top", 63 },
{ "position", 64 },
{ "text-align", 65 },
{ "text-decoration", 66 },
{ "text-indent", 67 },
{ "text-transform", 68 },
{ "top", 69 },
{ "vertical-align", 70 },
{ "visibility", 71 },
{ "white-space", 72 },
{ "width", 73 },
{ "word-spacing", 74 },
{ "z-index", 75 },
{ "cursor", 36 },
{ "cursor-image", 37 },
{ "direction", 38 },
{ "display", 39 },
{ "filter", 40 },
{ "float", 41 },
{ "font", 42 },
{ "font-family", 43 },
{ "font-size", 44 },
{ "font-style", 45 },
{ "font-variant", 46 },
{ "font-weight", 47 },
{ "height", 48 },
{ "left", 49 },
{ "letter-spacing", 50 },
{ "line-height", 51 },
{ "list-style", 52 },
{ "list-style-image", 53 },
{ "list-style-position", 54 },
{ "list-style-type", 55 },
{ "margin", 56 },
{ "margin-bottom", 57 },
{ "margin-left", 58 },
{ "margin-right", 59 },
{ "margin-top", 60 },
{ "overflow", 61 },
{ "padding", 62 },
{ "padding-bottom", 63 },
{ "padding-left", 64 },
{ "padding-right", 65 },
{ "padding-top", 66 },
{ "position", 67 },
{ "text-align", 68 },
{ "text-decoration", 69 },
{ "text-indent", 70 },
{ "text-transform", 71 },
{ "top", 72 },
{ "vertical-align", 73 },
{ "visibility", 74 },
{ "white-space", 75 },
{ "width", 76 },
{ "word-spacing", 77 },
{ "z-index", 78 },
};