Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Painting] Underline thickness should be aligned with device pixels
https://bugs.webkit.org/show_bug.cgi?id=243611 Reviewed by Antti Koivisto. Ceil the underline thickness to the nearest device pixel. It ensures that we always paint at least a hairline thick underline when applicable (i.e. 0.1px -> 0.5px on a 2x display). * Source/WebCore/rendering/TextDecorationPainter.cpp: (WebCore::TextDecorationPainter::paintBackgroundDecorations): (WebCore::TextDecorationPainter::paintForegroundDecorations): (WebCore::TextDecorationPainter::paintLineThrough): * Source/WebCore/rendering/TextDecorationPainter.h: Canonical link: https://commits.webkit.org/253182@main
- Loading branch information
Showing
3 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters