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] Add support for decorating box based text box painting (ho…
…rizontal mode only) https://bugs.webkit.org/show_bug.cgi?id=243766 Reviewed by Antti Koivisto. Collect decorating ancestor inline boxes use their style/geometry to call TextDecorationPainter::paintBackgroundDecorations(). (The fuzzy change is due to multiple underlines getting painted directly on top of each other on subpixel positions between glyphs with descenders (coming from vertically overlapping decorating boxes e.g. <div style="text-decoration: underline"><font>ggg</font></div>) * Source/WebCore/rendering/TextBoxPainter.cpp: (WebCore::TextBoxPainter<TextBoxPath>::TextBoxPainter): (WebCore::TextBoxPainter<TextBoxPath>::paintForegroundAndDecorations): (WebCore::computedTextDecorationType): (WebCore::TextBoxPainter<TextBoxPath>::collectDecoratingBoxesForTextBox): (WebCore::TextBoxPainter<TextBoxPath>::paintBackgroundDecorations): (WebCore::TextBoxPainter<TextBoxPath>::paintForegroundDecorations): * Source/WebCore/rendering/TextBoxPainter.h: * Source/WebCore/rendering/TextDecorationPainter.cpp: (WebCore::TextDecorationPainter::paintBackgroundDecorations): * Source/WebCore/style/InlineTextBoxStyle.cpp: (WebCore::boxOffsetFromBottomMost): (WebCore::textRunOffsetFromBottomMost): (WebCore::underlineOffsetForTextBoxPainting): * Source/WebCore/style/InlineTextBoxStyle.h: Canonical link: https://commits.webkit.org/253406@main
- Loading branch information
1 parent
165f03c
commit 519c36a6ca3c9d4a19cf296afb10185ec0943987
Showing
9 changed files
with
139 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<!DOCTYPE html> | ||
<meta name="fuzzy" content="maxDifference=59-64; totalPixels=5-10" /> | ||
<html> | ||
<head> | ||
<style> | ||
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
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
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