cssproperties.c
来自「手机浏览器源码程序,功能强大」· C语言 代码 · 共 804 行 · 第 1/2 页
C
804 行
#line 124 "cssproperties.gperf"
{"text-overline-mode", CSS_PROP_TEXT_OVERLINE_MODE},
#line 57 "cssproperties.gperf"
{"font-size", CSS_PROP_FONT_SIZE},
#line 43 "cssproperties.gperf"
{"-khtml-box-pack", CSS_PROP__KHTML_BOX_PACK},
#line 36 "cssproperties.gperf"
{"-khtml-box-align", CSS_PROP__KHTML_BOX_ALIGN},
#line 59 "cssproperties.gperf"
{"font-stretch", CSS_PROP_FONT_STRETCH},
#line 140 "cssproperties.gperf"
{"-khtml-user-select", CSS_PROP__KHTML_USER_SELECT},
#line 81 "cssproperties.gperf"
{"-khtml-marquee-direction", CSS_PROP__KHTML_MARQUEE_DIRECTION},
#line 40 "cssproperties.gperf"
{"-khtml-box-lines", CSS_PROP__KHTML_BOX_LINES},
#line 82 "cssproperties.gperf"
{"-khtml-marquee-increment", CSS_PROP__KHTML_MARQUEE_INCREMENT},
#line 83 "cssproperties.gperf"
{"-khtml-marquee-repetition", CSS_PROP__KHTML_MARQUEE_REPETITION},
#line 129 "cssproperties.gperf"
{"text-underline", CSS_PROP_TEXT_UNDERLINE},
#line 130 "cssproperties.gperf"
{"text-underline-color", CSS_PROP_TEXT_UNDERLINE_COLOR},
#line 105 "cssproperties.gperf"
{"page-break-after", CSS_PROP_PAGE_BREAK_AFTER},
#line 92 "cssproperties.gperf"
{"opacity", CSS_PROP_OPACITY},
#line 131 "cssproperties.gperf"
{"text-underline-mode", CSS_PROP_TEXT_UNDERLINE_MODE},
#line 84 "cssproperties.gperf"
{"-khtml-marquee-speed", CSS_PROP__KHTML_MARQUEE_SPEED},
#line 106 "cssproperties.gperf"
{"page-break-before", CSS_PROP_PAGE_BREAK_BEFORE},
#line 145 "cssproperties.gperf"
{"width", CSS_PROP_WIDTH},
#line 90 "cssproperties.gperf"
{"min-width", CSS_PROP_MIN_WIDTH},
#line 157 "cssproperties.gperf"
{"border-width", CSS_PROP_BORDER_WIDTH},
#line 31 "cssproperties.gperf"
{"border-top-width", CSS_PROP_BORDER_TOP_WIDTH},
#line 53 "cssproperties.gperf"
{"display", CSS_PROP_DISPLAY},
#line 33 "cssproperties.gperf"
{"border-bottom-width", CSS_PROP_BORDER_BOTTOM_WIDTH},
#line 58 "cssproperties.gperf"
{"-khtml-font-size-delta", CSS_PROP__KHTML_FONT_SIZE_DELTA},
#line 169 "cssproperties.gperf"
{"scrollbar-arrow-color", CSS_PROP_SCROLLBAR_ARROW_COLOR},
#line 54 "cssproperties.gperf"
{"empty-cells", CSS_PROP_EMPTY_CELLS},
#line 152 "cssproperties.gperf"
{"border-style", CSS_PROP_BORDER_STYLE},
#line 27 "cssproperties.gperf"
{"border-top-style", CSS_PROP_BORDER_TOP_STYLE},
#line 116 "cssproperties.gperf"
{"text-line-through", CSS_PROP_TEXT_LINE_THROUGH},
#line 29 "cssproperties.gperf"
{"border-bottom-style", CSS_PROP_BORDER_BOTTOM_STYLE},
#line 143 "cssproperties.gperf"
{"white-space", CSS_PROP_WHITE_SPACE},
#line 147 "cssproperties.gperf"
{"word-spacing", CSS_PROP_WORD_SPACING},
#line 117 "cssproperties.gperf"
{"text-line-through-color", CSS_PROP_TEXT_LINE_THROUGH_COLOR},
#line 41 "cssproperties.gperf"
{"-khtml-box-ordinal-group", CSS_PROP__KHTML_BOX_ORDINAL_GROUP},
#line 118 "cssproperties.gperf"
{"text-line-through-mode", CSS_PROP_TEXT_LINE_THROUGH_MODE},
#line 159 "cssproperties.gperf"
{"list-style", CSS_PROP_LIST_STYLE},
#line 16 "cssproperties.gperf"
{"background-position-x", CSS_PROP_BACKGROUND_POSITION_X},
#line 86 "cssproperties.gperf"
{"-khtml-match-nearest-mail-blockquote-color", CSS_PROP__KHTML_MATCH_NEAREST_MAIL_BLOCKQUOTE_COLOR},
#line 32 "cssproperties.gperf"
{"border-right-width", CSS_PROP_BORDER_RIGHT_WIDTH},
#line 142 "cssproperties.gperf"
{"visibility", CSS_PROP_VISIBILITY},
#line 134 "cssproperties.gperf"
{"-apple-text-size-adjust", CSS_PROP__APPLE_TEXT_SIZE_ADJUST},
#line 128 "cssproperties.gperf"
{"text-transform", CSS_PROP_TEXT_TRANSFORM},
#line 164 "cssproperties.gperf"
{"scrollbar-shadow-color", CSS_PROP_SCROLLBAR_SHADOW_COLOR},
#line 112 "cssproperties.gperf"
{"table-layout", CSS_PROP_TABLE_LAYOUT},
#line 28 "cssproperties.gperf"
{"border-right-style", CSS_PROP_BORDER_RIGHT_STYLE},
#line 97 "cssproperties.gperf"
{"outline-width", CSS_PROP_OUTLINE_WIDTH},
#line 69 "cssproperties.gperf"
{"list-style-position", CSS_PROP_LIST_STYLE_POSITION},
#line 68 "cssproperties.gperf"
{"list-style-image", CSS_PROP_LIST_STYLE_IMAGE},
#line 167 "cssproperties.gperf"
{"scrollbar-darkshadow-color", CSS_PROP_SCROLLBAR_DARKSHADOW_COLOR},
#line 96 "cssproperties.gperf"
{"outline-style", CSS_PROP_OUTLINE_STYLE},
#line 88 "cssproperties.gperf"
{"max-width", CSS_PROP_MAX_WIDTH},
#line 127 "cssproperties.gperf"
{"text-shadow", CSS_PROP_TEXT_SHADOW},
#line 17 "cssproperties.gperf"
{"background-position-y", CSS_PROP_BACKGROUND_POSITION_Y},
#line 34 "cssproperties.gperf"
{"border-left-width", CSS_PROP_BORDER_LEFT_WIDTH},
#line 60 "cssproperties.gperf"
{"font-style", CSS_PROP_FONT_STYLE},
#line 95 "cssproperties.gperf"
{"outline-offset", CSS_PROP_OUTLINE_OFFSET},
#line 98 "cssproperties.gperf"
{"overflow", CSS_PROP_OVERFLOW},
#line 62 "cssproperties.gperf"
{"font-weight", CSS_PROP_FONT_WEIGHT},
#line 30 "cssproperties.gperf"
{"border-left-style", CSS_PROP_BORDER_LEFT_STYLE},
#line 126 "cssproperties.gperf"
{"text-overline-width", CSS_PROP_TEXT_OVERLINE_WIDTH},
#line 38 "cssproperties.gperf"
{"-khtml-box-flex", CSS_PROP__KHTML_BOX_FLEX},
#line 146 "cssproperties.gperf"
{"word-wrap", CSS_PROP_WORD_WRAP},
#line 125 "cssproperties.gperf"
{"text-overline-style", CSS_PROP_TEXT_OVERLINE_STYLE},
#line 85 "cssproperties.gperf"
{"-khtml-marquee-style", CSS_PROP__KHTML_MARQUEE_STYLE},
#line 133 "cssproperties.gperf"
{"text-underline-width", CSS_PROP_TEXT_UNDERLINE_WIDTH},
#line 144 "cssproperties.gperf"
{"widows", CSS_PROP_WIDOWS},
#line 132 "cssproperties.gperf"
{"text-underline-style", CSS_PROP_TEXT_UNDERLINE_STYLE},
#line 120 "cssproperties.gperf"
{"text-line-through-width", CSS_PROP_TEXT_LINE_THROUGH_WIDTH},
#line 56 "cssproperties.gperf"
{"font-family", CSS_PROP_FONT_FAMILY},
#line 70 "cssproperties.gperf"
{"list-style-type", CSS_PROP_LIST_STYLE_TYPE},
#line 170 "cssproperties.gperf"
{"-khtml-text-decorations-in-effect", CSS_PROP__KHTML_TEXT_DECORATIONS_IN_EFFECT},
#line 139 "cssproperties.gperf"
{"-khtml-user-modify", CSS_PROP__KHTML_USER_MODIFY},
#line 119 "cssproperties.gperf"
{"text-line-through-style", CSS_PROP_TEXT_LINE_THROUGH_STYLE},
#line 121 "cssproperties.gperf"
{"text-overflow", CSS_PROP_TEXT_OVERFLOW},
#line 39 "cssproperties.gperf"
{"-khtml-box-flex-group", CSS_PROP__KHTML_BOX_FLEX_GROUP}
};
static const short lookup[] =
{
-1, -1, -1, 0, 1, 2, 3, -1, -1, -1,
4, 5, 6, -1, 7, 8, -1, 9, 10, -1,
-1, 11, -1, -1, 12, -1, -1, 13, -1, -1,
-1, 14, 15, 16, 17, 18, 19, -1, 20, 21,
-1, -1, 22, -1, -1, 23, -1, 24, -1, 25,
26, -1, -1, -1, -1, -1, -1, 27, -1, -1,
-1, -1, -1, 28, -1, -1, 29, -1, -1, 30,
31, 32, -1, -1, 33, -1, 34, 35, 36, 37,
-1, -1, 38, -1, 39, -1, 40, 41, 42, -1,
-1, -1, 43, 44, -1, -1, -1, -1, 45, -1,
-1, 46, 47, -1, -1, -1, -1, 48, -1, 49,
50, -1, -1, -1, -1, -1, -1, 51, -1, -1,
-1, 52, -1, 53, 54, -1, -1, -1, -1, -1,
55, 56, -1, -1, -1, 57, 58, 59, -1, 60,
61, -1, -1, -1, 62, 63, -1, 64, -1, -1,
65, 66, -1, -1, -1, -1, 67, 68, -1, -1,
-1, 69, 70, -1, 71, -1, 72, -1, -1, -1,
73, -1, 74, -1, -1, 75, 76, 77, 78, 79,
80, 81, -1, -1, 82, 83, -1, 84, 85, 86,
87, 88, 89, 90, 91, -1, 92, -1, -1, 93,
94, -1, -1, -1, -1, -1, -1, -1, -1, 95,
-1, -1, -1, -1, -1, 96, 97, 98, -1, 99,
100, -1, 101, -1, -1, 102, -1, -1, -1, 103,
-1, -1, -1, -1, -1, -1, -1, 104, -1, -1,
-1, 105, 106, -1, 107, -1, -1, 108, -1, -1,
-1, 109, -1, -1, -1, -1, 110, 111, -1, -1,
-1, 112, 113, -1, 114, -1, 115, 116, 117, 118,
-1, -1, 119, -1, -1, 120, 121, 122, -1, -1,
-1, -1, -1, 123, -1, 124, -1, -1, 125, 126,
-1, -1, 127, -1, -1, -1, -1, 128, -1, -1,
-1, -1, -1, 129, -1, -1, -1, -1, 130, 131,
-1, 132, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 133, -1, -1, -1, -1, -1, -1, 134, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 135,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 136, -1, -1, -1, -1, 137, -1, -1, -1,
-1, -1, 138, -1, -1, 139, -1, -1, -1, 140,
-1, -1, -1, 141, -1, -1, 142, -1, -1, -1,
-1, -1, 143, -1, 144, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 145, -1, -1, -1, 146,
-1, -1, -1, -1, 147, 148, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 149, -1, -1, -1, -1,
-1, 150, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 151, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 152, -1,
-1, 153, -1, -1, -1, 154, -1, -1, 155, -1,
-1, -1, -1, 156, -1, -1, -1, -1, 157, -1,
-1, -1, -1, 158, -1, -1, 159
};
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{
register int key = hash_prop (str, len);
if (key <= MAX_HASH_VALUE && key >= 0)
{
register int index = lookup[key];
if (index >= 0)
{
register const char *s = wordlist_prop[index].name;
if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
return &wordlist_prop[index];
}
}
}
return 0;
}
#line 171 "cssproperties.gperf"
static const char * const propertyList[] = {
"",
"background-color",
"background-image",
"background-repeat",
"background-attachment",
"background-position",
"background-position-x",
"background-position-y",
"-khtml-binding",
"border-collapse",
"border-spacing",
"-khtml-border-horizontal-spacing",
"-khtml-border-vertical-spacing",
"border-top-color",
"border-right-color",
"border-bottom-color",
"border-left-color",
"border-top-style",
"border-right-style",
"border-bottom-style",
"border-left-style",
"border-top-width",
"border-right-width",
"border-bottom-width",
"border-left-width",
"bottom",
"-khtml-box-align",
"-khtml-box-direction",
"-khtml-box-flex",
"-khtml-box-flex-group",
"-khtml-box-lines",
"-khtml-box-ordinal-group",
"-khtml-box-orient",
"-khtml-box-pack",
"caption-side",
"clear",
"clip",
"color",
"content",
"counter-increment",
"counter-reset",
"cursor",
"direction",
"display",
"empty-cells",
"float",
"font-family",
"font-size",
"-khtml-font-size-delta",
"font-stretch",
"font-style",
"font-variant",
"font-weight",
"height",
"left",
"letter-spacing",
"-apple-line-clamp",
"line-height",
"list-style-image",
"list-style-position",
"list-style-type",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"-khtml-line-break",
"-khtml-margin-collapse",
"-khtml-margin-top-collapse",
"-khtml-margin-bottom-collapse",
"-khtml-margin-start",
"-khtml-marquee",
"-khtml-marquee-direction",
"-khtml-marquee-increment",
"-khtml-marquee-repetition",
"-khtml-marquee-speed",
"-khtml-marquee-style",
"-khtml-match-nearest-mail-blockquote-color",
"max-height",
"max-width",
"min-height",
"min-width",
"-khtml-nbsp-mode",
"opacity",
"orphans",
"outline-color",
"outline-offset",
"outline-style",
"outline-width",
"overflow",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"-khtml-padding-start",
"page",
"page-break-after",
"page-break-before",
"page-break-inside",
"position",
"quotes",
"right",
"size",
"table-layout",
"text-align",
"text-decoration",
"text-indent",
"text-line-through",
"text-line-through-color",
"text-line-through-mode",
"text-line-through-style",
"text-line-through-width",
"text-overflow",
"text-overline",
"text-overline-color",
"text-overline-mode",
"text-overline-style",
"text-overline-width",
"text-shadow",
"text-transform",
"text-underline",
"text-underline-color",
"text-underline-mode",
"text-underline-style",
"text-underline-width",
"-apple-text-size-adjust",
"-apple-dashboard-region",
"top",
"unicode-bidi",
"-khtml-user-drag",
"-khtml-user-modify",
"-khtml-user-select",
"vertical-align",
"visibility",
"white-space",
"widows",
"width",
"word-wrap",
"word-spacing",
"z-index",
"background",
"border",
"border-color",
"border-style",
"border-top",
"border-right",
"border-bottom",
"border-left",
"border-width",
"font",
"list-style",
"margin",
"outline",
"padding",
"scrollbar-face-color",
"scrollbar-shadow-color",
"scrollbar-highlight-color",
"scrollbar-3dlight-color",
"scrollbar-darkshadow-color",
"scrollbar-track-color",
"scrollbar-arrow-color",
"-khtml-text-decorations-in-effect",
0
};
DOMString getPropertyName(unsigned short id)
{
if(id >= CSS_PROP_TOTAL || id == 0)
return DOMString();
else
return DOMString(propertyList[id]);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?