summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Parser/Token.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-11 16:31:54 +0000
committerLinus Groh <mail@linusgroh.de>2023-02-13 14:35:40 +0000
commit2368e6c5f2c6c02f64bb32b16f228c8edb1da4f4 (patch)
treec41be9c4385287c090c125dfb3d2fb3ecb255fc8 /Userland/Libraries/LibWeb/CSS/Parser/Token.h
parent7fc72d383855d4252bddfdf9feaf5bb19261b1dd (diff)
downloadserenity-2368e6c5f2c6c02f64bb32b16f228c8edb1da4f4.zip
LibWeb: Convert CSS Token/ComponentValue::to_debug_string() to String
These are only used for debugging, so I've decided that logging the ErrorOr<String> itself is fine instead of trying to handle that error more gracefully in those cases. If you're getting OOM trying to debug log things, you have bigger problems.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Parser/Token.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Token.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Token.h b/Userland/Libraries/LibWeb/CSS/Parser/Token.h
index ee6b842588..afcd4149b8 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Token.h
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Token.h
@@ -146,7 +146,7 @@ public:
StringView bracket_mirror_string() const;
DeprecatedString to_deprecated_string() const;
- DeprecatedString to_debug_string() const;
+ ErrorOr<String> to_debug_string() const;
Position const& start_position() const { return m_start_position; }
Position const& end_position() const { return m_end_position; }