Changeset 65967 in webkit
- Timestamp:
- Aug 24, 2010 8:05:10 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r65966 r65967 1 2010-08-23 Daniel Bates <dbates@rim.com> 2 3 Reviewed by Darin Adler. 4 5 Suffix for CSS alphabetic list style types should fallback to 6 decimal for ordinals outside of their representable range 7 https://bugs.webkit.org/show_bug.cgi?id=44486 8 9 Tests that CSS list styles fallback to the decimal list style 10 for ordinals that cannot be represented. We need to implement 11 DRT support to test the actual suffix (see bug #44489). 12 13 Also, adds test for ordinal 0 for each numeric list style type. 14 15 * fast/lists/resources/w3-css3-list-styles-alphabetic.css: Added. 16 * fast/lists/w3-css3-list-styles-alphabetic.html: Moved CSS list styles to file w3-css3-list-styles-alphabetic.css, 17 * fast/lists/w3-css3-list-styles-fallback-style-expected.txt: Added. 18 * fast/lists/w3-css3-list-styles-fallback-style.html: Added. 19 * fast/lists/w3-css3-list-styles-numeric-expected.txt: Added test for ordinal 0 for each list style type. 20 * fast/lists/w3-css3-list-styles-numeric.html: Rebased result. 21 1 22 2010-08-24 Kent Tamura <tkent@chromium.org> 2 23 -
trunk/LayoutTests/fast/lists/w3-css3-list-styles-alphabetic.html
r64259 r65967 2 2 <head> 3 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <link rel="stylesheet" href="resources/w3-css3-list-styles-alphabetic.css" type="text/css" charset="utf-8" /> 4 5 <style> 5 6 .test ol { float: left; padding-right: 20px; } 6 7 .test h2 { clear: left; } 7 8 /*9 The following styles are ordered as they appear in section 4.4. of the10 Draft 7 November 2002 draft of the CSS3 Lists module <http://www.w3.org/TR/css3-lists/#alphabetic>.11 */12 13 ol.afar { list-style-type: afar; }14 ol.ethiopic-halehame-aa-et { list-style-type: ethiopic-halehame-aa-et; }15 ol.ethiopic-halehame-aa-er { list-style-type: ethiopic-halehame-aa-er; }16 17 ol.amharic { list-style-type: amharic; }18 ol.ethiopic-halehame-am-et { list-style-type: ethiopic-halehame-am-et; }19 20 ol.amharic-abegede { list-style-type: amharic-abegede; }21 ol.ethiopic-abegede-am-et { list-style-type: ethiopic-abegede-am-et; }22 23 ol.cjk-earthly-branch { list-style-type: cjk-earthly-branch; }24 25 ol.cjk-heavenly-stem { list-style-type: cjk-heavenly-stem; }26 27 ol.ethiopic { list-style-type: ethiopic; }28 ol.ethiopic-halehame-gez { list-style-type: ethiopic-halehame-gez; }29 30 ol.ethiopic-abegede { list-style-type: ethiopic-abegede; }31 ol.ethiopic-abegede-gez { list-style-type: ethiopic-abegede-gez; }32 33 ol.hangul-consonant { list-style-type: hangul-consonant; }34 ol.hangul { list-style-type: hangul; }35 36 ol.hiragana-iroha { list-style-type: hiragana-iroha; }37 38 ol.hiragana { list-style-type: hiragana; }39 40 ol.katakana-iroha { list-style-type: katakana-iroha; }41 42 ol.katakana { list-style-type: katakana; }43 44 ol.lower-alpha { list-style-type: lower-alpha; }45 ol.lower-latin { list-style-type: lower-latin; }46 47 ol.lower-greek { list-style-type: lower-greek; }48 49 ol.lower-norwegian { list-style-type: lower-norwegian; }50 51 ol.oromo { list-style-type: oromo; }52 ol.ethiopic-halehame-om-et { list-style-type: ethiopic-halehame-om-et; }53 54 ol.sidama { list-style-type: sidama; }55 ol.ethiopic-halehame-sid-et { list-style-type: ethiopic-halehame-sid-et; }56 57 ol.somali { list-style-type: somali; }58 ol.ethiopic-halehame-so-et { list-style-type: ethiopic-halehame-so-et; }59 60 ol.tigre { list-style-type: tigre; }61 ol.ethiopic-halehame-tig { list-style-type: ethiopic-halehame-tig; }62 63 ol.tigrinya-er { list-style-type: tigrinya-er; }64 ol.ethiopic-halehame-ti-er { list-style-type: ethiopic-halehame-ti-er; }65 66 ol.tigrinya-er-abegede { list-style-type: tigrinya-er-abegede; }67 ol.ethiopic-abegede-ti-er { list-style-type: ethiopic-abegede-ti-er; }68 69 ol.tigrinya-et { list-style-type: tigrinya-et; }70 ol.ethiopic-halehame-ti-et { list-style-type: ethiopic-halehame-ti-et; }71 72 ol.tigrinya-et-abegede { list-style-type: tigrinya-et-abegede; }73 ol.ethiopic-abegede-ti-et { list-style-type: ethiopic-abegede-ti-et; }74 75 ol.upper-alpha { list-style-type: upper-alpha; }76 ol.upper-latin { list-style-type: upper-latin; }77 78 ol.upper-greek { list-style-type: upper-greek; }79 80 ol.upper-norwegian { list-style-type: upper-norwegian; }81 8 </style> 82 9 <script src="resources/dump-list.js"></script> -
trunk/LayoutTests/fast/lists/w3-css3-list-styles-numeric-expected.txt
r64259 r65967 13 13 PASS list marker is ٩. 14 14 PASS list marker is ١٠. 15 PASS list marker is ٠. 15 16 PASS list marker is ١. 16 17 PASS list marker is -٢١٤٧٤٨٣٦٤٨. … … 20 21 PASS list marker is 1. 21 22 PASS list marker is 10. 23 PASS list marker is 0. 22 24 PASS list marker is 1. 23 25 PASS list marker is -10000000000000000000000000000000. … … 35 37 PASS list marker is ৯. 36 38 PASS list marker is ১০. 39 PASS list marker is ০. 37 40 PASS list marker is ১. 38 41 PASS list marker is -২১৪৭৪৮৩৬৪৮. … … 50 53 PASS list marker is ៩. 51 54 PASS list marker is ១០. 55 PASS list marker is ០. 52 56 PASS list marker is ១. 53 57 PASS list marker is -២១៤៧៤៨៣៦៤៨. … … 65 69 PASS list marker is ៩. 66 70 PASS list marker is ១០. 71 PASS list marker is ០. 67 72 PASS list marker is ១. 68 73 PASS list marker is -២១៤៧៤៨៣៦៤៨. … … 80 85 PASS list marker is 9. 81 86 PASS list marker is 10. 87 PASS list marker is 0. 82 88 PASS list marker is 1. 83 89 PASS list marker is -2147483648. … … 95 101 PASS list marker is 09. 96 102 PASS list marker is 10. 103 PASS list marker is 00. 97 104 PASS list marker is 01. 98 105 PASS list marker is -2147483648. … … 110 117 PASS list marker is ९. 111 118 PASS list marker is १०. 119 PASS list marker is ०. 112 120 PASS list marker is १. 113 121 PASS list marker is -२१४७४८३६४८. … … 125 133 PASS list marker is ૯. 126 134 PASS list marker is ૧૦. 135 PASS list marker is ૦. 127 136 PASS list marker is ૧. 128 137 PASS list marker is -૨૧૪૭૪૮૩૬૪૮. … … 140 149 PASS list marker is ੯. 141 150 PASS list marker is ੧੦. 151 PASS list marker is ੦. 142 152 PASS list marker is ੧. 143 153 PASS list marker is -੨੧੪੭੪੮੩੬੪੮. … … 155 165 PASS list marker is ೯. 156 166 PASS list marker is ೧೦. 167 PASS list marker is ೦. 157 168 PASS list marker is ೧. 158 169 PASS list marker is -೨೧೪೭೪೮೩೬೪೮. … … 176 187 PASS list marker is f. 177 188 PASS list marker is 10. 189 PASS list marker is 0. 178 190 PASS list marker is 1. 179 191 PASS list marker is -80000000. … … 191 203 PASS list marker is ໙. 192 204 PASS list marker is ໑໐. 205 PASS list marker is ໐. 193 206 PASS list marker is ໑. 194 207 PASS list marker is -໒໑໔໗໔໘໓໖໔໘. … … 206 219 PASS list marker is ൯. 207 220 PASS list marker is ൧൦. 221 PASS list marker is ൦. 208 222 PASS list marker is ൧. 209 223 PASS list marker is -൨൧൪൭൪൮൩൬൪൮. … … 221 235 PASS list marker is ᠙. 222 236 PASS list marker is ᠑᠐. 237 PASS list marker is ᠐. 223 238 PASS list marker is ᠑. 224 239 PASS list marker is -᠒᠑᠔᠗᠔᠘᠓᠖᠔᠘. … … 236 251 PASS list marker is ၉. 237 252 PASS list marker is ၁၀. 253 PASS list marker is ၀. 238 254 PASS list marker is ၁. 239 255 PASS list marker is -၂၁၄၇၄၈၃၆၄၈. … … 249 265 PASS list marker is 7. 250 266 PASS list marker is 10. 267 PASS list marker is 0. 251 268 PASS list marker is 1. 252 269 PASS list marker is -20000000000. … … 264 281 PASS list marker is ୯. 265 282 PASS list marker is ୧୦. 283 PASS list marker is ୦. 266 284 PASS list marker is ୧. 267 285 PASS list marker is -୨୧୪୭୪୮୩୬୪୮. … … 279 297 PASS list marker is ۹. 280 298 PASS list marker is ۱۰. 299 PASS list marker is ۰. 281 300 PASS list marker is ۱. 282 301 PASS list marker is -۲۱۴۷۴۸۳۶۴۸. … … 294 313 PASS list marker is ۹. 295 314 PASS list marker is ۱۰. 315 PASS list marker is ۰. 296 316 PASS list marker is ۱. 297 317 PASS list marker is -۲۱۴۷۴۸۳۶۴۸. … … 309 329 PASS list marker is ౯. 310 330 PASS list marker is ౧౦. 331 PASS list marker is ౦. 311 332 PASS list marker is ౧. 312 333 PASS list marker is -౨౧౪౭౪౮౩౬౪౮. … … 324 345 PASS list marker is ༩. 325 346 PASS list marker is ༡༠. 347 PASS list marker is ༠. 326 348 PASS list marker is ༡. 327 349 PASS list marker is -༢༡༤༧༤༨༣༦༤༨. … … 339 361 PASS list marker is ๙. 340 362 PASS list marker is ๑๐. 363 PASS list marker is ๐. 341 364 PASS list marker is ๑. 342 365 PASS list marker is -๒๑๔๗๔๘๓๖๔๘. … … 360 383 PASS list marker is F. 361 384 PASS list marker is 10. 385 PASS list marker is 0. 362 386 PASS list marker is 1. 363 387 PASS list marker is -80000000. -
trunk/LayoutTests/fast/lists/w3-css3-list-styles-numeric.html
r64259 r65967 97 97 <li>١٠</li> 98 98 </ol> 99 <ol class="arabic-indic" start="0"> 100 <li>٠</li> 101 </ol> 99 102 <ol class="arabic-indic" start="-2147483649"> 100 103 <li>١</li> … … 111 114 <li>1</li> 112 115 <li>10</li> 116 </ol> 117 <ol class="binary" start="0"> 118 <li>0</li> 113 119 </ol> 114 120 <ol class="binary" start="-2147483649"> … … 135 141 <li>১০</li> 136 142 </ol> 143 <ol class="bengali" start="0"> 144 <li>০</li> 145 </ol> 137 146 <ol class="bengali" start="-2147483649"> 138 147 <li>১</li> … … 158 167 <li>១០</li> 159 168 </ol> 169 <ol class="cambodian" start="0"> 170 <li>០</li> 171 </ol> 160 172 <ol class="cambodian" start="-2147483649"> 161 173 <li>១</li> … … 180 192 <li>១០</li> 181 193 </ol> 194 <ol class="khmer" start="0"> 195 <li>០</li> 196 </ol> 182 197 <ol class="khmer" start="-2147483649"> 183 198 <li>១</li> … … 202 217 <li>9</li> 203 218 <li>10</li> 219 </ol> 220 <ol class="decimal" start="0"> 221 <li>0</li> 204 222 </ol> 205 223 <ol class="decimal" start="-2147483649"> … … 226 244 <li>10</li> 227 245 </ol> 246 <ol class="decimal-leading-zero" start="0"> 247 <li>00</li> 248 </ol> 228 249 <ol class="decimal-leading-zero" start="-2147483649"> 229 250 <li>01</li> … … 249 270 <li>१०</li> 250 271 </ol> 272 <ol class="devanagari" start="0"> 273 <li>०</li> 274 </ol> 251 275 <ol class="devanagari" start="-2147483649"> 252 276 <li>१</li> … … 272 296 <li>૧૦</li> 273 297 </ol> 298 <ol class="gujarati" start="0"> 299 <li>૦</li> 300 </ol> 274 301 <ol class="gujarati" start="-2147483649"> 275 302 <li>૧</li> … … 295 322 <li>੧੦</li> 296 323 </ol> 324 <ol class="gurmukhi" start="0"> 325 <li>੦</li> 326 </ol> 297 327 <ol class="gurmukhi" start="-2147483649"> 298 328 <li>੧</li> … … 317 347 <li>೯</li> 318 348 <li>೧೦</li> 349 </ol> 350 <ol class="kannada" start="0"> 351 <li>೦</li> 319 352 </ol> 320 353 <ol class="kannada" start="-2147483649"> … … 347 380 <li>10</li> 348 381 </ol> 382 <ol class="lower-hexadecimal" start="0"> 383 <li>0</li> 384 </ol> 349 385 <ol class="lower-hexadecimal" start="-2147483649"> 350 386 <li>1</li> … … 370 406 <li>໑໐</li> 371 407 </ol> 408 <ol class="lao" start="0"> 409 <li>໐</li> 410 </ol> 372 411 <ol class="lao" start="-2147483649"> 373 412 <li>໑</li> … … 393 432 <li>൧൦</li> 394 433 </ol> 434 <ol class="malayalam" start="0"> 435 <li>൦</li> 436 </ol> 395 437 <ol class="malayalam" start="-2147483649"> 396 438 <li>൧</li> … … 416 458 <li>᠑᠐</li> 417 459 </ol> 460 <ol class="mongolian" start="0"> 461 <li>᠐</li> 462 </ol> 418 463 <ol class="mongolian" start="-2147483649"> 419 464 <li>᠑</li> … … 439 484 <li>၁၀</li> 440 485 </ol> 486 <ol class="myanmar" start="0"> 487 <li>၀</li> 488 </ol> 441 489 <ol class="myanmar" start="-2147483649"> 442 490 <li>၁</li> … … 459 507 <li>7</li> 460 508 <li>10</li> 509 </ol> 510 <ol class="octal" start="0"> 511 <li>0</li> 461 512 </ol> 462 513 <ol class="octal" start="-2147483649"> … … 483 534 <li>୧୦</li> 484 535 </ol> 536 <ol class="oriya" start="0"> 537 <li>୦</li> 538 </ol> 485 539 <ol class="oriya" start="-2147483649"> 486 540 <li>୧</li> … … 506 560 <li>۱۰</li> 507 561 </ol> 562 <ol class="persian" start="0"> 563 <li>۰</li> 564 </ol> 508 565 <ol class="persian" start="-2147483649"> 509 566 <li>۱</li> … … 528 585 <li>۱۰</li> 529 586 </ol> 587 <ol class="urdu" start="0"> 588 <li>۰</li> 589 </ol> 530 590 <ol class="urdu" start="-2147483649"> 531 591 <li>۱</li> … … 551 611 <li>౧౦</li> 552 612 </ol> 613 <ol class="telugu" start="0"> 614 <li>౦</li> 615 </ol> 553 616 <ol class="telugu" start="-2147483649"> 554 617 <li>౧</li> … … 574 637 <li>༡༠</li> 575 638 </ol> 639 <ol class="tibetan" start="0"> 640 <li>༠</li> 641 </ol> 576 642 <ol class="tibetan" start="-2147483649"> 577 643 <li>༡</li> … … 596 662 <li>๙</li> 597 663 <li>๑๐</li> 664 </ol> 665 <ol class="thai" start="0"> 666 <li>๐</li> 598 667 </ol> 599 668 <ol class="thai" start="-2147483649"> … … 626 695 <li>10</li> 627 696 </ol> 697 <ol class="upper-hexadecimal" start="0"> 698 <li>0</li> 699 </ol> 628 700 <ol class="upper-hexadecimal" start="-2147483649"> 629 701 <li>1</li> -
trunk/WebCore/ChangeLog
r65963 r65967 1 2010-08-23 Daniel Bates <dbates@rim.com> 2 3 Reviewed by Darin Adler. 4 5 Suffix for CSS alphabetic list style types should fallback to 6 decimal for ordinals outside of their representable range 7 https://bugs.webkit.org/show_bug.cgi?id=44486 8 9 Test: fast/lists/w3-css3-list-styles-fallback-style.html 10 11 Fixes an issue where the decimal suffix is not used for 12 ordinals that cannot be represented by the alphabetic list 13 style type. 14 15 Currently, for ordinals that cannot be represented in the 16 alphabetic list style we use the suffix associated with the 17 list style. Instead, we should use the suffix for the decimal 18 list style ('.'). For instance, when the list style type is 19 Afar and the starting ordinal is 0, then we fallback to the 20 decimal list style suffix '.' because 0 cannot be represented 21 in Afar. 22 23 * rendering/RenderListMarker.cpp: 24 (WebCore::toRoman): Moved bounds check into WebCore::effectiveListMarkerType(). 25 (WebCore::toAlphabetic): Ditto. 26 (WebCore::toHebrew): Ditto. 27 (WebCore::toArmenian): Ditto. 28 (WebCore::toGeorgian): Ditto. 29 (WebCore::toCJKIdeographic): Ditto. 30 (WebCore::effectiveListMarkerType): Added. 31 (WebCore::listMarkerSuffix): Added value parameter to prototype. 32 Modified to call WebCore::effectiveListMarkerType. 33 (WebCore::listMarkerText): Modified to call WebCore::effectiveListMarkerType(). 34 (WebCore::RenderListMarker::paint): Modified to pass list item ordinal (i.e. m_listItem->value()) to WebCore::listMarkerSuffix(). 35 (WebCore::RenderListMarker::calcPrefWidths): Ditto. 36 (WebCore::RenderListMarker::getRelativeMarkerRect): Ditto. 37 1 38 2010-08-24 Gavin Barraclough <barraclough@apple.com> 2 39 -
trunk/WebCore/rendering/RenderListMarker.cpp
r59956 r65967 49 49 // using overbars and special characters. It also specifies the characters 50 50 // in the range U+2160 to U+217F instead of standard ASCII ones. 51 if (number < 1 || number > 3999) 52 return String::number(number); 51 ASSERT(number >= 1 && number <= 3999); 53 52 54 53 // Big enough to store largest roman number less than 3999 which … … 119 118 static String toAlphabetic(int number, const UChar* alphabet, int alphabetSize) 120 119 { 121 if (number < 1)122 return String::number(number);123 124 120 return toAlphabeticOrNumeric(number, alphabet, alphabetSize, AlphabeticSequence); 125 121 } … … 171 167 { 172 168 // FIXME: CSS3 mentions ways to make this work for much larger numbers. 173 if (number < 0 || number > 999999) 174 return String::number(number); 169 ASSERT(number >= 0 && number <= 999999); 175 170 176 171 if (number == 0) { … … 239 234 static String toArmenian(int number, bool upper) 240 235 { 241 if (number < 1 || number > 99999999) 242 return String::number(number); 236 ASSERT(number >= 1 && number <= 99999999); 243 237 244 238 const int lettersSize = 18; // twice what toArmenianUnder10000 needs … … 254 248 static String toGeorgian(int number) 255 249 { 256 if (number < 1 || number > 19999) 257 return String::number(number); 250 ASSERT(number >= 1 && number <= 19999); 258 251 259 252 const int lettersSize = 5; … … 301 294 static String toCJKIdeographic(int number, const UChar table[16]) 302 295 { 303 if (number < 0) 304 return String::number(number); 296 ASSERT(number >= 0); 305 297 306 298 enum AbstractCJKChar { … … 380 372 } 381 373 382 static UChar listMarkerSuffix(EListStyleType type) 383 { 374 static EListStyleType effectiveListMarkerType(EListStyleType type, int value) 375 { 376 // Note, the following switch statement has been explicitly grouped 377 // by list-style-type ordinal range. 378 switch (type) { 379 case ArabicIndic: 380 case Bengali: 381 case BinaryListStyle: 382 case Cambodian: 383 case Circle: 384 case DecimalLeadingZero: 385 case DecimalListStyle: 386 case Devanagari: 387 case Disc: 388 case Gujarati: 389 case Gurmukhi: 390 case Kannada: 391 case Khmer: 392 case Lao: 393 case LowerHexadecimal: 394 case Malayalam: 395 case Mongolian: 396 case Myanmar: 397 case NoneListStyle: 398 case Octal: 399 case Oriya: 400 case Persian: 401 case Square: 402 case Telugu: 403 case Thai: 404 case Tibetan: 405 case UpperHexadecimal: 406 case Urdu: 407 return type; // Can represent all ordinals. 408 case Armenian: 409 return (value < 1 || value > 99999999) ? DecimalListStyle : type; 410 case CJKIdeographic: 411 return (value < 0) ? DecimalListStyle : type; 412 case Georgian: 413 return (value < 1 || value > 19999) ? DecimalListStyle : type; 414 case Hebrew: 415 return (value < 0 || value > 999999) ? DecimalListStyle : type; 416 case LowerRoman: 417 case UpperRoman: 418 return (value < 1 || value > 3999) ? DecimalListStyle : type; 419 case Afar: 420 case Amharic: 421 case AmharicAbegede: 422 case CjkEarthlyBranch: 423 case CjkHeavenlyStem: 424 case Ethiopic: 425 case EthiopicAbegede: 426 case EthiopicAbegedeAmEt: 427 case EthiopicAbegedeGez: 428 case EthiopicAbegedeTiEr: 429 case EthiopicAbegedeTiEt: 430 case EthiopicHalehameAaEr: 431 case EthiopicHalehameAaEt: 432 case EthiopicHalehameAmEt: 433 case EthiopicHalehameGez: 434 case EthiopicHalehameOmEt: 435 case EthiopicHalehameSidEt: 436 case EthiopicHalehameSoEt: 437 case EthiopicHalehameTiEr: 438 case EthiopicHalehameTiEt: 439 case EthiopicHalehameTig: 440 case Hangul: 441 case HangulConsonant: 442 case Hiragana: 443 case HiraganaIroha: 444 case Katakana: 445 case KatakanaIroha: 446 case LowerAlpha: 447 case LowerGreek: 448 case LowerLatin: 449 case LowerNorwegian: 450 case Oromo: 451 case Sidama: 452 case Somali: 453 case Tigre: 454 case TigrinyaEr: 455 case TigrinyaErAbegede: 456 case TigrinyaEt: 457 case TigrinyaEtAbegede: 458 case UpperAlpha: 459 case UpperGreek: 460 case UpperLatin: 461 case UpperNorwegian: 462 return (value < 1) ? DecimalListStyle : type; 463 } 464 465 ASSERT_NOT_REACHED(); 466 return type; 467 } 468 469 static UChar listMarkerSuffix(EListStyleType type, int value) 470 { 471 // If the list-style-type, say hebrew, cannot represent |value| because it's outside 472 // its ordinal range then we fallback to some list style that can represent |value|. 473 EListStyleType effectiveType = effectiveListMarkerType(type, value); 474 384 475 // Note, the following switch statement has been explicitly 385 476 // grouped by list-style-type suffix. 386 switch ( type) {477 switch (effectiveType) { 387 478 case NoneListStyle: 388 479 case Disc: … … 474 565 String listMarkerText(EListStyleType type, int value) 475 566 { 476 switch (type) { 567 // If the list-style-type, say hebrew, cannot represent |value| because it's outside 568 // its ordinal range then we fallback to some list style that can represent |value|. 569 switch (effectiveListMarkerType(type, value)) { 477 570 case NoneListStyle: 478 571 return ""; … … 1123 1216 1124 1217 const Font& font = style()->font(); 1125 const UChar suffix = listMarkerSuffix(type );1218 const UChar suffix = listMarkerSuffix(type, m_listItem->value()); 1126 1219 if (style()->direction() == LTR) { 1127 1220 int width = font.width(textRun); … … 1283 1376 else { 1284 1377 int itemWidth = font.width(m_text); 1285 UChar suffixSpace[2] = { listMarkerSuffix(type ), ' ' };1378 UChar suffixSpace[2] = { listMarkerSuffix(type, m_listItem->value()), ' ' }; 1286 1379 int suffixSpaceWidth = font.width(TextRun(suffixSpace, 2)); 1287 1380 width = itemWidth + suffixSpaceWidth; … … 1485 1578 const Font& font = style()->font(); 1486 1579 int itemWidth = font.width(m_text); 1487 UChar suffixSpace[2] = { listMarkerSuffix(type ), ' ' };1580 UChar suffixSpace[2] = { listMarkerSuffix(type, m_listItem->value()), ' ' }; 1488 1581 int suffixSpaceWidth = font.width(TextRun(suffixSpace, 2)); 1489 1582 return IntRect(x(), y() + font.ascent(), itemWidth + suffixSpaceWidth, font.height());
Note: See TracChangeset
for help on using the changeset viewer.