Changeset 249272 in webkit
- Timestamp:
- Aug 29, 2019, 7:54:54 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/mathml/presentation/foreign-element-in-token-expected.txt (modified) (8 diffs)
-
LayoutTests/mathml/presentation/foreign-element-in-token.html (modified) (9 diffs)
-
LayoutTests/platform/ios-wk2/mathml/presentation/foreign-element-in-token-expected.txt (modified) (8 diffs)
-
LayoutTests/platform/mac-wk2/mathml/presentation/foreign-element-in-token-expected.txt (modified) (8 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/mathml/MathMLOperatorDictionary.h (modified) (1 diff)
-
Source/WebCore/mathml/MathMLPresentationElement.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r249237 r249272 1 2019-08-29 Rob Buis <rbuis@igalia.com> 2 3 Address some MathML FIXMEs 4 https://bugs.webkit.org/show_bug.cgi?id=201293 5 6 Reviewed by Frédéric Wang. 7 8 Also test newly exposed data and time elements. 9 10 * mathml/presentation/foreign-element-in-token-expected.txt: 11 * mathml/presentation/foreign-element-in-token.html: 12 * platform/ios-wk2/mathml/presentation/foreign-element-in-token-expected.txt: 13 * platform/mac-wk2/mathml/presentation/foreign-element-in-token-expected.txt: 14 1 15 2019-08-28 Ryosuke Niwa <rniwa@webkit.org> 2 16 -
trunk/LayoutTests/mathml/presentation/foreign-element-in-token-expected.txt
r202572 r249272 28 28 mi 29 29 30 data: 31 mi 32 30 33 del: 31 34 mi … … 103 106 mi 104 107 108 time: 109 mi 110 105 111 u: 106 112 mi … … 136 142 mn 137 143 144 data: 145 mn 146 138 147 del: 139 148 mn … … 211 220 mn 212 221 222 time: 223 mn 224 213 225 u: 214 226 mn … … 244 256 mtext 245 257 258 data: 259 mtext 260 246 261 del: 247 262 mtext … … 319 334 mtext 320 335 336 time: 337 mtext 338 321 339 u: 322 340 mtext … … 352 370 mo 353 371 372 data: 373 mo 374 354 375 del: 355 376 mo … … 427 448 mo 428 449 450 time: 451 mo 452 429 453 u: 430 454 mo -
trunk/LayoutTests/mathml/presentation/foreign-element-in-token.html
r202572 r249272 12 12 <p>Foreign phrasing content should create renderers:</p> 13 13 14 <!-- The following elements are not covered by this test: wbr, audio, data,15 time,canvas, iframe, map, video, textarea, meter, noscript, progress,14 <!-- The following elements are not covered by this test: wbr, audio, 15 canvas, iframe, map, video, textarea, meter, noscript, progress, 16 16 script, select, template, br, area. --> 17 17 … … 25 25 <p>code: <math><mi><code>mi</code></mi></math></p> 26 26 <p>datalist: <math><mi><datalist>mi</datalist></mi></math></p> 27 <p>data: <math><mi><data>mi</data></mi></math></p> 27 28 <p>del: <math><mi><del>mi</del></mi></math></p> 28 29 <p>dfn: <math><mi><dfn>mi</dfn></mi></math></p> … … 50 51 <p>sup: <math><mi><sup>mi</sup></mi></math></p> 51 52 <p>svg: <math><mi><svg><text>mi</text></svg></mi></math></p> 53 <p>time: <math><mi><time>mi</time></mi></math></p> 52 54 <p>u: <math><mi><u>mi</u></mi></math></p> 53 55 <p>var: <math><mi><var>mi</var></mi></math></p> … … 62 64 <p>code: <math><mn><code>mn</code></mn></math></p> 63 65 <p>datalist: <math><mn><datalist>mn</datalist></mn></math></p> 66 <p>data: <math><mn><data>mn</data></mn></math></p> 64 67 <p>del: <math><mn><del>mn</del></mn></math></p> 65 68 <p>dfn: <math><mn><dfn>mn</dfn></mn></math></p> … … 87 90 <p>sup: <math><mn><sup>mn</sup></mn></math></p> 88 91 <p>svg: <math><mn><svg><text>mn</text></svg></mn></math></p> 92 <p>time: <math><mn><time>mn</time></mn></math></p> 89 93 <p>u: <math><mn><u>mn</u></mn></math></p> 90 94 <p>var: <math><mn><var>mn</var></mn></math></p> … … 99 103 <p>code: <math><mtext><code>mtext</code></mtext></math></p> 100 104 <p>datalist: <math><mtext><datalist>mtext</datalist></mtext></math></p> 105 <p>data: <math><mtext><data>mtext</data></mtext></math></p> 101 106 <p>del: <math><mtext><del>mtext</del></mtext></math></p> 102 107 <p>dfn: <math><mtext><dfn>mtext</dfn></mtext></math></p> … … 124 129 <p>sup: <math><mtext><sup>mtext</sup></mtext></math></p> 125 130 <p>svg: <math><mtext><svg><text>mtext</text></svg></mtext></math></p> 131 <p>time: <math><mtext><time>mtext</time></mtext></math></p> 126 132 <p>u: <math><mtext><u>mtext</u></mtext></math></p> 127 133 <p>var: <math><mtext><var>mtext</var></mtext></math></p> … … 136 142 <p>code: <math><mo><code>mo</code></mo></math></p> 137 143 <p>datalist: <math><mo><datalist>mo</datalist></mo></math></p> 144 <p>data: <math><mo><data>mo</data></mo></math></p> 138 145 <p>del: <math><mo><del>mo</del></mo></math></p> 139 146 <p>dfn: <math><mo><dfn>mo</dfn></mo></math></p> … … 161 168 <p>sup: <math><mo><sup>mo</sup></mo></math></p> 162 169 <p>svg: <math><mo><svg><text>mo</text></svg></mo></math></p> 170 <p>time: <math><mo><time>mo</time></mo></math></p> 163 171 <p>u: <math><mo><u>mo</u></mo></math></p> 164 172 <p>var: <math><mo><var>mo</var></mo></math></p> -
trunk/LayoutTests/platform/ios-wk2/mathml/presentation/foreign-element-in-token-expected.txt
r237245 r249272 27 27 datalist: 28 28 29 data: 30 mi 31 29 32 del: 30 33 mi … … 102 105 mi 103 106 107 time: 108 mi 109 104 110 u: 105 111 mi … … 134 140 datalist: 135 141 142 data: 143 mn 144 136 145 del: 137 146 mn … … 209 218 mn 210 219 220 time: 221 mn 222 211 223 u: 212 224 mn … … 241 253 datalist: 242 254 255 data: 256 mtext 257 243 258 del: 244 259 mtext … … 316 331 mtext 317 332 333 time: 334 mtext 335 318 336 u: 319 337 mtext … … 348 366 datalist: 349 367 368 data: 369 mo 370 350 371 del: 351 372 mo … … 423 444 mo 424 445 446 time: 447 mo 448 425 449 u: 426 450 mo -
trunk/LayoutTests/platform/mac-wk2/mathml/presentation/foreign-element-in-token-expected.txt
r237245 r249272 27 27 datalist: 28 28 29 data: 30 mi 31 29 32 del: 30 33 mi … … 102 105 mi 103 106 107 time: 108 mi 109 104 110 u: 105 111 mi … … 134 140 datalist: 135 141 142 data: 143 mn 144 136 145 del: 137 146 mn … … 209 218 mn 210 219 220 time: 221 mn 222 211 223 u: 212 224 mn … … 241 253 datalist: 242 254 255 data: 256 mtext 257 243 258 del: 244 259 mtext … … 316 331 mtext 317 332 333 time: 334 mtext 335 318 336 u: 319 337 mtext … … 348 366 datalist: 349 367 368 data: 369 mo 370 350 371 del: 351 372 mo … … 423 444 mo 424 445 446 time: 447 mo 448 425 449 u: 426 450 mo -
trunk/Source/WebCore/ChangeLog
r249254 r249272 1 2019-08-29 Rob Buis <rbuis@igalia.com> 2 3 Address some MathML FIXMEs 4 https://bugs.webkit.org/show_bug.cgi?id=201293 5 6 Reviewed by Frédéric Wang. 7 8 Add element tag checks for data, time and dialog. 9 10 * mathml/MathMLOperatorDictionary.h: 11 * mathml/MathMLPresentationElement.cpp: 12 (WebCore::MathMLPresentationElement::isPhrasingContent): 13 (WebCore::MathMLPresentationElement::isFlowContent): 14 1 15 2019-08-29 Zan Dobersek <zdobersek@igalia.com> 2 16 -
trunk/Source/WebCore/mathml/MathMLOperatorDictionary.h
r242776 r249272 36 36 enum Form { Infix, Prefix, Postfix }; 37 37 enum Flag { 38 Accent = 0x1, // FIXME: This must be used to implement accentunder/accent on munderover (https://bugs.webkit.org/show_bug.cgi?id=124826).38 Accent = 0x1, 39 39 Fence = 0x2, // This has no visual effect but allows to expose semantic information via the accessibility tree. 40 40 LargeOp = 0x4, -
trunk/Source/WebCore/mathml/MathMLPresentationElement.cpp
r246490 r249272 87 87 88 88 if (is<HTMLElement>(node)) { 89 // FIXME: add the <data> and <time> tags when they are implemented.90 89 auto& htmlElement = downcast<HTMLElement>(node); 91 90 return htmlElement.hasTagName(HTMLNames::aTag) … … 102 101 || htmlElement.hasTagName(HTMLNames::codeTag) 103 102 || htmlElement.hasTagName(HTMLNames::datalistTag) 103 || htmlElement.hasTagName(HTMLNames::dataTag) 104 104 || htmlElement.hasTagName(HTMLNames::delTag) 105 105 || htmlElement.hasTagName(HTMLNames::dfnTag) … … 134 134 || htmlElement.hasTagName(HTMLNames::templateTag) 135 135 || htmlElement.hasTagName(HTMLNames::textareaTag) 136 || htmlElement.hasTagName(HTMLNames::timeTag) 136 137 || htmlElement.hasTagName(HTMLNames::uTag) 137 138 || htmlElement.hasTagName(HTMLNames::varTag) … … 155 156 156 157 auto& htmlElement = downcast<HTMLElement>(node); 157 // FIXME add the <dialog> tag when it is implemented.158 158 return htmlElement.hasTagName(HTMLNames::addressTag) 159 159 || htmlElement.hasTagName(HTMLNames::articleTag) … … 161 161 || htmlElement.hasTagName(HTMLNames::blockquoteTag) 162 162 || htmlElement.hasTagName(HTMLNames::detailsTag) 163 || htmlElement.hasTagName(HTMLNames::dialogTag) 163 164 || htmlElement.hasTagName(HTMLNames::divTag) 164 165 || htmlElement.hasTagName(HTMLNames::dlTag)
Note:
See TracChangeset
for help on using the changeset viewer.