mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibWeb: Port CSS::Parser::Function to new Strings
This commit is contained in:
parent
86d23c63a4
commit
05c1b09621
5 changed files with 20 additions and 19 deletions
|
@ -31,7 +31,7 @@ DeprecatedString ComponentValue::to_deprecated_string() const
|
|||
return m_value.visit(
|
||||
[](Token const& token) { return token.to_string().release_value_but_fixme_should_propagate_errors().to_deprecated_string(); },
|
||||
[](NonnullRefPtr<Block> const& block) { return block->to_string().release_value_but_fixme_should_propagate_errors().to_deprecated_string(); },
|
||||
[](NonnullRefPtr<Function> const& function) { return function->to_deprecated_string(); });
|
||||
[](NonnullRefPtr<Function> const& function) { return function->to_string().release_value_but_fixme_should_propagate_errors().to_deprecated_string(); });
|
||||
}
|
||||
|
||||
ErrorOr<String> ComponentValue::to_debug_string() const
|
||||
|
@ -44,7 +44,7 @@ ErrorOr<String> ComponentValue::to_debug_string() const
|
|||
return String::formatted("Block: {}", TRY(block->to_string()));
|
||||
},
|
||||
[](NonnullRefPtr<Function> const& function) -> ErrorOr<String> {
|
||||
return String::formatted("Function: {}", function->to_deprecated_string());
|
||||
return String::formatted("Function: {}", TRY(function->to_string()));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue