From 1fce8aefd9873ba67c58440174bc7a9eccc006d8 Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Sun, 1 Aug 2021 13:21:00 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/Layout/TextNode.cpp | 1 + 1 file changed, 1 insertion(+) 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; }