cssproperties.c

来自「将konqueror浏览器移植到ARM9 2410中」· C语言 代码 · 共 466 行 · 第 1/2 页

C
466
字号
      {"text-shadow", CSS_PROP_TEXT_SHADOW},      {"scrollbar-shadow-color", CSS_PROP_SCROLLBAR_SHADOW_COLOR},      {"list-style-type", CSS_PROP_LIST_STYLE_TYPE},      {"background-position", CSS_PROP_BACKGROUND_POSITION},      {"background-position-y", CSS_PROP_BACKGROUND_POSITION_Y},      {"list-style-position", CSS_PROP_LIST_STYLE_POSITION},      {"scrollbar-darkshadow-color", CSS_PROP_SCROLLBAR_DARKSHADOW_COLOR},      {"background-position-x", CSS_PROP_BACKGROUND_POSITION_X}    };  static const signed char lookup[] =    {       -1,  -1,  -1,  -1,  -1,   0,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,   1,  -1,  -1,  -1,  -1,        2,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,   3,  -1,   4,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,   5,   6,  -1,  -1,  -1,       -1,  -1,   7,  -1,   8,  -1,  -1,   9,  -1,  -1,       -1,  -1,  -1,  10,  -1,  -1,  -1,  11,  -1,  -1,       -1,  -1,  -1,  12,  -1,  -1,  -1,  -1,  -1,  13,       -1,  14,  -1,  15,  16,  -1,  17,  18,  -1,  19,       -1,  -1,  -1,  -1,  20,  -1,  -1,  21,  -1,  -1,       -1,  22,  23,  -1,  -1,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  24,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,       25,  -1,  -1,  -1,  -1,  -1,  26,  27,  -1,  -1,       28,  -1,  29,  -1,  -1,  -1,  -1,  -1,  30,  31,       -1,  32,  33,  -1,  34,  35,  36,  -1,  -1,  -1,       -1,  37,  38,  39,  -1,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  -1,  40,  -1,  -1,       -1,  -1,  -1,  41,  -1,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,       42,  -1,  43,  -1,  -1,  -1,  -1,  -1,  44,  -1,       -1,  -1,  45,  46,  -1,  -1,  -1,  -1,  47,  -1,       -1,  -1,  -1,  48,  -1,  -1,  49,  -1,  -1,  50,       -1,  -1,  -1,  51,  -1,  -1,  52,  53,  -1,  -1,       -1,  -1,  -1,  -1,  54,  -1,  -1,  55,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  56,  57,  58,  -1,  59,       60,  -1,  -1,  -1,  -1,  61,  62,  -1,  -1,  -1,       63,  -1,  64,  -1,  -1,  65,  -1,  -1,  66,  -1,       67,  68,  -1,  69,  -1,  -1,  70,  -1,  -1,  -1,       71,  -1,  72,  73,  74,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  75,  -1,  76,  77,  78,  79,  -1,  -1,       80,  -1,  -1,  -1,  -1,  -1,  -1,  81,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,       -1,  82,  -1,  -1,  83,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  84,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  85,  86,  -1,  -1,       -1,  87,  -1,  -1,  -1,  -1,  88,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  89,  90,  91,  92,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  93,  -1,  -1,  -1,       -1,  94,  -1,  -1,  -1,  -1,  95,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,       -1,  96,  -1,  -1,  -1,  -1,  -1,  97,  -1,  98,       -1,  -1,  -1,  99,  -1, 100,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1, 101,  -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,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  -1, 102,  -1,  -1,       -1,  -1,  -1,  -1, 103,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,       -1, 104, 105,  -1,  -1,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1, 106,  -1,  -1,  -1, 107,       -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,  -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,  -1,  -1,  -1,  -1,  -1,  -1,       -1,  -1,  -1,  -1,  -1,  -1, 108,  -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,  -1,       -1,  -1,  -1,  -1, 109,  -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, 110,  -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,  -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, 111    };  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;}static const char * propertyList[] = {"","background-color", "background-image", "background-repeat", "background-attachment", "background-position", "background-position-x", "background-position-y", "border-collapse", "border-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", "caption-side", "clear", "clip", "color", "content", "counter-increment", "counter-reset", "cursor", "direction", "display", "empty-cells", "float", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "height", "left", "letter-spacing", "line-height", "list-style-image", "list-style-position", "list-style-type", "margin-top", "margin-right", "margin-bottom", "margin-left", "marker-offset", "max-height", "max-width", "min-height", "min-width", "orphans", "outline-color", "outline-style", "outline-width", "overflow", "padding-top", "padding-right", "padding-bottom", "padding-left", "page", "page-break-after", "page-break-before", "page-break-inside", "position", "quotes", "right", "size", "table-layout", "text-align", "text-decoration", "text-decoration-color", "text-indent", "text-shadow", "text-transform", "top", "unicode-bidi", "vertical-align", "visibility", "white-space", "widows", "width", "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", "-konq-flow-mode",     0};DOMString getPropertyName(unsigned short id){    if(id >= CSS_PROP_TOTAL || id == 0)      return 0;    else      return DOMString(propertyList[id]);};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?