mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Don't draw zero-length line for text-decoration: blink
This patch doesn't make any visible change but increases the correctness of the text-decoration: blink path. Previously the painter would be instructed to draw a line that doesn't have any length when encountering the blink property instead of simply doing nothing.
This commit is contained in:
parent
ea2abb3200
commit
1fce8aefd9
Notes:
sideshowbarker
2024-07-18 07:37:27 +09:00
Author: https://github.com/TobyAsE
Commit: 1fce8aefd9
Pull-request: https://github.com/SerenityOS/serenity/pull/9151
Issue: https://github.com/SerenityOS/serenity/issues/9141
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/sin-ack
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ void TextNode::paint_text_decoration(Gfx::Painter& painter, LineBoxFragment cons
|
|||
} break;
|
||||
case CSS::TextDecorationLine::Blink:
|
||||
// Conforming user agents may simply not blink the text
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue