Commit a787642
Fix MathML fraction bar not painted when thickness equals width
https://bugs.webkit.org/show_bug.cgi?id=308440
rdar://170934351
Reviewed by Frédéric Wang.
GraphicsContext::drawLine() misidentifies horizontal lines as
vertical when stroke thickness equals the distance between
endpoints. This causes the fraction bar to not render when
FractionRuleThickness produces a thickness equal to the bar
width.
Replace drawLine() with fillRect() to draw the fraction bar
as an explicit rectangle, avoiding the heuristic entirely.
* LayoutTests/TestExpectations: Progressions
* Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp:
(WebCore::RenderMathMLFraction::paint):
Canonical link: https://commits.webkit.org/308025@main1 parent 16bd64e commit a787642
File tree
2 files changed
+8
-10
lines changed- LayoutTests
- Source/WebCore/rendering/mathml
2 files changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
1998 | | - | |
1999 | 1998 | | |
2000 | | - | |
2001 | | - | |
2002 | 1999 | | |
2003 | 2000 | | |
2004 | 2001 | | |
| |||
2051 | 2048 | | |
2052 | 2049 | | |
2053 | 2050 | | |
2054 | | - | |
2055 | 2051 | | |
2056 | 2052 | | |
2057 | 2053 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
297 | 302 | | |
298 | 303 | | |
299 | 304 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | 305 | | |
304 | | - | |
305 | | - | |
| 306 | + | |
| 307 | + | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
| |||
0 commit comments