mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb/CSS: Make CSS::URL formattable
This commit is contained in:
parent
efad6e96aa
commit
7a4854732a
Notes:
github-actions[bot]
2025-05-03 11:03:06 +00:00
Author: https://github.com/AtkinsSJ
Commit: 7a4854732a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4536
1 changed files with 8 additions and 0 deletions
|
@ -25,3 +25,11 @@ private:
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct AK::Formatter<Web::CSS::URL> : AK::Formatter<StringView> {
|
||||
ErrorOr<void> format(FormatBuilder& builder, Web::CSS::URL const& value)
|
||||
{
|
||||
return Formatter<StringView>::format(builder, value.to_string());
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue