Changeset 164700 in webkit
- Timestamp:
- Feb 25, 2014 10:52:37 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r164689 r164700 1 2014-02-25 Frédéric Wang <fred.wang@free.fr> 2 3 Add support for minsize/maxsize attributes. 4 https://bugs.webkit.org/show_bug.cgi?id=122567 5 6 Reviewed by Chris Fleizach. 7 8 Add some reftests for the minsize/maxsize attributes of the mo element. 9 10 * platform/mac/mathml/presentation/mo-stretch-expected.txt: 11 * mathml/presentation/stretchy-minsize-maxsize-dynamic-expected.html: Added. 12 * mathml/presentation/stretchy-minsize-maxsize-dynamic.html: Added. 13 * mathml/presentation/stretchy-minsize-maxsize-expected.html: Added. 14 * mathml/presentation/stretchy-minsize-maxsize.html: Added. 15 1 16 2014-02-25 Joseph Pecoraro <pecoraro@apple.com> 2 17 -
trunk/LayoutTests/platform/mac/mathml/presentation/mo-stretch-expected.txt
r164537 r164700 1 1 layer at (0,0) size 800x600 2 2 RenderView at (0,0) size 800x600 3 layer at (0,0) size 800x2 564 RenderBlock {HTML} at (0,0) size 800x2 565 RenderBody {BODY} at (8,8) size 784x24 06 RenderMathMLMath {math} at (0,0) size 195x2 0[padding: 0 1 0 1]7 RenderMathMLRow {mrow} at (1,0) size 193x2 08 RenderMathMLOperator {mo} at (1, 3) size 8x143 layer at (0,0) size 800x260 4 RenderBlock {HTML} at (0,0) size 800x260 5 RenderBody {BODY} at (8,8) size 784x244 6 RenderMathMLMath {math} at (0,0) size 195x25 [padding: 0 1 0 1] 7 RenderMathMLRow {mrow} at (1,0) size 193x25 8 RenderMathMLOperator {mo} at (1,5) size 8x14 9 9 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 10 10 RenderBlock (anonymous) at (0,0) size 5x14 11 11 RenderText at (0,-6) size 5x24 12 12 text run at (0,-6) width 5: "(" 13 RenderMathMLOperator {mo} at (13, 3) size 8x1413 RenderMathMLOperator {mo} at (13,5) size 8x14 14 14 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 15 15 RenderBlock (anonymous) at (0,0) size 5x14 16 16 RenderText at (0,-6) size 5x24 17 17 text run at (0,-6) width 5: ")" 18 RenderMathMLOperator {mo} at (26, 3) size 11x1418 RenderMathMLOperator {mo} at (26,5) size 11x14 19 19 RenderMathMLBlock (flex) {mo} at (0,0) size 10x14 20 20 RenderBlock (anonymous) at (0,0) size 8x14 21 21 RenderText at (0,-6) size 8x24 22 22 text run at (0,-6) width 8: "{" 23 RenderMathMLOperator {mo} at (43, 3) size 11x1423 RenderMathMLOperator {mo} at (43,5) size 11x14 24 24 RenderMathMLBlock (flex) {mo} at (0,0) size 10x14 25 25 RenderBlock (anonymous) at (0,0) size 8x14 26 26 RenderText at (0,-6) size 8x24 27 27 text run at (0,-6) width 8: "}" 28 RenderMathMLOperator {mo} at (59, 3) size 8x1428 RenderMathMLOperator {mo} at (59,5) size 8x14 29 29 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 30 30 RenderBlock (anonymous) at (0,0) size 5x14 31 31 RenderText at (0,-6) size 5x24 32 32 text run at (0,-6) width 5: "[" 33 RenderMathMLOperator {mo} at (72, 3) size 8x1433 RenderMathMLOperator {mo} at (72,5) size 8x14 34 34 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 35 35 RenderBlock (anonymous) at (0,0) size 5x14 36 36 RenderText at (0,-6) size 5x24 37 37 text run at (0,-6) width 5: "]" 38 RenderMathMLOperator {mo} at (86, 2) size 9x1638 RenderMathMLOperator {mo} at (86,4) size 9x16 39 39 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 40 40 RenderBlock (anonymous) at (0,0) size 8x16 41 41 RenderText at (0,-5) size 8x24 42 42 text run at (0,-5) width 8: "\x{2308}" 43 RenderMathMLOperator {mo} at (100, 2) size 9x1643 RenderMathMLOperator {mo} at (100,4) size 9x16 44 44 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 45 45 RenderBlock (anonymous) at (0,0) size 8x16 46 46 RenderText at (0,-5) size 8x24 47 47 text run at (0,-5) width 8: "\x{2309}" 48 RenderMathMLOperator {mo} at (115, 2) size 8x1648 RenderMathMLOperator {mo} at (115,4) size 8x16 49 49 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 50 50 RenderBlock (anonymous) at (0,0) size 8x16 51 51 RenderText at (0,-5) size 8x24 52 52 text run at (0,-5) width 8: "\x{230A}" 53 RenderMathMLOperator {mo} at (129, 2) size 9x1653 RenderMathMLOperator {mo} at (129,4) size 9x16 54 54 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 55 55 RenderBlock (anonymous) at (0,0) size 8x16 56 56 RenderText at (0,-5) size 8x24 57 57 text run at (0,-5) width 8: "\x{230B}" 58 RenderMathMLOperator {mo} at (143, 0) size 12x2058 RenderMathMLOperator {mo} at (143,2) size 12x20 59 59 RenderMathMLBlock (flex) {mo} at (0,0) size 11x20 60 60 RenderBlock (anonymous) at (0,0) size 7x20 61 61 RenderText at (0,-3) size 7x24 62 62 text run at (0,-3) width 7: "\x{222B}" 63 RenderMathMLOperator {mo} at (161, 3) size 4x1263 RenderMathMLOperator {mo} at (161,0) size 4x25 64 64 RenderMathMLBlock (flex) {mo} at (0,0) size 3x12 65 65 RenderBlock (anonymous) at (0,0) size 3x12 66 66 RenderText at (0,-6) size 3x24 67 67 text run at (0,-6) width 3: "|" 68 RenderMathMLOperator {mo} at (170, 2) size 9x1668 RenderMathMLOperator {mo} at (170,4) size 9x16 69 69 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 70 70 RenderBlock (anonymous) at (0,0) size 8x16 71 71 RenderText at (0,-5) size 8x24 72 72 text run at (0,-5) width 8: "\x{2016}" 73 RenderMathMLOperator {mo} at (183, 2) size 9x1673 RenderMathMLOperator {mo} at (183,4) size 9x16 74 74 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 75 75 RenderBlock (anonymous) at (0,0) size 8x16 76 76 RenderText at (0,-5) size 8x24 77 77 text run at (0,-5) width 8: "\x{2225}" 78 RenderText {#text} at (194, 0) size 5x1879 text run at (194, 0) width 5: " "78 RenderText {#text} at (194,2) size 5x18 79 text run at (194,2) width 5: " " 80 80 RenderBR {BR} at (0,0) size 0x0 81 RenderMathMLMath {math} at (0,2 0) size 199x142[padding: 0 1 0 1]82 RenderMathMLRow {mrow} at (1,0) size 197x14 283 RenderMathMLOperator {mo} at (1,0) size 8x14 281 RenderMathMLMath {math} at (0,24) size 199x143 [padding: 0 1 0 1] 82 RenderMathMLRow {mrow} at (1,0) size 197x143 83 RenderMathMLOperator {mo} at (1,0) size 8x143 84 84 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 85 85 RenderBlock (anonymous) at (0,0) size 5x14 86 86 RenderText at (0,-6) size 5x24 87 87 text run at (0,-6) width 5: "(" 88 RenderMathMLOperator {mo} at (13,0) size 8x14 288 RenderMathMLOperator {mo} at (13,0) size 8x143 89 89 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 90 90 RenderBlock (anonymous) at (0,0) size 5x14 91 91 RenderText at (0,-6) size 5x24 92 92 text run at (0,-6) width 5: ")" 93 RenderMathMLOperator {mo} at (26,0) size 11x14 293 RenderMathMLOperator {mo} at (26,0) size 11x143 94 94 RenderMathMLBlock (flex) {mo} at (0,0) size 10x14 95 95 RenderBlock (anonymous) at (0,0) size 8x14 96 96 RenderText at (0,-6) size 8x24 97 97 text run at (0,-6) width 8: "{" 98 RenderMathMLOperator {mo} at (43,0) size 11x14 298 RenderMathMLOperator {mo} at (43,0) size 11x143 99 99 RenderMathMLBlock (flex) {mo} at (0,0) size 10x14 100 100 RenderBlock (anonymous) at (0,0) size 8x14 101 101 RenderText at (0,-6) size 8x24 102 102 text run at (0,-6) width 8: "}" 103 RenderMathMLOperator {mo} at (59,0) size 8x14 2103 RenderMathMLOperator {mo} at (59,0) size 8x143 104 104 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 105 105 RenderBlock (anonymous) at (0,0) size 5x14 106 106 RenderText at (0,-6) size 5x24 107 107 text run at (0,-6) width 5: "[" 108 RenderMathMLOperator {mo} at (72,0) size 8x14 2108 RenderMathMLOperator {mo} at (72,0) size 8x143 109 109 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 110 110 RenderBlock (anonymous) at (0,0) size 5x14 111 111 RenderText at (0,-6) size 5x24 112 112 text run at (0,-6) width 5: "]" 113 RenderMathMLOperator {mo} at (86,0) size 9x14 2113 RenderMathMLOperator {mo} at (86,0) size 9x143 114 114 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 115 115 RenderBlock (anonymous) at (0,0) size 8x16 116 116 RenderText at (0,-5) size 8x24 117 117 text run at (0,-5) width 8: "\x{2308}" 118 RenderMathMLOperator {mo} at (100,0) size 9x14 2118 RenderMathMLOperator {mo} at (100,0) size 9x143 119 119 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 120 120 RenderBlock (anonymous) at (0,0) size 8x16 121 121 RenderText at (0,-5) size 8x24 122 122 text run at (0,-5) width 8: "\x{2309}" 123 RenderMathMLOperator {mo} at (115,0) size 8x14 2123 RenderMathMLOperator {mo} at (115,0) size 8x143 124 124 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 125 125 RenderBlock (anonymous) at (0,0) size 8x16 126 126 RenderText at (0,-5) size 8x24 127 127 text run at (0,-5) width 8: "\x{230A}" 128 RenderMathMLOperator {mo} at (129,0) size 9x14 2128 RenderMathMLOperator {mo} at (129,0) size 9x143 129 129 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 130 130 RenderBlock (anonymous) at (0,0) size 8x16 131 131 RenderText at (0,-5) size 8x24 132 132 text run at (0,-5) width 8: "\x{230B}" 133 RenderMathMLOperator {mo} at (143,0) size 12x14 2133 RenderMathMLOperator {mo} at (143,0) size 12x143 134 134 RenderMathMLBlock (flex) {mo} at (0,0) size 11x20 135 135 RenderBlock (anonymous) at (0,0) size 7x20 136 136 RenderText at (0,-3) size 7x24 137 137 text run at (0,-3) width 7: "\x{222B}" 138 RenderMathMLOperator {mo} at (161,0) size 4x14 2138 RenderMathMLOperator {mo} at (161,0) size 4x143 139 139 RenderMathMLBlock (flex) {mo} at (0,0) size 3x12 140 140 RenderBlock (anonymous) at (0,0) size 3x12 … … 152 152 text run at (0,-5) width 8: "\x{2225}" 153 153 RenderMathMLSpace {mspace} at (196,0) size 1x76 154 RenderText {#text} at (198,8 1) size 5x18155 text run at (198,8 1) width 5: " "156 RenderMathMLMath {math} at (202,4 5) size 199x92[padding: 0 1 0 1]157 RenderMathMLRow {mrow} at (1,0) size 197x9 2158 RenderMathMLOperator {mo} at (1,0) size 8x9 2154 RenderText {#text} at (198,85) size 5x18 155 text run at (198,85) width 5: " " 156 RenderMathMLMath {math} at (202,49) size 199x93 [padding: 0 1 0 1] 157 RenderMathMLRow {mrow} at (1,0) size 197x93 158 RenderMathMLOperator {mo} at (1,0) size 8x93 159 159 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 160 160 RenderBlock (anonymous) at (0,0) size 5x14 161 161 RenderText at (0,-6) size 5x24 162 162 text run at (0,-6) width 5: "(" 163 RenderMathMLOperator {mo} at (13,0) size 8x9 2163 RenderMathMLOperator {mo} at (13,0) size 8x93 164 164 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 165 165 RenderBlock (anonymous) at (0,0) size 5x14 166 166 RenderText at (0,-6) size 5x24 167 167 text run at (0,-6) width 5: ")" 168 RenderMathMLOperator {mo} at (26,0) size 11x9 2168 RenderMathMLOperator {mo} at (26,0) size 11x93 169 169 RenderMathMLBlock (flex) {mo} at (0,0) size 10x14 170 170 RenderBlock (anonymous) at (0,0) size 8x14 171 171 RenderText at (0,-6) size 8x24 172 172 text run at (0,-6) width 8: "{" 173 RenderMathMLOperator {mo} at (43,0) size 11x9 2173 RenderMathMLOperator {mo} at (43,0) size 11x93 174 174 RenderMathMLBlock (flex) {mo} at (0,0) size 10x14 175 175 RenderBlock (anonymous) at (0,0) size 8x14 176 176 RenderText at (0,-6) size 8x24 177 177 text run at (0,-6) width 8: "}" 178 RenderMathMLOperator {mo} at (59,0) size 8x9 2178 RenderMathMLOperator {mo} at (59,0) size 8x93 179 179 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 180 180 RenderBlock (anonymous) at (0,0) size 5x14 181 181 RenderText at (0,-6) size 5x24 182 182 text run at (0,-6) width 5: "[" 183 RenderMathMLOperator {mo} at (72,0) size 8x9 2183 RenderMathMLOperator {mo} at (72,0) size 8x93 184 184 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 185 185 RenderBlock (anonymous) at (0,0) size 5x14 186 186 RenderText at (0,-6) size 5x24 187 187 text run at (0,-6) width 5: "]" 188 RenderMathMLOperator {mo} at (86,0) size 9x9 2188 RenderMathMLOperator {mo} at (86,0) size 9x93 189 189 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 190 190 RenderBlock (anonymous) at (0,0) size 8x16 191 191 RenderText at (0,-5) size 8x24 192 192 text run at (0,-5) width 8: "\x{2308}" 193 RenderMathMLOperator {mo} at (100,0) size 9x9 2193 RenderMathMLOperator {mo} at (100,0) size 9x93 194 194 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 195 195 RenderBlock (anonymous) at (0,0) size 8x16 196 196 RenderText at (0,-5) size 8x24 197 197 text run at (0,-5) width 8: "\x{2309}" 198 RenderMathMLOperator {mo} at (115,0) size 8x9 2198 RenderMathMLOperator {mo} at (115,0) size 8x93 199 199 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 200 200 RenderBlock (anonymous) at (0,0) size 8x16 201 201 RenderText at (0,-5) size 8x24 202 202 text run at (0,-5) width 8: "\x{230A}" 203 RenderMathMLOperator {mo} at (129,0) size 9x9 2203 RenderMathMLOperator {mo} at (129,0) size 9x93 204 204 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 205 205 RenderBlock (anonymous) at (0,0) size 8x16 206 206 RenderText at (0,-5) size 8x24 207 207 text run at (0,-5) width 8: "\x{230B}" 208 RenderMathMLOperator {mo} at (143,0) size 12x9 2208 RenderMathMLOperator {mo} at (143,0) size 12x93 209 209 RenderMathMLBlock (flex) {mo} at (0,0) size 11x20 210 210 RenderBlock (anonymous) at (0,0) size 7x20 211 211 RenderText at (0,-3) size 7x24 212 212 text run at (0,-3) width 7: "\x{222B}" 213 RenderMathMLOperator {mo} at (161,0) size 4x9 2213 RenderMathMLOperator {mo} at (161,0) size 4x93 214 214 RenderMathMLBlock (flex) {mo} at (0,0) size 3x12 215 215 RenderBlock (anonymous) at (0,0) size 3x12 … … 227 227 text run at (0,-5) width 8: "\x{2225}" 228 228 RenderMathMLSpace {mspace} at (196,0) size 1x51 229 RenderText {#text} at (400,8 1) size 5x18230 text run at (400,8 1) width 5: " "231 RenderMathMLMath {math} at (404,7 5) size 199x32[padding: 0 1 0 1]232 RenderMathMLRow {mrow} at (1,0) size 197x3 2233 RenderMathMLOperator {mo} at (1, 9) size 8x14229 RenderText {#text} at (400,85) size 5x18 230 text run at (400,85) width 5: " " 231 RenderMathMLMath {math} at (404,79) size 199x33 [padding: 0 1 0 1] 232 RenderMathMLRow {mrow} at (1,0) size 197x33 233 RenderMathMLOperator {mo} at (1,0) size 8x33 234 234 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 235 235 RenderBlock (anonymous) at (0,0) size 5x14 236 236 RenderText at (0,-6) size 5x24 237 237 text run at (0,-6) width 5: "(" 238 RenderMathMLOperator {mo} at (13, 9) size 8x14238 RenderMathMLOperator {mo} at (13,0) size 8x33 239 239 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 240 240 RenderBlock (anonymous) at (0,0) size 5x14 … … 251 251 RenderText at (0,-6) size 8x24 252 252 text run at (0,-6) width 8: "}" 253 RenderMathMLOperator {mo} at (59, 9) size 8x14253 RenderMathMLOperator {mo} at (59,0) size 8x33 254 254 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 255 255 RenderBlock (anonymous) at (0,0) size 5x14 256 256 RenderText at (0,-6) size 5x24 257 257 text run at (0,-6) width 5: "[" 258 RenderMathMLOperator {mo} at (72, 9) size 8x14258 RenderMathMLOperator {mo} at (72,0) size 8x33 259 259 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 260 260 RenderBlock (anonymous) at (0,0) size 5x14 261 261 RenderText at (0,-6) size 5x24 262 262 text run at (0,-6) width 5: "]" 263 RenderMathMLOperator {mo} at (86, 8) size 9x16263 RenderMathMLOperator {mo} at (86,0) size 9x33 264 264 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 265 265 RenderBlock (anonymous) at (0,0) size 8x16 266 266 RenderText at (0,-5) size 8x24 267 267 text run at (0,-5) width 8: "\x{2308}" 268 RenderMathMLOperator {mo} at (100, 8) size 9x16268 RenderMathMLOperator {mo} at (100,0) size 9x33 269 269 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 270 270 RenderBlock (anonymous) at (0,0) size 8x16 271 271 RenderText at (0,-5) size 8x24 272 272 text run at (0,-5) width 8: "\x{2309}" 273 RenderMathMLOperator {mo} at (115, 8) size 8x16273 RenderMathMLOperator {mo} at (115,0) size 8x33 274 274 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 275 275 RenderBlock (anonymous) at (0,0) size 8x16 276 276 RenderText at (0,-5) size 8x24 277 277 text run at (0,-5) width 8: "\x{230A}" 278 RenderMathMLOperator {mo} at (129, 8) size 9x16278 RenderMathMLOperator {mo} at (129,0) size 9x33 279 279 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 280 280 RenderBlock (anonymous) at (0,0) size 8x16 … … 286 286 RenderText at (0,-3) size 7x24 287 287 text run at (0,-3) width 7: "\x{222B}" 288 RenderMathMLOperator {mo} at (161,0) size 4x3 2288 RenderMathMLOperator {mo} at (161,0) size 4x33 289 289 RenderMathMLBlock (flex) {mo} at (0,0) size 3x12 290 290 RenderBlock (anonymous) at (0,0) size 3x12 … … 302 302 text run at (0,-5) width 8: "\x{2225}" 303 303 RenderMathMLSpace {mspace} at (196,0) size 1x21 304 RenderText {#text} at (602,8 1) size 5x18305 text run at (602,8 1) width 5: " "304 RenderText {#text} at (602,85) size 5x18 305 text run at (602,85) width 5: " " 306 306 RenderBR {BR} at (0,0) size 0x0 307 RenderMathMLMath {math} at (0,16 2) size 211x78[padding: 0 1 0 1]308 RenderMathMLSquareRoot {msqrt} at (1,0) size 209x7 8[intrinsic padding: 3 0 3 12]309 RenderMathMLRow (anonymous) at (12,3) size 197x7 2310 RenderMathMLOperator {mo} at (1,0) size 8x7 2307 RenderMathMLMath {math} at (0,166) size 211x79 [padding: 0 1 0 1] 308 RenderMathMLSquareRoot {msqrt} at (1,0) size 209x79 [intrinsic padding: 3 0 3 12] 309 RenderMathMLRow (anonymous) at (12,3) size 197x73 310 RenderMathMLOperator {mo} at (1,0) size 8x73 311 311 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 312 312 RenderBlock (anonymous) at (0,0) size 5x14 313 313 RenderText at (0,-6) size 5x24 314 314 text run at (0,-6) width 5: "(" 315 RenderMathMLOperator {mo} at (13,0) size 8x7 2315 RenderMathMLOperator {mo} at (13,0) size 8x73 316 316 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 317 317 RenderBlock (anonymous) at (0,0) size 5x14 318 318 RenderText at (0,-6) size 5x24 319 319 text run at (0,-6) width 5: ")" 320 RenderMathMLOperator {mo} at (26,0) size 11x7 2320 RenderMathMLOperator {mo} at (26,0) size 11x73 321 321 RenderMathMLBlock (flex) {mo} at (0,0) size 10x14 322 322 RenderBlock (anonymous) at (0,0) size 8x14 323 323 RenderText at (0,-6) size 8x24 324 324 text run at (0,-6) width 8: "{" 325 RenderMathMLOperator {mo} at (43,0) size 11x7 2325 RenderMathMLOperator {mo} at (43,0) size 11x73 326 326 RenderMathMLBlock (flex) {mo} at (0,0) size 10x14 327 327 RenderBlock (anonymous) at (0,0) size 8x14 328 328 RenderText at (0,-6) size 8x24 329 329 text run at (0,-6) width 8: "}" 330 RenderMathMLOperator {mo} at (59,0) size 8x7 2330 RenderMathMLOperator {mo} at (59,0) size 8x73 331 331 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 332 332 RenderBlock (anonymous) at (0,0) size 5x14 333 333 RenderText at (0,-6) size 5x24 334 334 text run at (0,-6) width 5: "[" 335 RenderMathMLOperator {mo} at (72,0) size 8x7 2335 RenderMathMLOperator {mo} at (72,0) size 8x73 336 336 RenderMathMLBlock (flex) {mo} at (0,0) size 7x14 337 337 RenderBlock (anonymous) at (0,0) size 5x14 338 338 RenderText at (0,-6) size 5x24 339 339 text run at (0,-6) width 5: "]" 340 RenderMathMLOperator {mo} at (86,0) size 9x7 2340 RenderMathMLOperator {mo} at (86,0) size 9x73 341 341 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 342 342 RenderBlock (anonymous) at (0,0) size 8x16 343 343 RenderText at (0,-5) size 8x24 344 344 text run at (0,-5) width 8: "\x{2308}" 345 RenderMathMLOperator {mo} at (100,0) size 9x7 2345 RenderMathMLOperator {mo} at (100,0) size 9x73 346 346 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 347 347 RenderBlock (anonymous) at (0,0) size 8x16 348 348 RenderText at (0,-5) size 8x24 349 349 text run at (0,-5) width 8: "\x{2309}" 350 RenderMathMLOperator {mo} at (115,0) size 8x7 2350 RenderMathMLOperator {mo} at (115,0) size 8x73 351 351 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 352 352 RenderBlock (anonymous) at (0,0) size 8x16 353 353 RenderText at (0,-5) size 8x24 354 354 text run at (0,-5) width 8: "\x{230A}" 355 RenderMathMLOperator {mo} at (129,0) size 9x7 2355 RenderMathMLOperator {mo} at (129,0) size 9x73 356 356 RenderMathMLBlock (flex) {mo} at (0,0) size 8x16 357 357 RenderBlock (anonymous) at (0,0) size 8x16 358 358 RenderText at (0,-5) size 8x24 359 359 text run at (0,-5) width 8: "\x{230B}" 360 RenderMathMLOperator {mo} at (143,0) size 12x7 2360 RenderMathMLOperator {mo} at (143,0) size 12x73 361 361 RenderMathMLBlock (flex) {mo} at (0,0) size 11x20 362 362 RenderBlock (anonymous) at (0,0) size 7x20 363 363 RenderText at (0,-3) size 7x24 364 364 text run at (0,-3) width 7: "\x{222B}" 365 RenderMathMLOperator {mo} at (161,0) size 4x7 2365 RenderMathMLOperator {mo} at (161,0) size 4x73 366 366 RenderMathMLBlock (flex) {mo} at (0,0) size 3x12 367 367 RenderBlock (anonymous) at (0,0) size 3x12 -
trunk/Source/WebCore/ChangeLog
r164699 r164700 1 2014-02-25 Frédéric Wang <fred.wang@free.fr> 2 3 Add support for minsize/maxsize attributes. 4 https://bugs.webkit.org/show_bug.cgi?id=122567 5 6 Reviewed by Chris Fleizach. 7 8 This change implements the minsize/maxsize attributes of the mo element. 9 We also switch stretch sizes from int to LayoutUnit to improve accuracy. 10 11 Tests: mathml/presentation/stretchy-minsize-maxsize-dynamic.html 12 mathml/presentation/stretchy-minsize-maxsize.html 13 14 * rendering/mathml/RenderMathMLOperator.cpp: 15 (WebCore::RenderMathMLOperator::SetOperatorProperties): 16 (WebCore::RenderMathMLOperator::stretchTo): 17 * rendering/mathml/RenderMathMLOperator.h: 18 * rendering/mathml/RenderMathMLRow.cpp: 19 (WebCore::RenderMathMLRow::layout): 20 1 21 2014-02-25 Mihnea Ovidenie <mihnea@adobe.com> 2 22 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp
r164537 r164700 1240 1240 parseMathMLLength(element().fastGetAttribute(MathMLNames::rspaceAttr), m_trailingSpace, &style(), false); // FIXME: Negative trailing space must be implemented (https://bugs.webkit.org/show_bug.cgi?id=124830). 1241 1241 1242 // FIXME: Attributes minsize/maxsize are not implemented (https://bugs.webkit.org/show_bug.cgi?id=122567).1243 1242 parseMathMLLength(element().fastGetAttribute(MathMLNames::minsizeAttr), m_minSize, &style(), false); 1244 1243 const AtomicString& maxsize = element().fastGetAttribute(MathMLNames::maxsizeAttr); … … 1253 1252 } 1254 1253 1255 void RenderMathMLOperator::stretchTo( int heightAboveBaseline, int depthBelowBaseline)1256 { 1257 if (heightAboveBaseline <= m_stretchHeightAboveBaseline && depthBelowBaseline <= m_stretchDepthBelowBaseline)1254 void RenderMathMLOperator::stretchTo(LayoutUnit heightAboveBaseline, LayoutUnit depthBelowBaseline) 1255 { 1256 if (heightAboveBaseline == m_stretchHeightAboveBaseline && depthBelowBaseline == m_stretchDepthBelowBaseline) 1258 1257 return; 1259 1258 … … 1265 1264 // We make the operator stretch symmetrically above and below the axis. 1266 1265 // FIXME: We should read the axis from the MATH table (https://bugs.webkit.org/show_bug.cgi?id=122297). For now, we use the same value as in RenderMathMLFraction::firstLineBaseline(). 1267 int axis = static_cast<int>(lroundf(style().fontMetrics().xHeight() / 2));1268 int halfStretchSize = std::max(m_stretchHeightAboveBaseline - axis, m_stretchDepthBelowBaseline + axis);1266 LayoutUnit axis = style().fontMetrics().xHeight() / 2; 1267 LayoutUnit halfStretchSize = std::max(m_stretchHeightAboveBaseline - axis, m_stretchDepthBelowBaseline + axis); 1269 1268 m_stretchHeightAboveBaseline = halfStretchSize + axis; 1270 1269 m_stretchDepthBelowBaseline = halfStretchSize - axis; 1271 1270 } 1271 // We try to honor the minsize/maxsize condition by increasing or decreasing both height and depth proportionately. 1272 // The MathML specification does not indicate what to do when maxsize < minsize, so we follow Gecko and make minsize take precedence. 1273 LayoutUnit size = stretchSize(); 1274 float aspect = 1.0; 1275 if (size > 0) { 1276 if (size < m_minSize) 1277 aspect = float(m_minSize) / size; 1278 else if (m_maxSize < size) 1279 aspect = float(m_maxSize) / size; 1280 } 1281 m_stretchHeightAboveBaseline *= aspect; 1282 m_stretchDepthBelowBaseline *= aspect; 1272 1283 updateStyle(); 1273 1284 } -
trunk/Source/WebCore/rendering/mathml/RenderMathMLOperator.h
r164536 r164700 45 45 Separator = 0x10, // This has no visual effect but allows to expose semantic information via the accessibility tree. 46 46 Stretchy = 0x20, 47 Symmetric = 0x40 , // FIXME: This is not implemented yet (https://bugs.webkit.org/show_bug.cgi?id=124827).47 Symmetric = 0x40 48 48 }; 49 49 struct Entry { … … 65 65 MathMLElement& element() { return toMathMLElement(nodeForNonAnonymous()); } 66 66 67 void stretchTo( int heightAboveBaseline, int depthBelowBaseline);68 int stretchSize() const { return m_stretchHeightAboveBaseline + m_stretchDepthBelowBaseline; }67 void stretchTo(LayoutUnit heightAboveBaseline, LayoutUnit depthBelowBaseline); 68 LayoutUnit stretchSize() const { return m_stretchHeightAboveBaseline + m_stretchDepthBelowBaseline; } 69 69 70 70 bool hasOperatorFlag(MathMLOperatorDictionary::Flag flag) const { return m_operatorFlags & flag; } … … 111 111 void fillWithExtensionGlyph(PaintInfo&, const LayoutPoint& from, const LayoutPoint& to); 112 112 113 int m_stretchHeightAboveBaseline;114 int m_stretchDepthBelowBaseline;113 LayoutUnit m_stretchHeightAboveBaseline; 114 LayoutUnit m_stretchDepthBelowBaseline; 115 115 bool m_isStretched; 116 116 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRow.cpp
r164538 r164700 68 68 continue; 69 69 } 70 int childHeightAboveBaseline = 0, childDepthBelowBaseline = 0;70 LayoutUnit childHeightAboveBaseline = 0, childDepthBelowBaseline = 0; 71 71 if (child->isRenderMathMLBlock()) { 72 72 RenderMathMLBlock* mathmlChild = toRenderMathMLBlock(child); … … 83 83 childDepthBelowBaseline = 0; 84 84 } 85 stretchHeightAboveBaseline = std::max< int>(stretchHeightAboveBaseline, roundToInt(childHeightAboveBaseline));86 stretchDepthBelowBaseline = std::max< int>(stretchDepthBelowBaseline, roundToInt(childDepthBelowBaseline));85 stretchHeightAboveBaseline = std::max<LayoutUnit>(stretchHeightAboveBaseline, childHeightAboveBaseline); 86 stretchDepthBelowBaseline = std::max<LayoutUnit>(stretchDepthBelowBaseline, childDepthBelowBaseline); 87 87 } 88 88 if (stretchHeightAboveBaseline + stretchDepthBelowBaseline <= 0)
Note: See TracChangeset
for help on using the changeset viewer.