Commit bd08842
committed
[text shaping] Overflowing glyph gets clipped
https://bugs.webkit.org/show_bug.cgi?id=299818
Reviewed by Antti Koivisto.
m_paintRect does not include ink overflow (e.g glyph overflow) so let's only clip
the content in inline direction (regular text paint does not clip at all).
Test: fast/text/clipped-glyph-across-inline-boxes.html
* LayoutTests/fast/text/clipped-glyph-across-inline-boxes-expected.html: Added.
* LayoutTests/fast/text/clipped-glyph-across-inline-boxes.html: Added.
* Source/WebCore/rendering/TextBoxPainter.cpp:
(WebCore::TextBoxPainter::paintForegroundForShapeRange):
Canonical link: https://commits.webkit.org/300823@main1 parent ce64d4a commit bd08842
File tree
3 files changed
+34
-2
lines changed- LayoutTests/fast/text
- Source/WebCore/rendering
3 files changed
+34
-2
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
666 | 678 | | |
667 | | - | |
668 | | - | |
| 679 | + | |
669 | 680 | | |
670 | 681 | | |
671 | 682 | | |
| |||
0 commit comments