mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Remove unneccessary breaks from text-decoration-rendering
The returns in the switch-block don't need any breaks after them.
This commit is contained in:
parent
1fce8aefd9
commit
f599f2be3d
Notes:
sideshowbarker
2024-07-18 07:37:23 +09:00
Author: https://github.com/TobyAsE
Commit: f599f2be3d
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 0 additions and 2 deletions
|
@ -48,7 +48,6 @@ void TextNode::paint_text_decoration(Gfx::Painter& painter, LineBoxFragment cons
|
|||
switch (computed_values().text_decoration_line()) {
|
||||
case CSS::TextDecorationLine::None:
|
||||
return;
|
||||
break;
|
||||
case CSS::TextDecorationLine::Underline:
|
||||
line_start_point = fragment_box.top_left().translated(0, baseline + 2);
|
||||
line_end_point = fragment_box.top_right().translated(0, baseline + 2);
|
||||
|
@ -66,7 +65,6 @@ void TextNode::paint_text_decoration(Gfx::Painter& painter, LineBoxFragment cons
|
|||
case CSS::TextDecorationLine::Blink:
|
||||
// Conforming user agents may simply not blink the text
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
painter.draw_line(line_start_point, line_end_point, computed_values().color());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue