mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 19:59:03 +00:00
LibWeb: Add Formatter for ComponentValues
This commit is contained in:
parent
fff2c35f51
commit
d2b8686ae4
Notes:
sideshowbarker
2024-07-17 11:52:56 +09:00
Author: https://github.com/AtkinsSJ
Commit: d2b8686ae4
Pull-request: https://github.com/SerenityOS/serenity/pull/13643
1 changed files with 8 additions and 0 deletions
|
@ -44,3 +44,11 @@ private:
|
|||
Variant<Token, NonnullRefPtr<StyleFunctionRule>, NonnullRefPtr<StyleBlockRule>> m_value;
|
||||
};
|
||||
}
|
||||
|
||||
template<>
|
||||
struct AK::Formatter<Web::CSS::Parser::ComponentValue> : Formatter<StringView> {
|
||||
ErrorOr<void> format(FormatBuilder& builder, Web::CSS::Parser::ComponentValue const& component_value)
|
||||
{
|
||||
return Formatter<StringView>::format(builder, component_value.to_string());
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue