summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-03-15 12:35:00 +0000
committerAndreas Kling <kling@serenityos.org>2023-03-15 14:55:49 +0100
commit6d8f046fd047bca5f476cb48ec42fa9ce4e1d11f (patch)
treeaecd9525c26b5ee79cea0253725b6a395874d3a9 /Userland/Libraries/LibWeb/HTML/SyntaxHighlighter
parent609b6160851109ad881a733e9d9e2e7851553f2a (diff)
downloadserenity-6d8f046fd047bca5f476cb48ec42fa9ce4e1d11f.zip
LibGfx+Userland: Make TextAttributes::underline_style optional
Rather than having a style AND a field saying whether to use the style, just make the style Optional.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/SyntaxHighlighter')
-rw-r--r--Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp b/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp
index 7b94272def..782750ff46 100644
--- a/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp
+++ b/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp
@@ -153,7 +153,7 @@ void SyntaxHighlighter::rehighlight(Palette const& palette)
token->start_position().column + token_start_offset,
token->start_position().line,
token->start_position().column + token_start_offset + token->tag_name().length(),
- { palette.syntax_keyword(), {}, false, true },
+ { palette.syntax_keyword(), {}, true },
token->is_start_tag() ? AugmentedTokenKind::OpenTag : AugmentedTokenKind::CloseTag);
token->for_each_attribute([&](auto& attribute) {