diff options
author | Shannon Booth <shannon.ml.booth@gmail.com> | 2023-05-28 15:04:40 +1200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-28 13:24:37 +0200 |
commit | bc54560e5942c9ff4b9049c034ad09a9f8446fb6 (patch) | |
tree | 8b50af34571d9f9fd132051285557efff1a7efdd /Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h | |
parent | 15151d7a4c7c9138f960a8687224a52ff3722931 (diff) | |
download | serenity-bc54560e5942c9ff4b9049c034ad09a9f8446fb6.zip |
LibWeb: Add Web::HTML::parse_legacy_color_value
This function follows the "rules for parsing a legacy color value"
which is used in some legacy attributes, such as 'bgcolor' in the body
element.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h index cb0257e755..9d7d83d95d 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.h @@ -6,6 +6,7 @@ #pragma once +#include <LibGfx/Color.h> #include <LibJS/Heap/Cell.h> #include <LibWeb/DOM/Node.h> #include <LibWeb/HTML/Parser/HTMLTokenizer.h> @@ -200,5 +201,6 @@ private: RefPtr<CSS::StyleValue> parse_dimension_value(StringView); RefPtr<CSS::StyleValue> parse_nonzero_dimension_value(StringView); +Optional<Color> parse_legacy_color_value(DeprecatedString input); } |