summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorTobias Christiansen <tobi@tobyase.de>2021-08-01 13:21:00 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-02 00:34:44 +0200
commit1fce8aefd9873ba67c58440174bc7a9eccc006d8 (patch)
tree3f87c08018dee03f041fa7077b2cb39ae298e312 /Userland/Libraries/LibWeb
parentea2abb3200e455f6dcad045f045e4b168c3bcf0f (diff)
downloadserenity-1fce8aefd9873ba67c58440174bc7a9eccc006d8.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/Layout/TextNode.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/TextNode.cpp b/Userland/Libraries/LibWeb/Layout/TextNode.cpp
index 48aaaa767c..42235de69a 100644
--- a/Userland/Libraries/LibWeb/Layout/TextNode.cpp
+++ b/Userland/Libraries/LibWeb/Layout/TextNode.cpp
@@ -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;
}