1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:18:12 +00:00

LibWeb: Make StyleValue::to_string() infallible

This commit is contained in:
Sam Atkins 2023-08-22 14:08:15 +01:00 committed by Sam Atkins
parent ccfe197e5a
commit 7fe97ee6c5
112 changed files with 425 additions and 430 deletions

View file

@ -30,10 +30,10 @@ public:
// On getting, the font attribute must return the serialized form of the current font of the context (with no 'line-height' component).
auto const& font_style_value = my_drawing_state().font_style_value->as_font();
return DeprecatedString::formatted("{} {} {} {}",
font_style_value.font_style()->to_string().release_value_but_fixme_should_propagate_errors(),
font_style_value.font_weight()->to_string().release_value_but_fixme_should_propagate_errors(),
font_style_value.font_size()->to_string().release_value_but_fixme_should_propagate_errors(),
font_style_value.font_families()->to_string().release_value_but_fixme_should_propagate_errors());
font_style_value.font_style()->to_string(),
font_style_value.font_weight()->to_string(),
font_style_value.font_size()->to_string(),
font_style_value.font_families()->to_string());
}
void set_font(DeprecatedString const& font)