Changeset 54472 in webkit
- Timestamp:
- Feb 7, 2010 1:08:10 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r54470 r54472 1 2010-02-07 Daniel Bates <dbates@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=34402 6 7 Tests that all of the numeric CSS3 list-style-types are supported. 8 9 * fast/lists/w3-css3-list-styles-numeric.html: Added. 10 * platform/mac/fast/lists/w3-css3-list-styles-numeric-expected.txt: Added. 11 1 12 2010-02-07 Pavel Feldman <pfeldman@chromium.org> 2 13 -
trunk/WebCore/ChangeLog
r54471 r54472 1 2010-02-07 Daniel Bates <dbates@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=34402 6 7 Implements all of the numeric CSS3 list-style-types as per 8 section 4.3 of the CSS3 Lists module <http://www.w3.org/TR/css3-lists/#numeric>. 9 10 Test: fast/lists/w3-css3-list-styles-numeric.html 11 12 * css/CSSPrimitiveValueMappings.h: 13 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): 14 * css/CSSValueKeywords.in: 15 * inspector/front-end/SourceCSSTokenizer.re2js: 16 * platform/text/CharacterNames.h: Added constant hyphenMinus. 17 * rendering/RenderListMarker.cpp: 18 (WebCore::): Defined enum SequenceType. 19 (WebCore::toAlphabeticOrNumeric): Added. 20 (WebCore::toAlphabetic): Modified to call WebCore::toAlphabeticOrNumeric. 21 (WebCore::toNumeric): Added. 22 (WebCore::listMarkerSuffix): 23 (WebCore::listMarkerText): 24 (WebCore::RenderListMarker::paint): 25 (WebCore::RenderListMarker::calcPrefWidths): 26 (WebCore::RenderListMarker::getRelativeMarkerRect): 27 * rendering/style/RenderStyle.h: 28 (WebCore::): 29 * rendering/style/RenderStyleConstants.h: Added numeric list style types 30 and fixed indent level for the enum values. 31 (WebCore::): 32 1 33 2010-02-07 Ismail Donmez <ismail@namtrac.org> 2 34 -
trunk/WebCore/css/CSSPrimitiveValueMappings.h
r53452 r54472 946 946 m_value.ident = CSSValueAmharicAbegede; 947 947 break; 948 case ArabicIndic: 949 m_value.ident = CSSValueArabicIndic; 950 break; 948 951 case Armenian: 949 952 m_value.ident = CSSValueArmenian; 950 953 break; 954 case BinaryListStyle: 955 m_value.ident = CSSValueBinary; 956 break; 957 case Bengali: 958 m_value.ident = CSSValueBengali; 959 break; 960 case Cambodian: 961 m_value.ident = CSSValueCambodian; 962 break; 951 963 case Circle: 952 964 m_value.ident = CSSValueCircle; … … 967 979 m_value.ident = CSSValueDecimal; 968 980 break; 981 case Devanagari: 982 m_value.ident = CSSValueDevanagari; 983 break; 969 984 case Disc: 970 985 m_value.ident = CSSValueDisc; … … 1021 1036 m_value.ident = CSSValueGeorgian; 1022 1037 break; 1038 case Gujarati: 1039 m_value.ident = CSSValueGujarati; 1040 break; 1041 case Gurmukhi: 1042 m_value.ident = CSSValueGurmukhi; 1043 break; 1023 1044 case Hangul: 1024 1045 m_value.ident = CSSValueHangul; … … 1036 1057 m_value.ident = CSSValueHiraganaIroha; 1037 1058 break; 1059 case Kannada: 1060 m_value.ident = CSSValueKannada; 1061 break; 1038 1062 case Katakana: 1039 1063 m_value.ident = CSSValueKatakana; … … 1042 1066 m_value.ident = CSSValueKatakanaIroha; 1043 1067 break; 1068 case Khmer: 1069 m_value.ident = CSSValueKhmer; 1070 break; 1071 case Lao: 1072 m_value.ident = CSSValueLao; 1073 break; 1044 1074 case LowerAlpha: 1045 1075 m_value.ident = CSSValueLowerAlpha; … … 1048 1078 m_value.ident = CSSValueLowerGreek; 1049 1079 break; 1080 case LowerHexadecimal: 1081 m_value.ident = CSSValueLowerHexadecimal; 1082 break; 1050 1083 case LowerLatin: 1051 1084 m_value.ident = CSSValueLowerLatin; … … 1057 1090 m_value.ident = CSSValueLowerRoman; 1058 1091 break; 1092 case Malayalam: 1093 m_value.ident = CSSValueMalayalam; 1094 break; 1095 case Mongolian: 1096 m_value.ident = CSSValueMongolian; 1097 break; 1098 case Myanmar: 1099 m_value.ident = CSSValueMyanmar; 1100 break; 1059 1101 case NoneListStyle: 1060 1102 m_value.ident = CSSValueNone; 1061 1103 break; 1104 case Octal: 1105 m_value.ident = CSSValueOctal; 1106 break; 1107 case Oriya: 1108 m_value.ident = CSSValueOriya; 1109 break; 1062 1110 case Oromo: 1063 1111 m_value.ident = CSSValueOromo; 1064 1112 break; 1113 case Persian: 1114 m_value.ident = CSSValuePersian; 1115 break; 1065 1116 case Sidama: 1066 1117 m_value.ident = CSSValueSidama; … … 1072 1123 m_value.ident = CSSValueSquare; 1073 1124 break; 1125 case Telugu: 1126 m_value.ident = CSSValueTelugu; 1127 break; 1128 case Thai: 1129 m_value.ident = CSSValueThai; 1130 break; 1131 case Tibetan: 1132 m_value.ident = CSSValueTibetan; 1133 break; 1074 1134 case Tigre: 1075 1135 m_value.ident = CSSValueTigre; … … 1093 1153 m_value.ident = CSSValueUpperGreek; 1094 1154 break; 1155 case UpperHexadecimal: 1156 m_value.ident = CSSValueUpperHexadecimal; 1157 break; 1095 1158 case UpperLatin: 1096 1159 m_value.ident = CSSValueUpperLatin; … … 1101 1164 case UpperRoman: 1102 1165 m_value.ident = CSSValueUpperRoman; 1166 break; 1167 case Urdu: 1168 m_value.ident = CSSValueUrdu; 1103 1169 break; 1104 1170 } -
trunk/WebCore/css/CSSValueKeywords.in
r53452 r54472 226 226 decimal 227 227 decimal-leading-zero 228 arabic-indic 229 binary 230 bengali 231 cambodian 232 khmer 233 devanagari 234 gujarati 235 gurmukhi 236 kannada 237 lower-hexadecimal 238 lao 239 malayalam 240 mongolian 241 myanmar 242 octal 243 oriya 244 persian 245 urdu 246 telugu 247 tibetan 248 thai 249 upper-hexadecimal 228 250 lower-roman 229 251 upper-roman -
trunk/WebCore/inspector/front-end/SourceCSSTokenizer.re2js
r54053 r54472 99 99 this._valueKeywords = [ 100 100 "above", "absolute", "activeborder", "activecaption", "afar", "after-white-space", "ahead", "alias", "all", "all-scroll", 101 "alternate", "always","amharic", "amharic-abegede", "antialiased", "appworkspace", "aqua", "ar menian", "auto", "avoid",102 " background", "backwards", "baseline", "below", "bidi-override", "black", "blink", "block", "block-axis", "blue", "bold",103 "b older", "border", "border-box", "both", "bottom", "break-all", "break-word", "button", "button-bevel", "buttonface",104 "button highlight", "buttonshadow", "buttontext", "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", "cell",105 "c enter", "checkbox", "circle", "cjk-earthly-branch", "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",106 "c ol-resize", "collapse", "compact", "condensed", "contain", "content", "content-box", "context-menu", "continuous", "copy",107 "co ver", "crop", "cross", "crosshair", "currentcolor", "cursive", "dashed", "decimal", "decimal-leading-zero", "default",108 "default-button", "destination-atop", "destination-in", "destination-out", "destination-over", "d isc", "discard", "document",101 "alternate", "always","amharic", "amharic-abegede", "antialiased", "appworkspace", "aqua", "arabic-indic", "armenian", 102 "auto", "avoid", "background", "backwards", "baseline", "below", "bidi-override", "binary", "bengali", "black", "blink", 103 "block", "block-axis", "blue", "bold", "bolder", "border", "border-box", "both", "bottom", "break-all", "break-word", "button", 104 "button-bevel", "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "cambodian", "capitalize", "caps-lock-indicator", 105 "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle", "cjk-earthly-branch", "cjk-heavenly-stem", "cjk-ideographic", 106 "clear", "clip", "close-quote", "col-resize", "collapse", "compact", "condensed", "contain", "content", "content-box", "context-menu", 107 "continuous", "copy", "cover", "crop", "cross", "crosshair", "currentcolor", "cursive", "dashed", "decimal", "decimal-leading-zero", "default", 108 "default-button", "destination-atop", "destination-in", "destination-out", "destination-over", "devanagari", "disc", "discard", "document", 109 109 "dot-dash", "dot-dot-dash", "dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out", "element", 110 110 "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede", "ethiopic-abegede-am-et", "ethiopic-abegede-gez", … … 113 113 "ethiopic-halehame-so-et", "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig", "ew-resize", "expanded", 114 114 "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "forwards", "from", "fuchsia", "geometricPrecision", 115 "georgian", "gray", "graytext", "green", "grey", "groove", " hand", "hangul", "hangul-consonant", "hebrew", "help", "hidden", "hide",116 "hi gher", "highlight", "highlighttext", "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "icon", "ignore",115 "georgian", "gray", "graytext", "green", "grey", "groove", "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hebrew", "help", 116 "hidden", "hide", "higher", "highlight", "highlighttext", "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "icon", "ignore", 117 117 "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext", "inherit", "initial", "inline", 118 "inline-axis", "inline-block", "inline-table", "inset", "inside", "intrinsic", "invert", "italic", "justify", "ka takana",119 "katakana-iroha", " landscape", "large", "larger", "left", "level", "lighter", "lime", "line-through", "linear", "lines",120 "list-button", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower", "lower-alpha", "lower-greek", "lower- latin",121 "lower-norwegian", "lower-roman", "lowercase", "ltr", "ma roon", "match", "media-controls-background", "media-current-time-display",118 "inline-axis", "inline-block", "inline-table", "inset", "inside", "intrinsic", "invert", "italic", "justify", "kannada", "katakana", 119 "katakana-iroha", "khmer", "landscape", "lao", "large", "larger", "left", "level", "lighter", "lime", "line-through", "linear", "lines", 120 "list-button", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower", "lower-alpha", "lower-greek", "lower-hexadecimal", "lower-latin", 121 "lower-norwegian", "lower-roman", "lowercase", "ltr", "malayalam", "maroon", "match", "media-controls-background", "media-current-time-display", 122 122 "media-fullscreen-button", "media-mute-button", "media-play-button", "media-return-to-realtime-button", "media-rewind-button", 123 123 "media-seek-back-button", "media-seek-forward-button", "media-slider", "media-sliderthumb", "media-time-remaining-display", 124 124 "media-volume-slider", "media-volume-slider-container", "media-volume-sliderthumb", "medium", "menu", "menulist", "menulist-button", 125 "menulist-text", "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic", "mix", "mon ospace", "move", "multiple",126 " n-resize", "narrower", "navy", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none",127 "normal", "not-allowed", "nowrap", "ns-resize", "nw-resize", "nwse-resize", "oblique", "o live", "open-quote", "optimizeLegibility",128 "optimizeSpeed", "orange", "or omo", "outset", "outside", "overlay", "overline", "padding", "padding-box", "painted", "paused",129 "p lus-darker", "plus-lighter", "pointer", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "purple",125 "menulist-text", "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic", "mix", "mongolian", "monospace", "move", "multiple", 126 "myanmar", "n-resize", "narrower", "navy", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none", 127 "normal", "not-allowed", "nowrap", "ns-resize", "nw-resize", "nwse-resize", "oblique", "octal", "olive", "open-quote", "optimizeLegibility", 128 "optimizeSpeed", "orange", "oriya", "oromo", "outset", "outside", "overlay", "overline", "padding", "padding-box", "painted", "paused", 129 "persian", "plus-darker", "plus-lighter", "pointer", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "purple", 130 130 "push-button", "radio", "read-only", "read-write", "read-write-plaintext-only", "red", "relative", "repeat", "repeat-x", 131 131 "repeat-y", "reset", "reverse", "rgb", "rgba", "ridge", "right", "round", "row-resize", "rtl", "run-in", "running", "s-resize", "sans-serif", … … 136 136 "space", "square", "square-button", "start", "static", "status-bar", "stretch", "stroke", "sub", "subpixel-antialiased", "super", 137 137 "sw-resize", "table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", 138 "table-row", "table-row-group", "teal", "te xt", "text-bottom", "text-top", "textarea", "textfield", "thick", "thin", "threeddarkshadow",139 "threed face", "threedhighlight", "threedlightshadow", "threedshadow", "tigre", "tigrinya-er", "tigrinya-er-abegede", "tigrinya-et",140 "tigrinya-et -abegede", "to", "top", "transparent", "ultra-condensed", "ultra-expanded", "underline", "up", "upper-alpha", "upper-greek",141 "upper- latin", "upper-norwegian", "upper-roman", "uppercase", "url", "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted",142 "visible Stroke", "visual", "w-resize", "wait", "wave", "white", "wider", "window", "windowframe", "windowtext", "x-large", "x-small",143 "x or", "xx-large", "xx-small", "yellow", "-wap-marquee", "-webkit-activelink", "-webkit-auto", "-webkit-baseline-middle", "-webkit-body",144 "-webkit-bo x", "-webkit-center", "-webkit-control", "-webkit-focus-ring-color", "-webkit-grab", "-webkit-grabbing", "-webkit-gradient", "-webkit-inline-box",145 "-webkit- left", "-webkit-link", "-webkit-marquee", "-webkit-mini-control", "-webkit-nowrap", "-webkit-right", "-webkit-small-control",146 "-webkit- text", "-webkit-xxx-large", "-webkit-zoom-in", "-webkit-zoom-out",138 "table-row", "table-row-group", "teal", "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai", "thick", "thin", 139 "threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er", "tigrinya-er-abegede", 140 "tigrinya-et", "tigrinya-et-abegede", "to", "top", "transparent", "ultra-condensed", "ultra-expanded", "underline", "up", "upper-alpha", "upper-greek", 141 "upper-hexadecimal", "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url", "vertical", "vertical-text", "visible", 142 "visibleFill", "visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "white", "wider", "window", "windowframe", "windowtext", 143 "x-large", "x-small", "xor", "xx-large", "xx-small", "yellow", "-wap-marquee", "-webkit-activelink", "-webkit-auto", "-webkit-baseline-middle", 144 "-webkit-body", "-webkit-box", "-webkit-center", "-webkit-control", "-webkit-focus-ring-color", "-webkit-grab", "-webkit-grabbing", 145 "-webkit-gradient", "-webkit-inline-box", "-webkit-left", "-webkit-link", "-webkit-marquee", "-webkit-mini-control", "-webkit-nowrap", "-webkit-right", 146 "-webkit-small-control", "-webkit-text", "-webkit-xxx-large", "-webkit-zoom-in", "-webkit-zoom-out", 147 147 ].keySet(); 148 148 -
trunk/WebCore/platform/text/CharacterNames.h
r53452 r54472 42 42 const UChar hebrewPunctuationGershayim = 0x05F4; 43 43 const UChar horizontalEllipsis = 0x2026; 44 const UChar hyphenMinus = 0x002D; 44 45 const UChar ideographicComma = 0x3001; 45 46 const UChar ideographicFullStop = 0x3002; -
trunk/WebCore/rendering/RenderListMarker.cpp
r53603 r54472 42 42 const int cMarkerPadding = 7; 43 43 44 enum SequenceType { NumericSequence, AlphabeticSequence }; 45 44 46 static String toRoman(int number, bool upper) 45 47 { … … 79 81 } 80 82 83 static inline String toAlphabeticOrNumeric(int number, const UChar* sequence, int sequenceSize, SequenceType type) 84 { 85 ASSERT(sequenceSize >= 2); 86 87 const int lettersSize = sizeof(number) * 8 + 1; // Binary is the worst case; requires one character per bit plus a minus sign. 88 89 UChar letters[lettersSize]; 90 91 bool isNegativeNumber = false; 92 unsigned numberShadow = number; 93 if (type == AlphabeticSequence) { 94 ASSERT(number > 0); 95 --numberShadow; 96 } else if (number < 0) { 97 numberShadow = -number; 98 isNegativeNumber = true; 99 } 100 letters[lettersSize - 1] = sequence[numberShadow % sequenceSize]; 101 int length = 1; 102 103 if (type == AlphabeticSequence) { 104 while ((numberShadow /= sequenceSize) > 0) 105 letters[lettersSize - ++length] = sequence[numberShadow % sequenceSize - 1]; 106 } else { 107 while ((numberShadow /= sequenceSize) > 0) 108 letters[lettersSize - ++length] = sequence[numberShadow % sequenceSize]; 109 } 110 if (isNegativeNumber) 111 letters[lettersSize - ++length] = hyphenMinus; 112 113 ASSERT(length <= lettersSize); 114 return String(&letters[lettersSize - length], length); 115 } 116 81 117 static String toAlphabetic(int number, const UChar* alphabet, int alphabetSize) 82 118 { 83 ASSERT(alphabetSize >= 10);84 85 119 if (number < 1) 86 120 return String::number(number); 87 121 88 const int lettersSize = 10; // big enough for a 32-bit int, with a 10-letter alphabet 89 UChar letters[lettersSize]; 90 91 --number; 92 letters[lettersSize - 1] = alphabet[number % alphabetSize]; 93 int length = 1; 94 while ((number /= alphabetSize) > 0) 95 letters[lettersSize - ++length] = alphabet[number % alphabetSize - 1]; 96 97 ASSERT(length <= lettersSize); 98 return String(&letters[lettersSize - length], length); 122 return toAlphabeticOrNumeric(number, alphabet, alphabetSize, AlphabeticSequence); 123 } 124 125 static String toNumeric(int number, const UChar* numerals, int numeralsSize) 126 { 127 return toAlphabeticOrNumeric(number, numerals, numeralsSize, NumericSequence); 99 128 } 100 129 … … 102 131 { 103 132 return toAlphabetic(number, alphabet, size); 133 } 134 135 template <size_t size> static inline String toNumeric(int number, const UChar(&alphabet)[size]) 136 { 137 return toNumeric(number, alphabet, size); 104 138 } 105 139 … … 384 418 return ethiopicPrefaceColon; 385 419 case Armenian: 420 case ArabicIndic: 421 case Bengali: 422 case BinaryListStyle: 423 case Cambodian: 386 424 case CJKIdeographic: 387 425 case CjkEarthlyBranch: … … 389 427 case DecimalLeadingZero: 390 428 case DecimalListStyle: 429 case Devanagari: 391 430 case Georgian: 431 case Gujarati: 432 case Gurmukhi: 392 433 case Hangul: 393 434 case HangulConsonant: … … 395 436 case Hiragana: 396 437 case HiraganaIroha: 438 case Kannada: 397 439 case Katakana: 398 440 case KatakanaIroha: 441 case Khmer: 442 case Lao: 399 443 case LowerAlpha: 400 444 case LowerGreek: 445 case LowerHexadecimal: 401 446 case LowerLatin: 402 447 case LowerNorwegian: 403 448 case LowerRoman: 449 case Malayalam: 450 case Mongolian: 451 case Myanmar: 452 case Octal: 453 case Oriya: 454 case Persian: 455 case Telugu: 456 case Thai: 457 case Tibetan: 404 458 case UpperAlpha: 405 459 case UpperGreek: 460 case UpperHexadecimal: 406 461 case UpperLatin: 407 462 case UpperNorwegian: 408 463 case UpperRoman: 464 case Urdu: 409 465 return '.'; 410 466 } … … 439 495 return "-0" + String::number(-value); // -01 to -09 440 496 return "0" + String::number(value); // 00 to 09 497 498 case ArabicIndic: { 499 static const UChar arabicIndicNumerals[10] = { 500 0x0660, 0x0661, 0x0662, 0x0663, 0x0664, 0x0665, 0x0666, 0x0667, 0x0668, 0x0669 501 }; 502 return toNumeric(value, arabicIndicNumerals); 503 } 504 case BinaryListStyle: { 505 static const UChar binaryNumerals[2] = { 506 '0', '1' 507 }; 508 return toNumeric(value, binaryNumerals); 509 } 510 case Bengali: { 511 static const UChar bengaliNumerals[10] = { 512 0x09E6, 0x09E7, 0x09E8, 0x09E9, 0x09EA, 0x09EB, 0x09EC, 0x09ED, 0x09EE, 0x09EF 513 }; 514 return toNumeric(value, bengaliNumerals); 515 } 516 case Cambodian: 517 case Khmer: { 518 static const UChar khmerNumerals[10] = { 519 0x17E0, 0x17E1, 0x17E2, 0x17E3, 0x17E4, 0x17E5, 0x17E6, 0x17E7, 0x17E8, 0x17E9 520 }; 521 return toNumeric(value, khmerNumerals); 522 } 523 case Devanagari: { 524 static const UChar devanagariNumerals[10] = { 525 0x0966, 0x0967, 0x0968, 0x0969, 0x096A, 0x096B, 0x096C, 0x096D, 0x096E, 0x096F 526 }; 527 return toNumeric(value, devanagariNumerals); 528 } 529 case Gujarati: { 530 static const UChar gujaratiNumerals[10] = { 531 0x0AE6, 0x0AE7, 0x0AE8, 0x0AE9, 0x0AEA, 0x0AEB, 0x0AEC, 0x0AED, 0x0AEE, 0x0AEF 532 }; 533 return toNumeric(value, gujaratiNumerals); 534 } 535 case Gurmukhi: { 536 static const UChar gurmukhiNumerals[10] = { 537 0x0A66, 0x0A67, 0x0A68, 0x0A69, 0x0A6A, 0x0A6B, 0x0A6C, 0x0A6D, 0x0A6E, 0x0A6F 538 }; 539 return toNumeric(value, gurmukhiNumerals); 540 } 541 case Kannada: { 542 static const UChar kannadaNumerals[10] = { 543 0x0CE6, 0x0CE7, 0x0CE8, 0x0CE9, 0x0CEA, 0x0CEB, 0x0CEC, 0x0CED, 0x0CEE, 0x0CEF 544 }; 545 return toNumeric(value, kannadaNumerals); 546 } 547 case LowerHexadecimal: { 548 static const UChar lowerHexadecimalNumerals[16] = { 549 '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' 550 }; 551 return toNumeric(value, lowerHexadecimalNumerals); 552 } 553 case Lao: { 554 static const UChar laoNumerals[10] = { 555 0x0ED0, 0x0ED1, 0x0ED2, 0x0ED3, 0x0ED4, 0x0ED5, 0x0ED6, 0x0ED7, 0x0ED8, 0x0ED9 556 }; 557 return toNumeric(value, laoNumerals); 558 } 559 case Malayalam: { 560 static const UChar malayalamNumerals[10] = { 561 0x0D66, 0x0D67, 0x0D68, 0x0D69, 0x0D6A, 0x0D6B, 0x0D6C, 0x0D6D, 0x0D6E, 0x0D6F 562 }; 563 return toNumeric(value, malayalamNumerals); 564 } 565 case Mongolian: { 566 static const UChar mongolianNumerals[10] = { 567 0x1810, 0x1811, 0x1812, 0x1813, 0x1814, 0x1815, 0x1816, 0x1817, 0x1818, 0x1819 568 }; 569 return toNumeric(value, mongolianNumerals); 570 } 571 case Myanmar: { 572 static const UChar myanmarNumerals[10] = { 573 0x1040, 0x1041, 0x1042, 0x1043, 0x1044, 0x1045, 0x1046, 0x1047, 0x1048, 0x1049 574 }; 575 return toNumeric(value, myanmarNumerals); 576 } 577 case Octal: { 578 static const UChar octalNumerals[8] = { 579 '0', '1', '2', '3', '4', '5', '6', '7' 580 }; 581 return toNumeric(value, octalNumerals); 582 } 583 case Oriya: { 584 static const UChar oriyaNumerals[10] = { 585 0x0B66, 0x0B67, 0x0B68, 0x0B69, 0x0B6A, 0x0B6B, 0x0B6C, 0x0B6D, 0x0B6E, 0x0B6F 586 }; 587 return toNumeric(value, oriyaNumerals); 588 } 589 case Persian: 590 case Urdu: { 591 static const UChar urduNumerals[10] = { 592 0x06F0, 0x06F1, 0x06F2, 0x06F3, 0x06F4, 0x06F5, 0x06F6, 0x06F7, 0x06F8, 0x06F9 593 }; 594 return toNumeric(value, urduNumerals); 595 } 596 case Telugu: { 597 static const UChar teluguNumerals[10] = { 598 0x0C66, 0x0C67, 0x0C68, 0x0C69, 0x0C6A, 0x0C6B, 0x0C6C, 0x0C6D, 0x0C6E, 0x0C6F 599 }; 600 return toNumeric(value, teluguNumerals); 601 } 602 case Tibetan: { 603 static const UChar tibetanNumerals[10] = { 604 0x0F20, 0x0F21, 0x0F22, 0x0F23, 0x0F24, 0x0F25, 0x0F26, 0x0F27, 0x0F28, 0x0F29 605 }; 606 return toNumeric(value, tibetanNumerals); 607 } 608 case Thai: { 609 static const UChar thaiNumerals[10] = { 610 0x0E50, 0x0E51, 0x0E52, 0x0E53, 0x0E54, 0x0E55, 0x0E56, 0x0E57, 0x0E58, 0x0E59 611 }; 612 return toNumeric(value, thaiNumerals); 613 } 614 case UpperHexadecimal: { 615 static const UChar upperHexadecimalNumerals[16] = { 616 '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' 617 }; 618 return toNumeric(value, upperHexadecimalNumerals); 619 } 441 620 442 621 case LowerAlpha: … … 852 1031 case Amharic: 853 1032 case AmharicAbegede: 1033 case ArabicIndic: 854 1034 case Armenian: 1035 case BinaryListStyle: 1036 case Bengali: 1037 case Cambodian: 855 1038 case CJKIdeographic: 856 1039 case CjkEarthlyBranch: … … 858 1041 case DecimalLeadingZero: 859 1042 case DecimalListStyle: 1043 case Devanagari: 860 1044 case Ethiopic: 861 1045 case EthiopicAbegede: … … 875 1059 case EthiopicHalehameTig: 876 1060 case Georgian: 1061 case Gujarati: 1062 case Gurmukhi: 877 1063 case Hangul: 878 1064 case HangulConsonant: … … 880 1066 case Hiragana: 881 1067 case HiraganaIroha: 1068 case Kannada: 882 1069 case Katakana: 883 1070 case KatakanaIroha: 1071 case Khmer: 1072 case Lao: 884 1073 case LowerAlpha: 885 1074 case LowerGreek: 1075 case LowerHexadecimal: 886 1076 case LowerLatin: 887 1077 case LowerNorwegian: 888 1078 case LowerRoman: 1079 case Malayalam: 1080 case Mongolian: 1081 case Myanmar: 1082 case Octal: 1083 case Oriya: 889 1084 case Oromo: 1085 case Persian: 890 1086 case Sidama: 891 1087 case Somali: 1088 case Telugu: 1089 case Thai: 1090 case Tibetan: 892 1091 case Tigre: 893 1092 case TigrinyaEr: … … 897 1096 case UpperAlpha: 898 1097 case UpperGreek: 1098 case UpperHexadecimal: 899 1099 case UpperLatin: 900 1100 case UpperNorwegian: 901 1101 case UpperRoman: 1102 case Urdu: 902 1103 break; 903 1104 } … … 1005 1206 case Amharic: 1006 1207 case AmharicAbegede: 1208 case ArabicIndic: 1007 1209 case Armenian: 1210 case BinaryListStyle: 1211 case Bengali: 1212 case Cambodian: 1008 1213 case CJKIdeographic: 1009 1214 case CjkEarthlyBranch: … … 1011 1216 case DecimalLeadingZero: 1012 1217 case DecimalListStyle: 1218 case Devanagari: 1013 1219 case Ethiopic: 1014 1220 case EthiopicAbegede: … … 1028 1234 case EthiopicHalehameTig: 1029 1235 case Georgian: 1236 case Gujarati: 1237 case Gurmukhi: 1030 1238 case Hangul: 1031 1239 case HangulConsonant: … … 1033 1241 case Hiragana: 1034 1242 case HiraganaIroha: 1243 case Kannada: 1035 1244 case Katakana: 1036 1245 case KatakanaIroha: 1246 case Khmer: 1247 case Lao: 1037 1248 case LowerAlpha: 1038 1249 case LowerGreek: 1250 case LowerHexadecimal: 1039 1251 case LowerLatin: 1040 1252 case LowerNorwegian: 1041 1253 case LowerRoman: 1254 case Malayalam: 1255 case Mongolian: 1256 case Myanmar: 1257 case Octal: 1258 case Oriya: 1042 1259 case Oromo: 1260 case Persian: 1043 1261 case Sidama: 1044 1262 case Somali: 1263 case Telugu: 1264 case Thai: 1265 case Tibetan: 1045 1266 case Tigre: 1046 1267 case TigrinyaEr: … … 1050 1271 case UpperAlpha: 1051 1272 case UpperGreek: 1273 case UpperHexadecimal: 1052 1274 case UpperLatin: 1053 1275 case UpperNorwegian: 1054 1276 case UpperRoman: 1277 case Urdu: 1055 1278 m_text = listMarkerText(type, m_listItem->value()); 1056 1279 if (m_text.isEmpty()) … … 1186 1409 case Amharic: 1187 1410 case AmharicAbegede: 1411 case ArabicIndic: 1188 1412 case Armenian: 1413 case BinaryListStyle: 1414 case Bengali: 1415 case Cambodian: 1189 1416 case CJKIdeographic: 1190 1417 case CjkEarthlyBranch: … … 1192 1419 case DecimalLeadingZero: 1193 1420 case DecimalListStyle: 1421 case Devanagari: 1194 1422 case Ethiopic: 1195 1423 case EthiopicAbegede: … … 1209 1437 case EthiopicHalehameTig: 1210 1438 case Georgian: 1439 case Gujarati: 1440 case Gurmukhi: 1211 1441 case Hangul: 1212 1442 case HangulConsonant: … … 1214 1444 case Hiragana: 1215 1445 case HiraganaIroha: 1446 case Kannada: 1216 1447 case Katakana: 1217 1448 case KatakanaIroha: 1449 case Khmer: 1450 case Lao: 1218 1451 case LowerAlpha: 1219 1452 case LowerGreek: 1453 case LowerHexadecimal: 1220 1454 case LowerLatin: 1221 1455 case LowerNorwegian: 1222 1456 case LowerRoman: 1457 case Malayalam: 1458 case Mongolian: 1459 case Myanmar: 1460 case Octal: 1461 case Oriya: 1223 1462 case Oromo: 1463 case Persian: 1224 1464 case Sidama: 1225 1465 case Somali: 1466 case Telugu: 1467 case Thai: 1468 case Tibetan: 1226 1469 case Tigre: 1227 1470 case TigrinyaEr: … … 1231 1474 case UpperAlpha: 1232 1475 case UpperGreek: 1476 case UpperHexadecimal: 1233 1477 case UpperLatin: 1234 1478 case UpperNorwegian: 1235 1479 case UpperRoman: 1480 case Urdu: 1236 1481 if (m_text.isEmpty()) 1237 1482 return IntRect(); -
trunk/WebCore/rendering/style/RenderStyle.h
r54045 r54472 184 184 unsigned _empty_cells : 1; // EEmptyCell 185 185 unsigned _caption_side : 2; // ECaptionSide 186 unsigned _list_style_type : 6; // EListStyleType186 unsigned _list_style_type : 7; // EListStyleType 187 187 unsigned _list_style_position : 1; // EListStylePosition 188 188 unsigned _visibility : 2; // EVisibility … … 195 195 unsigned _white_space : 3; // EWhiteSpace 196 196 unsigned _box_direction : 1; // EBoxDirection (CSS3 box_direction property, flexible box layout module) 197 // 3 3bits197 // 34 bits 198 198 199 199 // non CSS2 inherited … … 202 202 bool _force_backgrounds_to_white : 1; 203 203 unsigned _pointerEvents : 4; // EPointerEvents 204 // 4 0bits204 // 41 bits 205 205 } inherited_flags; 206 206 -
trunk/WebCore/rendering/style/RenderStyleConstants.h
r53452 r54472 206 206 // The order of this enum must match the order of the list style types in CSSValueKeywords.in. 207 207 enum EListStyleType { 208 Disc, 209 Circle, 210 Square, 211 DecimalListStyle, 212 DecimalLeadingZero, 213 LowerRoman, 214 UpperRoman, 215 LowerGreek, 216 LowerAlpha, 217 LowerLatin, 218 UpperAlpha, 219 UpperLatin, 220 Afar, 221 EthiopicHalehameAaEt, 222 EthiopicHalehameAaEr, 223 Amharic, 224 EthiopicHalehameAmEt, 225 AmharicAbegede, 226 EthiopicAbegedeAmEt, 227 CjkEarthlyBranch, 228 CjkHeavenlyStem, 229 Ethiopic, 230 EthiopicHalehameGez, 231 EthiopicAbegede, 232 EthiopicAbegedeGez, 233 HangulConsonant, 234 Hangul, 235 LowerNorwegian, 236 Oromo, 237 EthiopicHalehameOmEt, 238 Sidama, 239 EthiopicHalehameSidEt, 240 Somali, 241 EthiopicHalehameSoEt, 242 Tigre, 243 EthiopicHalehameTig, 244 TigrinyaEr, 245 EthiopicHalehameTiEr, 246 TigrinyaErAbegede, 247 EthiopicAbegedeTiEr, 248 TigrinyaEt, 249 EthiopicHalehameTiEt, 250 TigrinyaEtAbegede, 251 EthiopicAbegedeTiEt, 252 UpperGreek, 253 UpperNorwegian, 254 Hebrew, 255 Armenian, 256 Georgian, 257 CJKIdeographic, 258 Hiragana, 259 Katakana, 260 HiraganaIroha, 261 KatakanaIroha, 262 NoneListStyle 208 Disc, 209 Circle, 210 Square, 211 DecimalListStyle, 212 DecimalLeadingZero, 213 ArabicIndic, 214 BinaryListStyle, 215 Bengali, 216 Cambodian, 217 Khmer, 218 Devanagari, 219 Gujarati, 220 Gurmukhi, 221 Kannada, 222 LowerHexadecimal, 223 Lao, 224 Malayalam, 225 Mongolian, 226 Myanmar, 227 Octal, 228 Oriya, 229 Persian, 230 Urdu, 231 Telugu, 232 Tibetan, 233 Thai, 234 UpperHexadecimal, 235 LowerRoman, 236 UpperRoman, 237 LowerGreek, 238 LowerAlpha, 239 LowerLatin, 240 UpperAlpha, 241 UpperLatin, 242 Afar, 243 EthiopicHalehameAaEt, 244 EthiopicHalehameAaEr, 245 Amharic, 246 EthiopicHalehameAmEt, 247 AmharicAbegede, 248 EthiopicAbegedeAmEt, 249 CjkEarthlyBranch, 250 CjkHeavenlyStem, 251 Ethiopic, 252 EthiopicHalehameGez, 253 EthiopicAbegede, 254 EthiopicAbegedeGez, 255 HangulConsonant, 256 Hangul, 257 LowerNorwegian, 258 Oromo, 259 EthiopicHalehameOmEt, 260 Sidama, 261 EthiopicHalehameSidEt, 262 Somali, 263 EthiopicHalehameSoEt, 264 Tigre, 265 EthiopicHalehameTig, 266 TigrinyaEr, 267 EthiopicHalehameTiEr, 268 TigrinyaErAbegede, 269 EthiopicAbegedeTiEr, 270 TigrinyaEt, 271 EthiopicHalehameTiEt, 272 TigrinyaEtAbegede, 273 EthiopicAbegedeTiEt, 274 UpperGreek, 275 UpperNorwegian, 276 Hebrew, 277 Armenian, 278 Georgian, 279 CJKIdeographic, 280 Hiragana, 281 Katakana, 282 HiraganaIroha, 283 KatakanaIroha, 284 NoneListStyle 263 285 }; 264 286
Note: See TracChangeset
for help on using the changeset viewer.