Changeset 70304 in webkit


Ignore:
Timestamp:
Oct 22, 2010 6:31:40 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-22 François Sausset <François Sausset>

Reviewed by Kenneth Rohde Christiansen.

Fix wrong xHeight() value for Apple Symbols font.
https://bugs.webkit.org/show_bug.cgi?id=41535

  • mathml/xHeight.xhtml: Added.
  • platform/mac/mathml/presentation/fenced-expected.checksum:
  • platform/mac/mathml/presentation/fenced-expected.png:
  • platform/mac/mathml/presentation/fenced-expected.txt:
  • platform/mac/mathml/presentation/row-alignment-expected.checksum:
  • platform/mac/mathml/presentation/row-alignment-expected.png:
  • platform/mac/mathml/presentation/row-alignment-expected.txt:
  • platform/mac/mathml/presentation/tables-expected.checksum:
  • platform/mac/mathml/presentation/tables-expected.png:
  • platform/mac/mathml/presentation/tables-expected.txt:
  • platform/mac/mathml/xHeight-expected.checksum: Added.
  • platform/mac/mathml/xHeight-expected.png: Added.
  • platform/mac/mathml/xHeight-expected.txt: Added.

2010-10-22 François Sausset <François Sausset>

Reviewed by Kenneth Rohde Christiansen.

Fix wrong xHeight() value for Apple Symbols font.
https://bugs.webkit.org/show_bug.cgi?id=41535

Test: mathml/xHeight.xhtml

  • platform/graphics/mac/SimpleFontDataMac.mm: (WebCore::SimpleFontData::platformInit):
Location:
trunk
Files:
4 added
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r70302 r70304  
     12010-10-22  François Sausset  <sausset@gmail.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        Fix wrong xHeight() value for Apple Symbols font.
     6        https://bugs.webkit.org/show_bug.cgi?id=41535
     7
     8        * mathml/xHeight.xhtml: Added.
     9        * platform/mac/mathml/presentation/fenced-expected.checksum:
     10        * platform/mac/mathml/presentation/fenced-expected.png:
     11        * platform/mac/mathml/presentation/fenced-expected.txt:
     12        * platform/mac/mathml/presentation/row-alignment-expected.checksum:
     13        * platform/mac/mathml/presentation/row-alignment-expected.png:
     14        * platform/mac/mathml/presentation/row-alignment-expected.txt:
     15        * platform/mac/mathml/presentation/tables-expected.checksum:
     16        * platform/mac/mathml/presentation/tables-expected.png:
     17        * platform/mac/mathml/presentation/tables-expected.txt:
     18        * platform/mac/mathml/xHeight-expected.checksum: Added.
     19        * platform/mac/mathml/xHeight-expected.png: Added.
     20        * platform/mac/mathml/xHeight-expected.txt: Added.
     21
    1222010-10-22  Sheriff Bot  <webkit.review.bot@gmail.com>
    223
  • trunk/LayoutTests/platform/mac/mathml/presentation/fenced-expected.checksum

    r69926 r70304  
    1 f9088cee3e26ced272aa5106fff2dddc
     1b76262c6c2bc8e7c475f13fce3910691
  • trunk/LayoutTests/platform/mac/mathml/presentation/fenced-expected.txt

    r70221 r70304  
    11layer at (0,0) size 800x600
    22  RenderView at (0,0) size 800x600
    3 layer at (0,0) size 800x103
    4   RenderBlock {html} at (0,0) size 800x103
    5     RenderBody {body} at (8,16) size 784x71
    6       RenderBlock {p} at (0,0) size 784x71
    7         RenderBlock {math} at (0,0) size 170x71
    8           RenderBlock {mfenced} at (1,0) size 168x71
    9             RenderBlock {mfenced} at (1,13) size 6x58
     3layer at (0,0) size 800x106
     4  RenderBlock {html} at (0,0) size 800x106
     5    RenderBody {body} at (8,16) size 784x74
     6      RenderBlock {p} at (0,0) size 784x74
     7        RenderBlock {math} at (0,0) size 170x74
     8          RenderBlock {mfenced} at (1,0) size 168x74
     9            RenderBlock {mfenced} at (1,16) size 6x58
    1010            RenderBlock {div} at (7,22) size 48x48 [bgcolor=#00FF00]
    11             RenderBlock {mfenced} at (55,35) size 5x16
     11            RenderBlock {mfenced} at (55,38) size 5x16
    1212              RenderBlock {mfenced} at (0,0) size 4x16
    1313                RenderText {mfenced} at (0,0) size 4x16
    1414                  text run at (0,0) width 4: ","
    1515            RenderBlock {div} at (60,22) size 48x48 [bgcolor=#00FF00]
    16             RenderBlock {mfenced} at (108,35) size 5x16
     16            RenderBlock {mfenced} at (108,38) size 5x16
    1717              RenderBlock {mfenced} at (0,0) size 4x16
    1818                RenderText {mfenced} at (0,0) size 4x16
    1919                  text run at (0,0) width 4: ","
    2020            RenderBlock {div} at (113,22) size 48x48 [bgcolor=#00FF00]
    21             RenderBlock {mfenced} at (161,13) size 6x58
     21            RenderBlock {mfenced} at (161,16) size 6x58
    2222        RenderText {#text} at (0,0) size 0x0
    23 layer at (10,29) size 5x10 scrollHeight 15
     23layer at (10,32) size 5x10 scrollHeight 15
    2424  RenderBlock {mfenced} at (0,0) size 5x10
    25 layer at (10,39) size 5x10 scrollHeight 14
     25layer at (10,42) size 5x10 scrollHeight 14
    2626  RenderBlock {mfenced} at (0,10) size 5x10
    2727    RenderText {mfenced} at (0,-3) size 5x17
    2828      text run at (0,-3) width 5: "\x{239C}"
    29 layer at (10,49) size 5x10 scrollHeight 14
     29layer at (10,52) size 5x10 scrollHeight 14
    3030  RenderBlock {mfenced} at (0,20) size 5x10
    3131    RenderText {mfenced} at (0,-3) size 5x17
    3232      text run at (0,-3) width 5: "\x{239C}"
    33 layer at (10,59) size 5x10 scrollHeight 14
     33layer at (10,62) size 5x10 scrollHeight 14
    3434  RenderBlock {mfenced} at (0,30) size 5x10
    3535    RenderText {mfenced} at (0,-3) size 5x17
    3636      text run at (0,-3) width 5: "\x{239C}"
    37 layer at (10,69) size 5x7 scrollHeight 14
     37layer at (10,72) size 5x7 scrollHeight 14
    3838  RenderBlock {mfenced} at (0,40) size 5x7
    3939    RenderText {mfenced} at (0,-3) size 5x17
    4040      text run at (0,-3) width 5: "\x{239C}"
    41 layer at (10,76) size 5x11 scrollHeight 14
     41layer at (10,79) size 5x11 scrollHeight 14
    4242  RenderBlock {mfenced} at (0,47) size 5x11
    43 layer at (170,29) size 5x10 scrollHeight 15
     43layer at (170,32) size 5x10 scrollHeight 15
    4444  RenderBlock {mfenced} at (0,0) size 5x10
    45 layer at (170,39) size 5x10 scrollHeight 14
     45layer at (170,42) size 5x10 scrollHeight 14
    4646  RenderBlock {mfenced} at (0,10) size 5x10
    4747    RenderText {mfenced} at (0,-3) size 5x17
    4848      text run at (0,-3) width 5: "\x{239F}"
    49 layer at (170,49) size 5x10 scrollHeight 14
     49layer at (170,52) size 5x10 scrollHeight 14
    5050  RenderBlock {mfenced} at (0,20) size 5x10
    5151    RenderText {mfenced} at (0,-3) size 5x17
    5252      text run at (0,-3) width 5: "\x{239F}"
    53 layer at (170,59) size 5x10 scrollHeight 14
     53layer at (170,62) size 5x10 scrollHeight 14
    5454  RenderBlock {mfenced} at (0,30) size 5x10
    5555    RenderText {mfenced} at (0,-3) size 5x17
    5656      text run at (0,-3) width 5: "\x{239F}"
    57 layer at (170,69) size 5x7 scrollHeight 14
     57layer at (170,72) size 5x7 scrollHeight 14
    5858  RenderBlock {mfenced} at (0,40) size 5x7
    5959    RenderText {mfenced} at (0,-3) size 5x17
    6060      text run at (0,-3) width 5: "\x{239F}"
    61 layer at (170,76) size 5x11 scrollHeight 14
     61layer at (170,79) size 5x11 scrollHeight 14
    6262  RenderBlock {mfenced} at (0,47) size 5x11
    63 layer at (10,30) size 5x14 backgroundClip at (10,29) size 5x10 clip at (10,29) size 5x10 outlineClip at (10,29) size 5x10
     63layer at (10,33) size 5x14 backgroundClip at (10,32) size 5x10 clip at (10,32) size 5x10 outlineClip at (10,32) size 5x10
    6464  RenderBlock (relative positioned) {mfenced} at (0,0) size 5x11
    6565    RenderText {mfenced} at (0,-3) size 5x17
    6666      text run at (0,-3) width 5: "\x{239B}"
    67 layer at (10,73) size 5x14 backgroundClip at (10,76) size 5x11 clip at (10,76) size 5x11 outlineClip at (10,76) size 5x11
     67layer at (10,76) size 5x14 backgroundClip at (10,79) size 5x11 clip at (10,79) size 5x11 outlineClip at (10,79) size 5x11
    6868  RenderBlock (relative positioned) {mfenced} at (0,0) size 5x11
    6969    RenderText {mfenced} at (0,-3) size 5x17
    7070      text run at (0,-3) width 5: "\x{239D}"
    71 layer at (170,30) size 5x14 backgroundClip at (170,29) size 5x10 clip at (170,29) size 5x10 outlineClip at (170,29) size 5x10
     71layer at (170,33) size 5x14 backgroundClip at (170,32) size 5x10 clip at (170,32) size 5x10 outlineClip at (170,32) size 5x10
    7272  RenderBlock (relative positioned) {mfenced} at (0,0) size 5x11
    7373    RenderText {mfenced} at (0,-3) size 5x17
    7474      text run at (0,-3) width 5: "\x{239E}"
    75 layer at (170,73) size 5x14 backgroundClip at (170,76) size 5x11 clip at (170,76) size 5x11 outlineClip at (170,76) size 5x11
     75layer at (170,76) size 5x14 backgroundClip at (170,79) size 5x11 clip at (170,79) size 5x11 outlineClip at (170,79) size 5x11
    7676  RenderBlock (relative positioned) {mfenced} at (0,0) size 5x11
    7777    RenderText {mfenced} at (0,-3) size 5x17
  • trunk/LayoutTests/platform/mac/mathml/presentation/row-alignment-expected.checksum

    r70221 r70304  
    1 a2adcc2b842ee0418f419c8b5653b70b
     16f3f95aa00f5bf78aa1c8bcf95cb879d
  • trunk/LayoutTests/platform/mac/mathml/presentation/row-alignment-expected.txt

    r70221 r70304  
    189189          RenderText {#text} at (0,31) size 27x18
    190190            text run at (0,31) width 27: "text "
    191           RenderBlock {math} at (27,0) size 74x80
     191          RenderBlock {math} at (27,0) size 92x80
    192192            RenderBlock {mo} at (1,0) size 6x80
    193             RenderTable {mtable} at (7,5) size 60x66
    194               RenderTableSection (anonymous) at (0,0) size 60x66
    195                 RenderTableRow {mtr} at (0,0) size 60x22
    196                   RenderTableCell {mtd} at (0,0) size 20x22 [r=0 c=0 rs=1 cs=1]
    197                     RenderBlock {msub} at (0,0) size 20x22
     193            RenderTable {mtable} at (7,5) size 78x66
     194              RenderTableSection (anonymous) at (0,0) size 78x66
     195                RenderTableRow {mtr} at (0,0) size 78x22
     196                  RenderTableCell {mtd} at (0,0) size 26x22 [r=0 c=0 rs=1 cs=1]
     197                    RenderBlock {msub} at (3,0) size 20x22
    198198                      RenderBlock {msub} at (0,0) size 8x19
    199199                        RenderInline {mi} at (0,0) size 8x16
     
    203203                        RenderText {#text} at (8,10) size 12x12
    204204                          text run at (8,10) width 12: "11"
    205                   RenderTableCell {mtd} at (20,0) size 20x22 [r=0 c=1 rs=1 cs=1]
    206                     RenderBlock {msub} at (0,0) size 20x22
     205                  RenderTableCell {mtd} at (26,0) size 26x22 [r=0 c=1 rs=1 cs=1]
     206                    RenderBlock {msub} at (3,0) size 20x22
    207207                      RenderBlock {msub} at (0,0) size 8x19
    208208                        RenderInline {mi} at (0,0) size 8x16
     
    212212                        RenderText {#text} at (8,10) size 12x12
    213213                          text run at (8,10) width 12: "12"
    214                   RenderTableCell {mtd} at (40,0) size 20x22 [r=0 c=2 rs=1 cs=1]
    215                     RenderBlock {msub} at (0,0) size 20x22
     214                  RenderTableCell {mtd} at (52,0) size 26x22 [r=0 c=2 rs=1 cs=1]
     215                    RenderBlock {msub} at (3,0) size 20x22
    216216                      RenderBlock {msub} at (0,0) size 8x19
    217217                        RenderInline {mi} at (0,0) size 8x16
     
    221221                        RenderText {#text} at (8,10) size 12x12
    222222                          text run at (8,10) width 12: "13"
    223                 RenderTableRow {mtr} at (0,22) size 60x22
    224                   RenderTableCell {mtd} at (0,22) size 20x22 [r=1 c=0 rs=1 cs=1]
    225                     RenderBlock {msub} at (0,0) size 20x22
     223                RenderTableRow {mtr} at (0,22) size 78x22
     224                  RenderTableCell {mtd} at (0,22) size 26x22 [r=1 c=0 rs=1 cs=1]
     225                    RenderBlock {msub} at (3,0) size 20x22
    226226                      RenderBlock {msub} at (0,0) size 8x19
    227227                        RenderInline {mi} at (0,0) size 8x16
     
    231231                        RenderText {#text} at (8,10) size 12x12
    232232                          text run at (8,10) width 12: "21"
    233                   RenderTableCell {mtd} at (20,22) size 20x22 [r=1 c=1 rs=1 cs=1]
    234                     RenderBlock {msub} at (0,0) size 20x22
     233                  RenderTableCell {mtd} at (26,22) size 26x22 [r=1 c=1 rs=1 cs=1]
     234                    RenderBlock {msub} at (3,0) size 20x22
    235235                      RenderBlock {msub} at (0,0) size 8x19
    236236                        RenderInline {mi} at (0,0) size 8x16
     
    240240                        RenderText {#text} at (8,10) size 12x12
    241241                          text run at (8,10) width 12: "22"
    242                   RenderTableCell {mtd} at (40,22) size 20x22 [r=1 c=2 rs=1 cs=1]
    243                     RenderBlock {msub} at (0,0) size 20x22
     242                  RenderTableCell {mtd} at (52,22) size 26x22 [r=1 c=2 rs=1 cs=1]
     243                    RenderBlock {msub} at (3,0) size 20x22
    244244                      RenderBlock {msub} at (0,0) size 8x19
    245245                        RenderInline {mi} at (0,0) size 8x16
     
    249249                        RenderText {#text} at (8,10) size 12x12
    250250                          text run at (8,10) width 12: "23"
    251                 RenderTableRow {mtr} at (0,44) size 60x22
    252                   RenderTableCell {mtd} at (0,44) size 20x22 [r=2 c=0 rs=1 cs=1]
    253                     RenderBlock {msub} at (0,0) size 19x22
     251                RenderTableRow {mtr} at (0,44) size 78x22
     252                  RenderTableCell {mtd} at (0,44) size 26x22 [r=2 c=0 rs=1 cs=1]
     253                    RenderBlock {msub} at (3,0) size 19x22
    254254                      RenderBlock {msub} at (0,0) size 7x19
    255255                        RenderInline {mi} at (0,0) size 7x16
     
    259259                        RenderText {#text} at (7,10) size 12x12
    260260                          text run at (7,10) width 12: "31"
    261                   RenderTableCell {mtd} at (20,44) size 20x22 [r=2 c=1 rs=1 cs=1]
    262                     RenderBlock {msub} at (0,0) size 19x22
     261                  RenderTableCell {mtd} at (26,44) size 26x22 [r=2 c=1 rs=1 cs=1]
     262                    RenderBlock {msub} at (3,0) size 19x22
    263263                      RenderBlock {msub} at (0,0) size 7x19
    264264                        RenderInline {mi} at (0,0) size 7x16
     
    268268                        RenderText {#text} at (7,10) size 12x12
    269269                          text run at (7,10) width 12: "32"
    270                   RenderTableCell {mtd} at (40,44) size 20x22 [r=2 c=2 rs=1 cs=1]
    271                     RenderBlock {msub} at (0,0) size 19x22
     270                  RenderTableCell {mtd} at (52,44) size 26x22 [r=2 c=2 rs=1 cs=1]
     271                    RenderBlock {msub} at (3,0) size 19x22
    272272                      RenderBlock {msub} at (0,0) size 7x19
    273273                        RenderInline {mi} at (0,0) size 7x16
     
    277277                        RenderText {#text} at (7,10) size 12x12
    278278                          text run at (7,10) width 12: "33"
    279             RenderBlock {mo} at (67,0) size 6x80
     279            RenderBlock {mo} at (85,0) size 6x80
    280280          RenderText {#text} at (0,0) size 0x0
    281281layer at (36,310) size 5x10 scrollHeight 15
     
    411411layer at (36,548) size 5x11 scrollHeight 14
    412412  RenderBlock {mo} at (0,69) size 5x11
    413 layer at (102,479) size 5x10 scrollHeight 15
    414   RenderBlock {mo} at (0,0) size 5x10
    415 layer at (102,489) size 5x10 scrollHeight 14
    416   RenderBlock {mo} at (0,10) size 5x10
    417     RenderText {mo} at (0,-3) size 5x17
    418       text run at (0,-3) width 5: "\x{23A5}"
    419 layer at (102,499) size 5x10 scrollHeight 14
    420   RenderBlock {mo} at (0,20) size 5x10
    421     RenderText {mo} at (0,-3) size 5x17
    422       text run at (0,-3) width 5: "\x{23A5}"
    423 layer at (102,509) size 5x10 scrollHeight 14
     413layer at (120,479) size 5x10 scrollHeight 15
     414  RenderBlock {mo} at (0,0) size 5x10
     415layer at (120,489) size 5x10 scrollHeight 14
     416  RenderBlock {mo} at (0,10) size 5x10
     417    RenderText {mo} at (0,-3) size 5x17
     418      text run at (0,-3) width 5: "\x{23A5}"
     419layer at (120,499) size 5x10 scrollHeight 14
     420  RenderBlock {mo} at (0,20) size 5x10
     421    RenderText {mo} at (0,-3) size 5x17
     422      text run at (0,-3) width 5: "\x{23A5}"
     423layer at (120,509) size 5x10 scrollHeight 14
    424424  RenderBlock {mo} at (0,30) size 5x10
    425425    RenderText {mo} at (0,-3) size 5x17
    426426      text run at (0,-3) width 5: "\x{23A5}"
    427 layer at (102,519) size 5x10 scrollHeight 14
     427layer at (120,519) size 5x10 scrollHeight 14
    428428  RenderBlock {mo} at (0,40) size 5x10
    429429    RenderText {mo} at (0,-3) size 5x17
    430430      text run at (0,-3) width 5: "\x{23A5}"
    431 layer at (102,529) size 5x10 scrollHeight 14
     431layer at (120,529) size 5x10 scrollHeight 14
    432432  RenderBlock {mo} at (0,50) size 5x10
    433433    RenderText {mo} at (0,-3) size 5x17
    434434      text run at (0,-3) width 5: "\x{23A5}"
    435 layer at (102,539) size 5x9 scrollHeight 14
     435layer at (120,539) size 5x9 scrollHeight 14
    436436  RenderBlock {mo} at (0,60) size 5x9
    437437    RenderText {mo} at (0,-3) size 5x17
    438438      text run at (0,-3) width 5: "\x{23A5}"
    439 layer at (102,548) size 5x11 scrollHeight 14
     439layer at (120,548) size 5x11 scrollHeight 14
    440440  RenderBlock {mo} at (0,69) size 5x11
    441441layer at (36,311) size 5x14 backgroundClip at (36,310) size 5x10 clip at (36,310) size 5x10 outlineClip at (36,310) size 5x10
     
    479479    RenderText {mo} at (0,-3) size 5x17
    480480      text run at (0,-3) width 5: "\x{23A3}"
    481 layer at (102,480) size 5x14 backgroundClip at (102,479) size 5x10 clip at (102,479) size 5x10 outlineClip at (102,479) size 5x10
     481layer at (120,480) size 5x14 backgroundClip at (120,479) size 5x10 clip at (120,479) size 5x10 outlineClip at (120,479) size 5x10
    482482  RenderBlock (relative positioned) {mo} at (0,0) size 5x11
    483483    RenderText {mo} at (0,-3) size 5x17
    484484      text run at (0,-3) width 5: "\x{23A4}"
    485 layer at (102,545) size 5x14 backgroundClip at (102,548) size 5x11 clip at (102,548) size 5x11 outlineClip at (102,548) size 5x11
     485layer at (120,545) size 5x14 backgroundClip at (120,548) size 5x11 clip at (120,548) size 5x11 outlineClip at (120,548) size 5x11
    486486  RenderBlock (relative positioned) {mo} at (0,0) size 5x11
    487487    RenderText {mo} at (0,-3) size 5x17
  • trunk/LayoutTests/platform/mac/mathml/presentation/tables-expected.checksum

    r64967 r70304  
    1 4bb76a66be1fb135f74d3f495ee5dd85
     194b971f581cef31ac427a8550b38c463
  • trunk/LayoutTests/platform/mac/mathml/presentation/tables-expected.txt

    r70221 r70304  
    77        RenderText {#text} at (0,26) size 49x18
    88          text run at (0,26) width 49: "simple: "
    9         RenderBlock {math} at (49,0) size 62x66
    10           RenderTable {mtable} at (1,0) size 60x66
    11             RenderTableSection (anonymous) at (0,0) size 60x66
    12               RenderTableRow {mtr} at (0,0) size 60x22
    13                 RenderTableCell {mtd} at (0,0) size 20x22 [r=0 c=0 rs=1 cs=1]
    14                   RenderBlock {msub} at (0,0) size 20x22
     9        RenderBlock {math} at (49,0) size 80x66
     10          RenderTable {mtable} at (1,0) size 78x66
     11            RenderTableSection (anonymous) at (0,0) size 78x66
     12              RenderTableRow {mtr} at (0,0) size 78x22
     13                RenderTableCell {mtd} at (0,0) size 26x22 [r=0 c=0 rs=1 cs=1]
     14                  RenderBlock {msub} at (3,0) size 20x22
    1515                    RenderBlock {msub} at (0,0) size 8x19
    1616                      RenderInline {mi} at (0,0) size 8x16
     
    2020                      RenderText {#text} at (8,10) size 12x12
    2121                        text run at (8,10) width 12: "11"
    22                 RenderTableCell {mtd} at (20,0) size 20x22 [r=0 c=1 rs=1 cs=1]
    23                   RenderBlock {msub} at (0,0) size 20x22
     22                RenderTableCell {mtd} at (26,0) size 26x22 [r=0 c=1 rs=1 cs=1]
     23                  RenderBlock {msub} at (3,0) size 20x22
    2424                    RenderBlock {msub} at (0,0) size 8x19
    2525                      RenderInline {mi} at (0,0) size 8x16
     
    2929                      RenderText {#text} at (8,10) size 12x12
    3030                        text run at (8,10) width 12: "12"
    31                 RenderTableCell {mtd} at (40,0) size 20x22 [r=0 c=2 rs=1 cs=1]
    32                   RenderBlock {msub} at (0,0) size 20x22
     31                RenderTableCell {mtd} at (52,0) size 26x22 [r=0 c=2 rs=1 cs=1]
     32                  RenderBlock {msub} at (3,0) size 20x22
    3333                    RenderBlock {msub} at (0,0) size 8x19
    3434                      RenderInline {mi} at (0,0) size 8x16
     
    3838                      RenderText {#text} at (8,10) size 12x12
    3939                        text run at (8,10) width 12: "13"
    40               RenderTableRow {mtr} at (0,22) size 60x22
    41                 RenderTableCell {mtd} at (0,22) size 20x22 [r=1 c=0 rs=1 cs=1]
    42                   RenderBlock {msub} at (0,0) size 20x22
     40              RenderTableRow {mtr} at (0,22) size 78x22
     41                RenderTableCell {mtd} at (0,22) size 26x22 [r=1 c=0 rs=1 cs=1]
     42                  RenderBlock {msub} at (3,0) size 20x22
    4343                    RenderBlock {msub} at (0,0) size 8x19
    4444                      RenderInline {mi} at (0,0) size 8x16
     
    4848                      RenderText {#text} at (8,10) size 12x12
    4949                        text run at (8,10) width 12: "21"
    50                 RenderTableCell {mtd} at (20,22) size 20x22 [r=1 c=1 rs=1 cs=1]
    51                   RenderBlock {msub} at (0,0) size 20x22
     50                RenderTableCell {mtd} at (26,22) size 26x22 [r=1 c=1 rs=1 cs=1]
     51                  RenderBlock {msub} at (3,0) size 20x22
    5252                    RenderBlock {msub} at (0,0) size 8x19
    5353                      RenderInline {mi} at (0,0) size 8x16
     
    5757                      RenderText {#text} at (8,10) size 12x12
    5858                        text run at (8,10) width 12: "22"
    59                 RenderTableCell {mtd} at (40,22) size 20x22 [r=1 c=2 rs=1 cs=1]
    60                   RenderBlock {msub} at (0,0) size 20x22
     59                RenderTableCell {mtd} at (52,22) size 26x22 [r=1 c=2 rs=1 cs=1]
     60                  RenderBlock {msub} at (3,0) size 20x22
    6161                    RenderBlock {msub} at (0,0) size 8x19
    6262                      RenderInline {mi} at (0,0) size 8x16
     
    6666                      RenderText {#text} at (8,10) size 12x12
    6767                        text run at (8,10) width 12: "23"
    68               RenderTableRow {mtr} at (0,44) size 60x22
    69                 RenderTableCell {mtd} at (0,44) size 20x22 [r=2 c=0 rs=1 cs=1]
    70                   RenderBlock {msub} at (0,0) size 19x22
     68              RenderTableRow {mtr} at (0,44) size 78x22
     69                RenderTableCell {mtd} at (0,44) size 26x22 [r=2 c=0 rs=1 cs=1]
     70                  RenderBlock {msub} at (3,0) size 19x22
    7171                    RenderBlock {msub} at (0,0) size 7x19
    7272                      RenderInline {mi} at (0,0) size 7x16
     
    7676                      RenderText {#text} at (7,10) size 12x12
    7777                        text run at (7,10) width 12: "31"
    78                 RenderTableCell {mtd} at (20,44) size 20x22 [r=2 c=1 rs=1 cs=1]
    79                   RenderBlock {msub} at (0,0) size 19x22
     78                RenderTableCell {mtd} at (26,44) size 26x22 [r=2 c=1 rs=1 cs=1]
     79                  RenderBlock {msub} at (3,0) size 19x22
    8080                    RenderBlock {msub} at (0,0) size 7x19
    8181                      RenderInline {mi} at (0,0) size 7x16
     
    8585                      RenderText {#text} at (7,10) size 12x12
    8686                        text run at (7,10) width 12: "32"
    87                 RenderTableCell {mtd} at (40,44) size 20x22 [r=2 c=2 rs=1 cs=1]
    88                   RenderBlock {msub} at (0,0) size 19x22
     87                RenderTableCell {mtd} at (52,44) size 26x22 [r=2 c=2 rs=1 cs=1]
     88                  RenderBlock {msub} at (3,0) size 19x22
    8989                    RenderBlock {msub} at (0,0) size 7x19
    9090                      RenderInline {mi} at (0,0) size 7x16
     
    9898        RenderText {#text} at (0,26) size 308x18
    9999          text run at (0,26) width 308: "left, default (center) and right column alignment: "
    100         RenderBlock {math} at (308,0) size 198x66
    101           RenderTable {mtable} at (1,0) size 60x66
    102             RenderTableSection (anonymous) at (0,0) size 60x66
    103               RenderTableRow {mtr} at (0,0) size 60x22
    104                 RenderTableCell {mtd} at (0,0) size 20x22 [r=0 c=0 rs=1 cs=1]
    105                   RenderBlock {msub} at (0,0) size 14x22
     100        RenderBlock {math} at (308,0) size 252x66
     101          RenderTable {mtable} at (1,0) size 78x66
     102            RenderTableSection (anonymous) at (0,0) size 78x66
     103              RenderTableRow {mtr} at (0,0) size 78x22
     104                RenderTableCell {mtd} at (0,0) size 26x22 [r=0 c=0 rs=1 cs=1]
     105                  RenderBlock {msub} at (3,0) size 14x22
    106106                    RenderBlock {msub} at (0,0) size 8x19
    107107                      RenderInline {mi} at (0,0) size 8x16
     
    111111                      RenderText {#text} at (8,10) size 6x12
    112112                        text run at (8,10) width 6: "1"
    113                 RenderTableCell {mtd} at (20,0) size 20x22 [r=0 c=1 rs=1 cs=1]
    114                   RenderBlock {msub} at (0,0) size 20x22
     113                RenderTableCell {mtd} at (26,0) size 26x22 [r=0 c=1 rs=1 cs=1]
     114                  RenderBlock {msub} at (3,0) size 20x22
    115115                    RenderBlock {msub} at (0,0) size 8x19
    116116                      RenderInline {mi} at (0,0) size 8x16
     
    120120                      RenderText {#text} at (8,10) size 12x12
    121121                        text run at (8,10) width 12: "12"
    122                 RenderTableCell {mtd} at (40,0) size 20x22 [r=0 c=2 rs=1 cs=1]
    123                   RenderBlock {msub} at (0,0) size 20x22
     122                RenderTableCell {mtd} at (52,0) size 26x22 [r=0 c=2 rs=1 cs=1]
     123                  RenderBlock {msub} at (3,0) size 20x22
    124124                    RenderBlock {msub} at (0,0) size 8x19
    125125                      RenderInline {mi} at (0,0) size 8x16
     
    129129                      RenderText {#text} at (8,10) size 12x12
    130130                        text run at (8,10) width 12: "13"
    131               RenderTableRow {mtr} at (0,22) size 60x22
    132                 RenderTableCell {mtd} at (0,22) size 20x22 [r=1 c=0 rs=1 cs=1]
    133                   RenderBlock {msub} at (0,0) size 20x22
     131              RenderTableRow {mtr} at (0,22) size 78x22
     132                RenderTableCell {mtd} at (0,22) size 26x22 [r=1 c=0 rs=1 cs=1]
     133                  RenderBlock {msub} at (3,0) size 20x22
    134134                    RenderBlock {msub} at (0,0) size 8x19
    135135                      RenderInline {mi} at (0,0) size 8x16
     
    139139                      RenderText {#text} at (8,10) size 12x12
    140140                        text run at (8,10) width 12: "21"
    141                 RenderTableCell {mtd} at (20,22) size 20x22 [r=1 c=1 rs=1 cs=1]
    142                   RenderBlock {msub} at (0,0) size 14x22
     141                RenderTableCell {mtd} at (26,22) size 26x22 [r=1 c=1 rs=1 cs=1]
     142                  RenderBlock {msub} at (3,0) size 14x22
    143143                    RenderBlock {msub} at (0,0) size 8x19
    144144                      RenderInline {mi} at (0,0) size 8x16
     
    148148                      RenderText {#text} at (8,10) size 6x12
    149149                        text run at (8,10) width 6: "2"
    150                 RenderTableCell {mtd} at (40,22) size 20x22 [r=1 c=2 rs=1 cs=1]
    151                   RenderBlock {msub} at (0,0) size 20x22
     150                RenderTableCell {mtd} at (52,22) size 26x22 [r=1 c=2 rs=1 cs=1]
     151                  RenderBlock {msub} at (3,0) size 20x22
    152152                    RenderBlock {msub} at (0,0) size 8x19
    153153                      RenderInline {mi} at (0,0) size 8x16
     
    157157                      RenderText {#text} at (8,10) size 12x12
    158158                        text run at (8,10) width 12: "23"
    159               RenderTableRow {mtr} at (0,44) size 60x22
    160                 RenderTableCell {mtd} at (0,44) size 20x22 [r=2 c=0 rs=1 cs=1]
    161                   RenderBlock {msub} at (0,0) size 19x22
     159              RenderTableRow {mtr} at (0,44) size 78x22
     160                RenderTableCell {mtd} at (0,44) size 26x22 [r=2 c=0 rs=1 cs=1]
     161                  RenderBlock {msub} at (3,0) size 19x22
    162162                    RenderBlock {msub} at (0,0) size 7x19
    163163                      RenderInline {mi} at (0,0) size 7x16
     
    167167                      RenderText {#text} at (7,10) size 12x12
    168168                        text run at (7,10) width 12: "31"
    169                 RenderTableCell {mtd} at (20,44) size 20x22 [r=2 c=1 rs=1 cs=1]
    170                   RenderBlock {msub} at (0,0) size 19x22
     169                RenderTableCell {mtd} at (26,44) size 26x22 [r=2 c=1 rs=1 cs=1]
     170                  RenderBlock {msub} at (3,0) size 19x22
    171171                    RenderBlock {msub} at (0,0) size 7x19
    172172                      RenderInline {mi} at (0,0) size 7x16
     
    176176                      RenderText {#text} at (7,10) size 12x12
    177177                        text run at (7,10) width 12: "32"
    178                 RenderTableCell {mtd} at (40,44) size 20x22 [r=2 c=2 rs=1 cs=1]
    179                   RenderBlock {msub} at (0,0) size 13x22
     178                RenderTableCell {mtd} at (52,44) size 26x22 [r=2 c=2 rs=1 cs=1]
     179                  RenderBlock {msub} at (3,0) size 13x22
    180180                    RenderBlock {msub} at (0,0) size 7x19
    181181                      RenderInline {mi} at (0,0) size 7x16
     
    186186                        text run at (7,10) width 6: "3"
    187187          RenderInline {mtext} at (0,0) size 8x16
    188             RenderText {#text} at (61,29) size 8x16
    189               text run at (61,29) width 8: ", "
    190           RenderTable {mtable} at (69,0) size 60x66
    191             RenderTableSection (anonymous) at (0,0) size 60x66
    192               RenderTableRow {mtr} at (0,0) size 60x22
    193                 RenderTableCell {mtd} at (0,0) size 20x22 [r=0 c=0 rs=1 cs=1]
    194                   RenderBlock {msub} at (3,0) size 14x22
     188            RenderText {#text} at (79,29) size 8x16
     189              text run at (79,29) width 8: ", "
     190          RenderTable {mtable} at (87,0) size 78x66
     191            RenderTableSection (anonymous) at (0,0) size 78x66
     192              RenderTableRow {mtr} at (0,0) size 78x22
     193                RenderTableCell {mtd} at (0,0) size 26x22 [r=0 c=0 rs=1 cs=1]
     194                  RenderBlock {msub} at (6,0) size 14x22
    195195                    RenderBlock {msub} at (0,0) size 8x19
    196196                      RenderInline {mi} at (0,0) size 8x16
     
    200200                      RenderText {#text} at (8,10) size 6x12
    201201                        text run at (8,10) width 6: "1"
    202                 RenderTableCell {mtd} at (20,0) size 20x22 [r=0 c=1 rs=1 cs=1]
    203                   RenderBlock {msub} at (0,0) size 20x22
     202                RenderTableCell {mtd} at (26,0) size 26x22 [r=0 c=1 rs=1 cs=1]
     203                  RenderBlock {msub} at (3,0) size 20x22
    204204                    RenderBlock {msub} at (0,0) size 8x19
    205205                      RenderInline {mi} at (0,0) size 8x16
     
    209209                      RenderText {#text} at (8,10) size 12x12
    210210                        text run at (8,10) width 12: "12"
    211                 RenderTableCell {mtd} at (40,0) size 20x22 [r=0 c=2 rs=1 cs=1]
    212                   RenderBlock {msub} at (0,0) size 20x22
     211                RenderTableCell {mtd} at (52,0) size 26x22 [r=0 c=2 rs=1 cs=1]
     212                  RenderBlock {msub} at (3,0) size 20x22
    213213                    RenderBlock {msub} at (0,0) size 8x19
    214214                      RenderInline {mi} at (0,0) size 8x16
     
    218218                      RenderText {#text} at (8,10) size 12x12
    219219                        text run at (8,10) width 12: "13"
    220               RenderTableRow {mtr} at (0,22) size 60x22
    221                 RenderTableCell {mtd} at (0,22) size 20x22 [r=1 c=0 rs=1 cs=1]
    222                   RenderBlock {msub} at (0,0) size 20x22
     220              RenderTableRow {mtr} at (0,22) size 78x22
     221                RenderTableCell {mtd} at (0,22) size 26x22 [r=1 c=0 rs=1 cs=1]
     222                  RenderBlock {msub} at (3,0) size 20x22
    223223                    RenderBlock {msub} at (0,0) size 8x19
    224224                      RenderInline {mi} at (0,0) size 8x16
     
    228228                      RenderText {#text} at (8,10) size 12x12
    229229                        text run at (8,10) width 12: "21"
    230                 RenderTableCell {mtd} at (20,22) size 20x22 [r=1 c=1 rs=1 cs=1]
    231                   RenderBlock {msub} at (3,0) size 14x22
     230                RenderTableCell {mtd} at (26,22) size 26x22 [r=1 c=1 rs=1 cs=1]
     231                  RenderBlock {msub} at (6,0) size 14x22
    232232                    RenderBlock {msub} at (0,0) size 8x19
    233233                      RenderInline {mi} at (0,0) size 8x16
     
    237237                      RenderText {#text} at (8,10) size 6x12
    238238                        text run at (8,10) width 6: "2"
    239                 RenderTableCell {mtd} at (40,22) size 20x22 [r=1 c=2 rs=1 cs=1]
    240                   RenderBlock {msub} at (0,0) size 20x22
     239                RenderTableCell {mtd} at (52,22) size 26x22 [r=1 c=2 rs=1 cs=1]
     240                  RenderBlock {msub} at (3,0) size 20x22
    241241                    RenderBlock {msub} at (0,0) size 8x19
    242242                      RenderInline {mi} at (0,0) size 8x16
     
    246246                      RenderText {#text} at (8,10) size 12x12
    247247                        text run at (8,10) width 12: "23"
    248               RenderTableRow {mtr} at (0,44) size 60x22
    249                 RenderTableCell {mtd} at (0,44) size 20x22 [r=2 c=0 rs=1 cs=1]
    250                   RenderBlock {msub} at (0,0) size 19x22
     248              RenderTableRow {mtr} at (0,44) size 78x22
     249                RenderTableCell {mtd} at (0,44) size 26x22 [r=2 c=0 rs=1 cs=1]
     250                  RenderBlock {msub} at (3,0) size 19x22
    251251                    RenderBlock {msub} at (0,0) size 7x19
    252252                      RenderInline {mi} at (0,0) size 7x16
     
    256256                      RenderText {#text} at (7,10) size 12x12
    257257                        text run at (7,10) width 12: "31"
    258                 RenderTableCell {mtd} at (20,44) size 20x22 [r=2 c=1 rs=1 cs=1]
    259                   RenderBlock {msub} at (0,0) size 19x22
     258                RenderTableCell {mtd} at (26,44) size 26x22 [r=2 c=1 rs=1 cs=1]
     259                  RenderBlock {msub} at (3,0) size 19x22
    260260                    RenderBlock {msub} at (0,0) size 7x19
    261261                      RenderInline {mi} at (0,0) size 7x16
     
    265265                      RenderText {#text} at (7,10) size 12x12
    266266                        text run at (7,10) width 12: "32"
    267                 RenderTableCell {mtd} at (40,44) size 20x22 [r=2 c=2 rs=1 cs=1]
    268                   RenderBlock {msub} at (3,0) size 13x22
     267                RenderTableCell {mtd} at (52,44) size 26x22 [r=2 c=2 rs=1 cs=1]
     268                  RenderBlock {msub} at (6,0) size 13x22
    269269                    RenderBlock {msub} at (0,0) size 7x19
    270270                      RenderInline {mi} at (0,0) size 7x16
     
    275275                        text run at (7,10) width 6: "3"
    276276          RenderInline {mtext} at (0,0) size 8x16
    277             RenderText {#text} at (129,29) size 8x16
    278               text run at (129,29) width 8: ", "
    279           RenderTable {mtable} at (137,0) size 60x66
    280             RenderTableSection (anonymous) at (0,0) size 60x66
    281               RenderTableRow {mtr} at (0,0) size 60x22
    282                 RenderTableCell {mtd} at (0,0) size 20x22 [r=0 c=0 rs=1 cs=1]
    283                   RenderBlock {msub} at (6,0) size 14x22
     277            RenderText {#text} at (165,29) size 8x16
     278              text run at (165,29) width 8: ", "
     279          RenderTable {mtable} at (173,0) size 78x66
     280            RenderTableSection (anonymous) at (0,0) size 78x66
     281              RenderTableRow {mtr} at (0,0) size 78x22
     282                RenderTableCell {mtd} at (0,0) size 26x22 [r=0 c=0 rs=1 cs=1]
     283                  RenderBlock {msub} at (9,0) size 14x22
    284284                    RenderBlock {msub} at (0,0) size 8x19
    285285                      RenderInline {mi} at (0,0) size 8x16
     
    289289                      RenderText {#text} at (8,10) size 6x12
    290290                        text run at (8,10) width 6: "1"
    291                 RenderTableCell {mtd} at (20,0) size 20x22 [r=0 c=1 rs=1 cs=1]
    292                   RenderBlock {msub} at (0,0) size 20x22
     291                RenderTableCell {mtd} at (26,0) size 26x22 [r=0 c=1 rs=1 cs=1]
     292                  RenderBlock {msub} at (3,0) size 20x22
    293293                    RenderBlock {msub} at (0,0) size 8x19
    294294                      RenderInline {mi} at (0,0) size 8x16
     
    298298                      RenderText {#text} at (8,10) size 12x12
    299299                        text run at (8,10) width 12: "12"
    300                 RenderTableCell {mtd} at (40,0) size 20x22 [r=0 c=2 rs=1 cs=1]
    301                   RenderBlock {msub} at (0,0) size 20x22
     300                RenderTableCell {mtd} at (52,0) size 26x22 [r=0 c=2 rs=1 cs=1]
     301                  RenderBlock {msub} at (3,0) size 20x22
    302302                    RenderBlock {msub} at (0,0) size 8x19
    303303                      RenderInline {mi} at (0,0) size 8x16
     
    307307                      RenderText {#text} at (8,10) size 12x12
    308308                        text run at (8,10) width 12: "13"
    309               RenderTableRow {mtr} at (0,22) size 60x22
    310                 RenderTableCell {mtd} at (0,22) size 20x22 [r=1 c=0 rs=1 cs=1]
    311                   RenderBlock {msub} at (0,0) size 20x22
     309              RenderTableRow {mtr} at (0,22) size 78x22
     310                RenderTableCell {mtd} at (0,22) size 26x22 [r=1 c=0 rs=1 cs=1]
     311                  RenderBlock {msub} at (3,0) size 20x22
    312312                    RenderBlock {msub} at (0,0) size 8x19
    313313                      RenderInline {mi} at (0,0) size 8x16
     
    317317                      RenderText {#text} at (8,10) size 12x12
    318318                        text run at (8,10) width 12: "21"
    319                 RenderTableCell {mtd} at (20,22) size 20x22 [r=1 c=1 rs=1 cs=1]
    320                   RenderBlock {msub} at (6,0) size 14x22
     319                RenderTableCell {mtd} at (26,22) size 26x22 [r=1 c=1 rs=1 cs=1]
     320                  RenderBlock {msub} at (9,0) size 14x22
    321321                    RenderBlock {msub} at (0,0) size 8x19
    322322                      RenderInline {mi} at (0,0) size 8x16
     
    326326                      RenderText {#text} at (8,10) size 6x12
    327327                        text run at (8,10) width 6: "2"
    328                 RenderTableCell {mtd} at (40,22) size 20x22 [r=1 c=2 rs=1 cs=1]
    329                   RenderBlock {msub} at (0,0) size 20x22
     328                RenderTableCell {mtd} at (52,22) size 26x22 [r=1 c=2 rs=1 cs=1]
     329                  RenderBlock {msub} at (3,0) size 20x22
    330330                    RenderBlock {msub} at (0,0) size 8x19
    331331                      RenderInline {mi} at (0,0) size 8x16
     
    335335                      RenderText {#text} at (8,10) size 12x12
    336336                        text run at (8,10) width 12: "23"
    337               RenderTableRow {mtr} at (0,44) size 60x22
    338                 RenderTableCell {mtd} at (0,44) size 20x22 [r=2 c=0 rs=1 cs=1]
    339                   RenderBlock {msub} at (1,0) size 19x22
     337              RenderTableRow {mtr} at (0,44) size 78x22
     338                RenderTableCell {mtd} at (0,44) size 26x22 [r=2 c=0 rs=1 cs=1]
     339                  RenderBlock {msub} at (4,0) size 19x22
    340340                    RenderBlock {msub} at (0,0) size 7x19
    341341                      RenderInline {mi} at (0,0) size 7x16
     
    345345                      RenderText {#text} at (7,10) size 12x12
    346346                        text run at (7,10) width 12: "31"
    347                 RenderTableCell {mtd} at (20,44) size 20x22 [r=2 c=1 rs=1 cs=1]
    348                   RenderBlock {msub} at (1,0) size 19x22
     347                RenderTableCell {mtd} at (26,44) size 26x22 [r=2 c=1 rs=1 cs=1]
     348                  RenderBlock {msub} at (4,0) size 19x22
    349349                    RenderBlock {msub} at (0,0) size 7x19
    350350                      RenderInline {mi} at (0,0) size 7x16
     
    354354                      RenderText {#text} at (7,10) size 12x12
    355355                        text run at (7,10) width 12: "32"
    356                 RenderTableCell {mtd} at (40,44) size 20x22 [r=2 c=2 rs=1 cs=1]
    357                   RenderBlock {msub} at (7,0) size 13x22
     356                RenderTableCell {mtd} at (52,44) size 26x22 [r=2 c=2 rs=1 cs=1]
     357                  RenderBlock {msub} at (10,0) size 13x22
    358358                    RenderBlock {msub} at (0,0) size 7x19
    359359                      RenderInline {mi} at (0,0) size 7x16
  • trunk/WebCore/ChangeLog

    r70303 r70304  
     12010-10-22  François Sausset  <sausset@gmail.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        Fix wrong xHeight() value for Apple Symbols font.
     6        https://bugs.webkit.org/show_bug.cgi?id=41535
     7
     8        Test: mathml/xHeight.xhtml
     9
     10        * platform/graphics/mac/SimpleFontDataMac.mm:
     11        (WebCore::SimpleFontData::platformInit):
     12
    1132010-10-22  Nikolas Zimmermann  <nzimmermann@rim.com>
    214
  • trunk/WebCore/platform/graphics/mac/SimpleFontDataMac.mm

    r70250 r70304  
    278278        m_xHeight = m_platformData.font() ? [m_platformData.font() xHeight] : 0;
    279279#endif
     280        // CGFontGetXHeight() returns a wrong value for "Apple Symbols" font (a float close to 0, but not strictly 0).
     281        // The following code makes a guess for m_xHeight in that case.
     282        // The int cast is a workaround for the "almost" zero value returned by CGFontGetXHeight().
     283        if (!static_cast<int>(m_xHeight) && fAscent)
     284            m_xHeight = 2 * fAscent / 3;
    280285    }
    281286}
Note: See TracChangeset for help on using the changeset viewer.