summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorTobias Christiansen <tobi@tobyase.de>2021-08-01 17:34:41 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-02 00:34:44 +0200
commitf599f2be3d338af09aff7c64008fd8c93eac78dd (patch)
tree0a0b31367ef6ca6ae01b52215434e3c85b76d11b /Userland
parent1fce8aefd9873ba67c58440174bc7a9eccc006d8 (diff)
downloadserenity-f599f2be3d338af09aff7c64008fd8c93eac78dd.zip
LibWeb: Remove unneccessary breaks from text-decoration-rendering
The returns in the switch-block don't need any breaks after them.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/Layout/TextNode.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/TextNode.cpp b/Userland/Libraries/LibWeb/Layout/TextNode.cpp
index 42235de69a..4feab4823a 100644
--- a/Userland/Libraries/LibWeb/Layout/TextNode.cpp
+++ b/Userland/Libraries/LibWeb/Layout/TextNode.cpp
@@ -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());