diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-03-15 12:35:00 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-15 14:55:49 +0100 |
commit | 6d8f046fd047bca5f476cb48ec42fa9ce4e1d11f (patch) | |
tree | aecd9525c26b5ee79cea0253725b6a395874d3a9 /Userland/Libraries/LibWeb/HTML/SyntaxHighlighter | |
parent | 609b6160851109ad881a733e9d9e2e7851553f2a (diff) | |
download | serenity-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.cpp | 2 |
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) { |